mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-01-25 07:46:40 +08:00
bugfix
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,6 +37,8 @@ public class OrganizationService extends BaseService<OrganizationEntity, Organiz
|
||||
|
||||
@Autowired CoalParameterDefService coalParameterDefService;
|
||||
|
||||
|
||||
|
||||
@PostConstruct
|
||||
public void init() {}
|
||||
|
||||
|
||||
@@ -40,7 +40,9 @@
|
||||
"parentName": "挥发分(Y)%",
|
||||
"name": "干燥基",
|
||||
"sortKey": "6",
|
||||
"status": "1"
|
||||
"status": "1",
|
||||
"inputType": "1",
|
||||
"formula": "( param5/(100-0.5-param1) ) * 100"
|
||||
},
|
||||
{
|
||||
"code": "param7",
|
||||
|
||||
Reference in New Issue
Block a user