Browse Source

班组分组查询接口修改

zhongwei
ty 8 months ago
parent
commit
9c26083485
  1. 4
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyGroupServiceImpl.java

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

@ -172,14 +172,16 @@ 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() List<Long> userIds = imsDutyGroupPVOS.stream()
.map(ImsDutyGroupPVO::getPersonId).filter(s->entity.getManagerId().equals(s)).collect(Collectors.toList()); .map(ImsDutyGroupPVO::getPersonId).collect(Collectors.toList());
String name=""; String name="";
for (int i1 = 0; i1 < userIds.size(); i1++) { for (int i1 = 0; i1 < userIds.size(); i1++) {
if(ObjectUtil.isNotEmpty(entity.getManagerId())&&!entity.getManagerId().equals(userIds.get(i1))){
name = name + UserCache.getUser(userIds.get(i1)).getName(); name = name + UserCache.getUser(userIds.get(i1)).getName();
if (i1 != userIds.size() - 1) { if (i1 != userIds.size() - 1) {
name = name + ","; name = name + ",";
} }
} }
}
if (StringUtils.isNotBlank(name)) { if (StringUtils.isNotBlank(name)) {
imsDutyGroupVO.setPersonName(name); imsDutyGroupVO.setPersonName(name);
} }

Loading…
Cancel
Save