|
|
|
@ -776,7 +776,7 @@ public class ImsDutyMainServiceImpl extends BaseServiceImpl<ImsDutyMainMapper, I
|
|
|
|
|
List<ImsSchedulingVo> collect = imsSchedulingVos.stream().filter(o -> DateUtil.format(o.getDutyDate(), DateUtil.PATTERN_DATE).equals(date)).sorted(Comparator.comparing(ImsSchedulingVo::getId)).collect(Collectors.toList()); |
|
|
|
|
collect = collect.stream().map(s -> { |
|
|
|
|
//灵活排班把班组名称拼接成人员名称
|
|
|
|
|
if (s.getGroupName() == null) { |
|
|
|
|
if (s.getGroupId() == null) { |
|
|
|
|
String[] split = s.getDutyPersonIds().split("\\^"); |
|
|
|
|
if (null != split && split.length > 0) { |
|
|
|
|
for (int j = 0; j < split.length; j++) { |
|
|
|
@ -791,8 +791,8 @@ public class ImsDutyMainServiceImpl extends BaseServiceImpl<ImsDutyMainMapper, I
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
// ImsDutyGroupEntity imsDutyGroupEntity = dutyGroupMapper.selectById(s.getGroupId());
|
|
|
|
|
s.setName(s.getName() + s.getGroupName()); |
|
|
|
|
ImsDutyGroupEntity imsDutyGroupEntity = dutyGroupMapper.selectById(s.getGroupId()); |
|
|
|
|
s.setName(s.getName() + imsDutyGroupEntity.getGroupName()); |
|
|
|
|
} |
|
|
|
|
return s; |
|
|
|
|
}).sorted(Comparator.comparing(ImsSchedulingVo::getId)).collect(Collectors.toList()); |
|
|
|
|