Browse Source

bug修改

xujuanning 9 months ago
parent
commit
bcad71f838

+ 20 - 3
ims-service/ims-eval/src/main/java/com/ims/eval/service/impl/OrganizationEvaluationInfoServiceImpl.java

@@ -589,11 +589,28 @@ public class OrganizationEvaluationInfoServiceImpl extends ServiceImpl<Organizat
 					mark = false;
 				}
 				//指标属性
-				indicatormap.put(d.getChildCode() + "_" + d.getOptionCode(), null == resultMap.get(d.getChildCode() + "_" + d.getOptionCode()).getNonQuantifiedValue() ? "" : resultMap.get(d.getChildCode() + "_" + d.getOptionCode()).getNonQuantifiedValue());
+				Object ob = null;
+				if (resultMap.get(d.getChildCode() + "_" + d.getOptionCode()) != null && resultMap.get(d.getChildCode() + "_" + d.getOptionCode()).getNonQuantifiedValue() != null) {
+					ob = resultMap.get(d.getChildCode() + "_" + d.getOptionCode()).getNonQuantifiedValue();
+				}
+				indicatormap.put(d.getChildCode() + "_" + d.getOptionCode(), null == ob ? "" : ob);
 				//指标id
-				indicatormap.put("ID_" + d.getChildCode() + "_" + d.getOptionCode(), resultMap.get(d.getChildCode() + "_" + d.getOptionCode()).getId());
+				Object in = null;
+				if(resultMap.get(d.getChildCode() + "_" + d.getOptionCode())!=null&&resultMap.get(d.getChildCode() + "_" + d.getOptionCode()).getId()!=null){
+					in=resultMap.get(d.getChildCode() + "_" + d.getOptionCode()).getId();
+				}
+				indicatormap.put("ID_" + d.getChildCode() + "_" + d.getOptionCode(), in);
+				//indicatormap.put("ID_" + d.getChildCode() + "_" + d.getOptionCode(), resultMap.get(d.getChildCode() + "_" + d.getOptionCode()).getId());
+
 				//是否量化
-				indicatormap.put("IS_LH_" + d.getChildCode() + "_" + d.getOptionCode(), resultMap.get(d.getChildCode() + "_" + d.getOptionCode()).getIsQuantified2() ? "1" : "2");
+				Object lh = null;
+				if (resultMap.get(d.getChildCode() + "_" + d.getOptionCode()) != null && resultMap.get(d.getChildCode() + "_" + d.getOptionCode()).getIsQuantified2() != null) {
+					indicatormap.put("IS_LH_" + d.getChildCode() + "_" + d.getOptionCode(), resultMap.get(d.getChildCode() + "_" + d.getOptionCode()).getIsQuantified2() ? "1" : "2");
+				}else {
+					indicatormap.put("IS_LH_" + d.getChildCode() + "_" + d.getOptionCode(), false ? "1" : "2");
+				}
+
+
 
 				//累计分数
 				if (d.getOptionCode().equals("DF") || d.getOptionCode().equals("DF2") || d.getOptionCode().equals("JHDF")) {