From cdc1c8f279f513a84171f35cff07725cb820bdc5 Mon Sep 17 00:00:00 2001 From: PoffyZhang <99775271@qq.com> Date: Mon, 13 Nov 2023 17:37:47 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A9=BE=E9=A9=B6=E8=88=B1=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../scheduler/task/CockpitStatsStatisticsTask.java | 38 ++++++++++++---------- 1 file changed, 20 insertions(+), 18 deletions(-) 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; + } } }