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 {