|
@@ -277,7 +277,7 @@ public class OrganizationEvaluationInfoServiceImpl extends ServiceImpl<Organizat
|
|
|
//计算差值等的最大值最小值
|
|
|
|
|
|
this.saveOrUpdateBatch(listUpdateInfos);
|
|
|
- iCalculateIndicatorItemInfoService.saveIndicatorInfoDTO( organizationEvaluationId,indicatorGropListEntry.getValue());
|
|
|
+ iCalculateIndicatorItemInfoService.saveIndicatorInfoDTO(organizationEvaluationId,indicatorGropListEntry.getValue(),indicatorId);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -330,7 +330,11 @@ public class OrganizationEvaluationInfoServiceImpl extends ServiceImpl<Organizat
|
|
|
if ((dto.getOptionCode().endsWith("MAX") ||dto.getOptionCode().endsWith("MIN")
|
|
|
||dto.getOptionCode().equals("CZ") || dto.getOptionCode().equals("LRGXL")
|
|
|
|| dto.getOptionCode().equals("DWQWLR")) || StringUtils.isEmpty(dto.getFormula())){
|
|
|
- continue;//当前属性没有配置公式跳过或者不需要参与此次计算的属性
|
|
|
+
|
|
|
+ if(!(dto.getOptionCode().equals("DF")||dto.getOptionCode().equals("DF2")||dto.getOptionCode().equals("JHDF"))){
|
|
|
+ continue;//当前属性没有配置公式跳过或者不需要参与此次计算的属性
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
scoreCount.setOrganizationEvaluationId(dto.getOrganizationEvaluationId());
|
|
|
scoreCount.setOrganizationEvaluationRuleId(dto.getOrganizationEvaluationRuleId());
|
|
@@ -354,7 +358,13 @@ public class OrganizationEvaluationInfoServiceImpl extends ServiceImpl<Organizat
|
|
|
dto.setFormula(dto.getFormula().replace("["+f.getOptionCode()+"]", f.getQuantifiedValue() + ""));
|
|
|
}
|
|
|
log.info("计算公式为:"+dto.getFormula());
|
|
|
- double score = FormulaUtils.calculateFormula(dto.getFormula());
|
|
|
+ double score = 0.00;
|
|
|
+ if(StringUtils.isNotEmpty(dto.getFormula())){
|
|
|
+ score = FormulaUtils.calculateFormula(dto.getFormula());
|
|
|
+ }else {
|
|
|
+ score = dto.getQuantifiedValue();
|
|
|
+ }
|
|
|
+
|
|
|
if(dto.getOptionCode().equals("DF")||dto.getOptionCode().equals("DF2")
|
|
|
||dto.getOptionCode().equals("JHDF")){
|
|
|
standardScore = dto.getStandardScore();
|
|
@@ -935,6 +945,7 @@ public class OrganizationEvaluationInfoServiceImpl extends ServiceImpl<Organizat
|
|
|
|
|
|
} else {
|
|
|
info.setQuantifiedValue(0);
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}
|