This commit is contained in:
2023-11-13 22:17:01 +08:00
parent fa2fe43ad0
commit 59b8fc2e4e
3 changed files with 9 additions and 1 deletions

View File

@@ -196,6 +196,10 @@ public class CoalParameterDefService
this.repository.saveAll(coalParameterDefs);
}
this.repository.findAll().stream()
.filter(x -> StringUtils.equals(x.getInputType(), "1"))
.forEach(this::updateFormula);
}
}
}

View File

@@ -37,6 +37,8 @@ public class OrganizationService extends BaseService<OrganizationEntity, Organiz
@Autowired CoalParameterDefService coalParameterDefService;
@PostConstruct
public void init() {}

View File

@@ -40,7 +40,9 @@
"parentName": "挥发分(Y)%",
"name": "干燥基",
"sortKey": "6",
"status": "1"
"status": "1",
"inputType": "1",
"formula": "( param5/(100-0.5-param1) ) * 100"
},
{
"code": "param7",