From 646fdb9d0d7d70d503ff0e95e5f8dacc690cc546 Mon Sep 17 00:00:00 2001 From: tyty Date: Fri, 27 Oct 2023 18:37:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E7=8F=AD=E8=AE=A1=E5=88=92bug?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D-=E7=8F=AD=E7=BB=84=E9=95=BF=E5=8F=8A?= =?UTF-8?q?=E5=85=B6=E4=BA=BA=E5=91=98=E4=B8=BA=E7=A9=BA=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../operational/duty/service/impl/ImsDutyMainServiceImpl.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyMainServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyMainServiceImpl.java index 9e5f8b4..d55b882 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyMainServiceImpl.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyMainServiceImpl.java @@ -304,6 +304,14 @@ public class ImsDutyMainServiceImpl extends BaseServiceImpl> rosters = imsSchedulingVo.getRosters(); + for (String s : rosters.keySet()) { + if (StringUtils.isBlank(s)){ + return R.fail("人员排班:无班组长信息,请稍后重试!"); + } + if (CollectionUtil.isEmpty(rosters.get(s))){ + return R.fail("人员排班:无人员信息,请稍后重试!"); + } + } groupIdsSplit = rosters.keySet().toArray(new String[0]); dutyNum = groupIdsSplit.length; } else {