企标评价空指针
This commit is contained in:
+8
-1
@@ -159,7 +159,13 @@ public class QualityEvaluationServiceImpl extends ServiceImpl<QualityEvaluationD
|
||||
Collectors.averagingDouble(item ->{
|
||||
|
||||
Double score;
|
||||
switch (item.getProcessNode()){
|
||||
String value;
|
||||
if (item.getProcessNode()==null){
|
||||
value="";
|
||||
}else {
|
||||
value=item.getProcessNode();
|
||||
}
|
||||
switch (value){
|
||||
case "会签征求意见":
|
||||
score=Double.valueOf(item.getScore()) * 0.3;
|
||||
break;
|
||||
@@ -172,6 +178,7 @@ public class QualityEvaluationServiceImpl extends ServiceImpl<QualityEvaluationD
|
||||
case "标准法规部部长审核":
|
||||
score=Double.valueOf(item.getScore()) * 0.3;
|
||||
break;
|
||||
|
||||
default: score=Double.valueOf(item.getScore());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user