|
@@ -65,7 +65,7 @@ public class OrganizationEvaluationInfoServiceImpl extends ServiceImpl<Organizat
|
|
private IUserService userService;
|
|
private IUserService userService;
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
- private IEvaluationScoreCountService iEvaluatioinScoreCountService;
|
|
|
|
|
|
+ private IEvaluationScoreCountService evaluatioinScoreCountService;
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
@Resource
|
|
@@ -392,12 +392,12 @@ public class OrganizationEvaluationInfoServiceImpl extends ServiceImpl<Organizat
|
|
scoreCount.setObversionScore(totalScore);
|
|
scoreCount.setObversionScore(totalScore);
|
|
scoreCount.setIsQuantified("1");
|
|
scoreCount.setIsQuantified("1");
|
|
|
|
|
|
- List<EvaluationScoreCount> listcount = iEvaluatioinScoreCountService.getEvaluationScoreCountList(scoreCount.getOrganizationEvaluationId(),scoreCount.getOrganizationEvaluationRuleId(),scoreCount.getIndicatorId(),scoreCount.getBinSection());
|
|
|
|
|
|
+ List<EvaluationScoreCount> listcount = evaluatioinScoreCountService.getEvaluationScoreCountList(scoreCount.getOrganizationEvaluationId(),scoreCount.getOrganizationEvaluationRuleId(),scoreCount.getIndicatorId(),scoreCount.getBinSection());
|
|
if(null != listcount && listcount.size() >0){
|
|
if(null != listcount && listcount.size() >0){
|
|
List<String> ids = listcount.stream().map(EvaluationScoreCount::getId).collect(Collectors.toList());
|
|
List<String> ids = listcount.stream().map(EvaluationScoreCount::getId).collect(Collectors.toList());
|
|
- boolean cod = iEvaluatioinScoreCountService.removeByIds(ids);
|
|
|
|
|
|
+ boolean cod = evaluatioinScoreCountService.removeByIds(ids);
|
|
}
|
|
}
|
|
- iEvaluatioinScoreCountService.save(scoreCount);
|
|
|
|
|
|
+ evaluatioinScoreCountService.save(scoreCount);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -915,6 +915,7 @@ public class OrganizationEvaluationInfoServiceImpl extends ServiceImpl<Organizat
|
|
}
|
|
}
|
|
|
|
|
|
List<OrganizationEvaluationInfo> evaluationInfos =new ArrayList<>();
|
|
List<OrganizationEvaluationInfo> evaluationInfos =new ArrayList<>();
|
|
|
|
+ double score = 0.00;
|
|
for (Map.Entry<String,Object > entry : idMap.entrySet()) {
|
|
for (Map.Entry<String,Object > entry : idMap.entrySet()) {
|
|
OrganizationEvaluationInfo info = new OrganizationEvaluationInfo();
|
|
OrganizationEvaluationInfo info = new OrganizationEvaluationInfo();
|
|
info.setId(entry.getValue().toString());
|
|
info.setId(entry.getValue().toString());
|
|
@@ -924,13 +925,18 @@ public class OrganizationEvaluationInfoServiceImpl extends ServiceImpl<Organizat
|
|
|
|
|
|
if (MathCalculatorUtil.isNumber(String.valueOf(valueMap.get(entry.getKey().replace("ID_", "")).toString()))) {
|
|
if (MathCalculatorUtil.isNumber(String.valueOf(valueMap.get(entry.getKey().replace("ID_", "")).toString()))) {
|
|
info.setQuantifiedValue(Double.valueOf(valueMap.get(entry.getKey().replace("ID_", "")).toString()));
|
|
info.setQuantifiedValue(Double.valueOf(valueMap.get(entry.getKey().replace("ID_", "")).toString()));
|
|
|
|
+
|
|
|
|
+ //得分
|
|
|
|
+ if (entry.getKey().endsWith("_DF") || entry.getKey().endsWith("_DF2")|| entry.getKey().endsWith("_JHDF")) {
|
|
|
|
+ score = score + info.getQuantifiedValue();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
info.setQuantifiedValue(0);
|
|
info.setQuantifiedValue(0);
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
- //得分
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
info.setNonQuantifiedValue(valueMap.get(entry.getKey().replace("ID_","")).toString());
|
|
info.setNonQuantifiedValue(valueMap.get(entry.getKey().replace("ID_","")).toString());
|
|
@@ -941,8 +947,18 @@ public class OrganizationEvaluationInfoServiceImpl extends ServiceImpl<Organizat
|
|
info.setState(valueMap.get("state").toString());//
|
|
info.setState(valueMap.get("state").toString());//
|
|
evaluationInfos.add(info);
|
|
evaluationInfos.add(info);
|
|
}
|
|
}
|
|
- this.saveOrUpdateBatch(evaluationInfos);
|
|
|
|
|
|
|
|
|
|
+ boolean b = this.saveOrUpdateBatch(evaluationInfos);
|
|
|
|
+ if(b && null !=evaluationInfos && evaluationInfos.size()>0){
|
|
|
|
+ OrganizationEvaluationInfo info = this.getById(evaluationInfos.get(0).getId());
|
|
|
|
+ List<EvaluationScoreCount> listcount = evaluatioinScoreCountService.getEvaluationScoreCountList(info.getOrganizationEvaluationId(),info.getOrganizationEvaluationRuleId(),info.getIndicatorId(),"");
|
|
|
|
+ if(null != listcount && listcount.size()>0){
|
|
|
|
+ EvaluationScoreCount count = listcount.get(0);
|
|
|
|
+ count.setScore(score);
|
|
|
|
+ count.setObversionScore(score);
|
|
|
|
+ evaluatioinScoreCountService.saveOrUpdate(count);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|