소스 검색

解决null问题

全业务考评 1 년 전
부모
커밋
e1f9a25cd0
1개의 변경된 파일9개의 추가작업 그리고 2개의 파일을 삭제
  1. 9 2
      ims-service/ims-eval/src/main/java/com/ims/eval/service/impl/OrganizationEvaluationInfoServiceImpl.java

+ 9 - 2
ims-service/ims-eval/src/main/java/com/ims/eval/service/impl/OrganizationEvaluationInfoServiceImpl.java

@@ -583,8 +583,15 @@ public class OrganizationEvaluationInfoServiceImpl extends ServiceImpl<Organizat
 				//累计分数
 				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();
+
+					//判断最大最小值 ;是否存在值
+					if(null != resultMap.get(d.getChildCode()+"_"+d.getOptionCode()).getMinScore()){
+						minScore =resultMap.get(d.getChildCode()+"_"+d.getOptionCode()).getMinScore();
+					}
+					if(null != resultMap.get(d.getChildCode()+"_"+d.getOptionCode()).getMaxScore()){
+						maxScore =resultMap.get(d.getChildCode()+"_"+d.getOptionCode()).getMaxScore();
+					}
+
 				}
 
 			}