Browse Source

值班增加值班长名称和人员名称

zhongwei
ty 8 months ago
parent
commit
37589c4773
  1. 3
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyGroupServiceImpl.java

3
hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyGroupServiceImpl.java

@ -171,7 +171,8 @@ public class ImsDutyGroupServiceImpl extends BaseServiceImpl<ImsDutyGroupMapper,
} }
List<ImsDutyGroupPVO> imsDutyGroupPVOS = imsDutyGroupPService.listByGroupId(entity.getId()); List<ImsDutyGroupPVO> imsDutyGroupPVOS = imsDutyGroupPService.listByGroupId(entity.getId());
if (CollectionUtil.isNotEmpty(imsDutyGroupPVOS)){ if (CollectionUtil.isNotEmpty(imsDutyGroupPVOS)){
List<Long> userIds = imsDutyGroupPVOS.stream().map(ImsDutyGroupPVO::getPersonId).collect(Collectors.toList()); List<Long> userIds = imsDutyGroupPVOS.stream()
.map(ImsDutyGroupPVO::getPersonId).filter(s->entity.getManagerId().equals(s)).collect(Collectors.toList());
String name=""; String name="";
for (int i1 = 0; i1 < userIds.size(); i1++) { for (int i1 = 0; i1 < userIds.size(); i1++) {
name=name+UserCache.getUser(userIds.get(i1)).getName(); name=name+UserCache.getUser(userIds.get(i1)).getName();

Loading…
Cancel
Save