|
@@ -637,7 +637,7 @@ public class OrganizationEvaluationServiceImpl extends ServiceImpl<OrganizationE
|
|
|
for (EvaluationScoreInfoResDTO dto : listdto) {
|
|
|
//综合得分
|
|
|
if(zhdfflg && (childNameMap.size()>1 || dto.getChildName().equals("净利润"))){
|
|
|
- List<EvaluationScoreCount> scoreCounts = evaluationScoreCountService.getEvaluationScoreCountList(id,dto.getOrganizationEvaluationRuleId(),dto.getIndicatorId());
|
|
|
+ List<EvaluationScoreCount> scoreCounts = evaluationScoreCountService.getEvaluationScoreCountList(id,dto.getOrganizationEvaluationRuleId(),dto.getIndicatorId(),binSection);
|
|
|
opmap.put("zhdf",scoreCounts.get(0).getObversionScore());
|
|
|
zhdfflg = false;
|
|
|
}
|
|
@@ -732,7 +732,7 @@ public class OrganizationEvaluationServiceImpl extends ServiceImpl<OrganizationE
|
|
|
|
|
|
for (EvaluationScoreInfoResDTO dto : indicatorIdEntry.getValue()) {
|
|
|
if(iChildCodeMap.size()>1 && dto.getOptionCode().equals("DF")){
|
|
|
- List<EvaluationScoreCount> scoreCounts = evaluationScoreCountService.getEvaluationScoreCountList(id,dto.getOrganizationEvaluationRuleId(),dto.getIndicatorId());
|
|
|
+ List<EvaluationScoreCount> scoreCounts = evaluationScoreCountService.getEvaluationScoreCountList(id,dto.getOrganizationEvaluationRuleId(),dto.getIndicatorId(),binSection);
|
|
|
opmap.put(dto.getChildCode()+"_"+dto.getOptionCode(),scoreCounts.get(0).getObversionScore());
|
|
|
}else {
|
|
|
opmap.put(dto.getChildCode()+"_"+dto.getOptionCode(),dto.getQuantifiedValue());
|
|
@@ -740,17 +740,26 @@ public class OrganizationEvaluationServiceImpl extends ServiceImpl<OrganizationE
|
|
|
|
|
|
//综合得分
|
|
|
if(zhdfflg2 && (dto.getChildName().equals("净利润"))){
|
|
|
- List<EvaluationScoreCount> scoreCounts = evaluationScoreCountService.getEvaluationScoreCountList(id,dto.getOrganizationEvaluationRuleId(),dto.getIndicatorId());
|
|
|
- opmap.put(dto.getChildCode()+"_zhdf",scoreCounts.get(0).getObversionScore());
|
|
|
+ List<EvaluationScoreCount> scoreCounts = evaluationScoreCountService.getEvaluationScoreCountList(id,dto.getOrganizationEvaluationRuleId(),dto.getIndicatorId(),binSection);
|
|
|
+ if (null != scoreCounts && scoreCounts.size() > 0) {
|
|
|
+ opmap.put(dto.getChildCode()+"_zhdf",scoreCounts.get(0).getObversionScore());
|
|
|
+ }else {
|
|
|
+ opmap.put(dto.getChildCode()+"_zhdf",0.00);
|
|
|
+ }
|
|
|
+
|
|
|
zhdfflg2 = false;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- List<EvaluationScoreCount> scoreCounts2 = evaluationScoreCountService.getEvaluationScoreCountList(id,organizationScoreEntry.getValue().get(0).getOrganizationEvaluationRuleId(),"");
|
|
|
- Double scoresum = scoreCounts2.stream().mapToDouble(EvaluationScoreCount::getObversionScore).sum();
|
|
|
+ List<EvaluationScoreCount> scoreCounts2 = evaluationScoreCountService.getEvaluationScoreCountList(id, organizationScoreEntry.getValue().get(0).getOrganizationEvaluationRuleId(), "", binSection);
|
|
|
+ if (null != scoreCounts2 && scoreCounts2.size() > 0) {
|
|
|
+ Double scoresum = scoreCounts2.stream().mapToDouble(EvaluationScoreCount::getObversionScore).sum();
|
|
|
|
|
|
+ opmap.put("zhdf", new BigDecimal(scoresum).setScale(2, RoundingMode.HALF_UP).doubleValue());
|
|
|
+ } else {
|
|
|
+ opmap.put("zhdf", 0.00);
|
|
|
+ }
|
|
|
|
|
|
- opmap.put("zhdf",new BigDecimal(scoresum).setScale(2, RoundingMode.HALF_UP).doubleValue());
|
|
|
bodylist2.add(opmap);
|
|
|
}
|
|
|
|