|
@@ -2,6 +2,7 @@ package com.ims.eval.service.impl;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
+import com.ims.common.utils.DoubleUtils;
|
|
import com.ims.common.utils.FormulaUtils;
|
|
import com.ims.common.utils.FormulaUtils;
|
|
import com.ims.common.utils.StringUtils;
|
|
import com.ims.common.utils.StringUtils;
|
|
import com.ims.eval.cache.CacheContext;
|
|
import com.ims.eval.cache.CacheContext;
|
|
@@ -524,11 +525,20 @@ public class OrganizationEvaluationInfoServiceImpl extends ServiceImpl<Organizat
|
|
}
|
|
}
|
|
title.put(childCodeEntry.getKey().split(",")[1]+"-对标", titleArray);
|
|
title.put(childCodeEntry.getKey().split(",")[1]+"-对标", titleArray);
|
|
}
|
|
}
|
|
|
|
+ if(groupedChildCode.size()>1){
|
|
|
|
+ Map zhdfMap = new LinkedHashMap();
|
|
|
|
+ List<Map> zhdfArray = new ArrayList<>();
|
|
|
|
+ zhdfMap.put("key", "得分");//名称
|
|
|
|
+ zhdfMap.put("code","totalScore");//名称
|
|
|
|
+ zhdfMap.put("flag", "1");//数值
|
|
|
|
+ zhdfArray.add(zhdfMap);
|
|
|
|
+ title.put("综合得分", zhdfArray);
|
|
|
|
+ }
|
|
Map deptstateMap = new LinkedHashMap();
|
|
Map deptstateMap = new LinkedHashMap();
|
|
List<Map> titlestateArray = new ArrayList<>();
|
|
List<Map> titlestateArray = new ArrayList<>();
|
|
deptstateMap.put("key", "填报状态");//名称
|
|
deptstateMap.put("key", "填报状态");//名称
|
|
deptstateMap.put("code","state");//名称
|
|
deptstateMap.put("code","state");//名称
|
|
- deptstateMap.put("flag", "3");//是否编辑
|
|
|
|
|
|
+ deptstateMap.put("flag", "3");//下拉
|
|
titlestateArray.add(deptstateMap);
|
|
titlestateArray.add(deptstateMap);
|
|
title.put("状态", titlestateArray);
|
|
title.put("状态", titlestateArray);
|
|
titlemark = false;
|
|
titlemark = false;
|
|
@@ -547,6 +557,10 @@ public class OrganizationEvaluationInfoServiceImpl extends ServiceImpl<Organizat
|
|
dto -> dto,
|
|
dto -> dto,
|
|
(oldValue, newValue) -> oldValue)); // 解决键重复的情况
|
|
(oldValue, newValue) -> oldValue)); // 解决键重复的情况
|
|
boolean mark = true;//标记给公司名赋值
|
|
boolean mark = true;//标记给公司名赋值
|
|
|
|
+
|
|
|
|
+ double score = 0.00;
|
|
|
|
+ double minScore = 0.00;
|
|
|
|
+ double maxScore = 0.00;
|
|
for (IndicatorDictionary d : dictionaryList) {
|
|
for (IndicatorDictionary d : dictionaryList) {
|
|
if (!d.getIsShow()) {
|
|
if (!d.getIsShow()) {
|
|
continue;
|
|
continue;
|
|
@@ -566,6 +580,22 @@ public class OrganizationEvaluationInfoServiceImpl extends ServiceImpl<Organizat
|
|
//是否量化
|
|
//是否量化
|
|
indicatormap.put("IS_LH_" +d.getChildCode() + "_" + d.getOptionCode(),resultMap.get(d.getChildCode()+"_"+d.getOptionCode()).getIsQuantified2()?"1":"2");
|
|
indicatormap.put("IS_LH_" +d.getChildCode() + "_" + d.getOptionCode(),resultMap.get(d.getChildCode()+"_"+d.getOptionCode()).getIsQuantified2()?"1":"2");
|
|
|
|
|
|
|
|
+ //累计分数
|
|
|
|
+ if(d.getOptionCode().equals("DF")||d.getOptionCode().equals("DF2")||d.getOptionCode().equals("JHDF")){
|
|
|
|
+ score = score + resultMap.get(d.getChildCode()+"_"+d.getOptionCode()).getQuantifiedValue();
|
|
|
|
+ minScore =resultMap.get(d.getChildCode()+"_"+d.getOptionCode()).getMinScore();
|
|
|
|
+ maxScore =resultMap.get(d.getChildCode()+"_"+d.getOptionCode()).getMaxScore();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ indicatormap.put("totalScore",score);
|
|
|
|
+
|
|
|
|
+ if(score!=0 && (minScore!=0 || maxScore!=0)){
|
|
|
|
+ boolean valueFlag = DoubleUtils.isIncludeValue(score,minScore,maxScore);
|
|
|
|
+ indicatormap.put("valueFlag",valueFlag);
|
|
|
|
+ }else {
|
|
|
|
+ indicatormap.put("valueFlag",true);
|
|
}
|
|
}
|
|
mapList.add(indicatormap);
|
|
mapList.add(indicatormap);
|
|
}
|
|
}
|