diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/CockpitStatsStatisticsTask.java b/pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/CockpitStatsStatisticsTask.java index e1055ba..584f807 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/CockpitStatsStatisticsTask.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/CockpitStatsStatisticsTask.java @@ -312,24 +312,26 @@ public class CockpitStatsStatisticsTask { //项目归集 评审信息 for (GovBizProjectApprove approve : approves){ String equalProtectionLevel = approve.getEqualProtectionLevel(); - switch (equalProtectionLevel){ - case "01": - guijiSecerecyGrade1++; - break; - case "02": - guijiSecerecyGrade2++; - break; - case "03": - guijiSecerecyGrade3++; - break; - case "04": - guijiSecerecyGrade4++; - break; - case "05": - guijiSecerecyGrade5++; - break; - default: - break; + if(StringUtils.isNotBlank(equalProtectionLevel)){ + switch (equalProtectionLevel){ + case "01": + guijiSecerecyGrade1++; + break; + case "02": + guijiSecerecyGrade2++; + break; + case "03": + guijiSecerecyGrade3++; + break; + case "04": + guijiSecerecyGrade4++; + break; + case "05": + guijiSecerecyGrade5++; + break; + default: + break; + } } }