|
|
|
@ -164,6 +164,25 @@ public class ImsDutyGroupServiceImpl extends BaseServiceImpl<ImsDutyGroupMapper,
|
|
|
|
|
ImsDutyGroupEntity entity = pages.getRecords().get(i); |
|
|
|
|
ImsDutyGroupVO imsDutyGroupVO = new ImsDutyGroupVO(); |
|
|
|
|
imsDutyGroupVO.setId(entity.getId()); |
|
|
|
|
imsDutyGroupVO.setManagerId(entity.getManagerId()); |
|
|
|
|
User user = UserCache.getUser(entity.getManagerId()); |
|
|
|
|
if (ObjectUtil.isNotEmpty(user)&&StringUtils.isNotBlank(user.getName())){ |
|
|
|
|
imsDutyGroupVO.setManagerName(user.getName()); |
|
|
|
|
} |
|
|
|
|
List<ImsDutyGroupPVO> imsDutyGroupPVOS = imsDutyGroupPService.listByGroupId(entity.getId()); |
|
|
|
|
if (CollectionUtil.isNotEmpty(imsDutyGroupPVOS)){ |
|
|
|
|
List<Long> userIds = imsDutyGroupPVOS.stream().map(ImsDutyGroupPVO::getPersonId).collect(Collectors.toList()); |
|
|
|
|
String name=""; |
|
|
|
|
for (int i1 = 0; i1 < userIds.size(); i1++) { |
|
|
|
|
name=name+UserCache.getUser(userIds.get(i1)).getName(); |
|
|
|
|
if (i1!= userIds.size()-1){ |
|
|
|
|
name=name+","; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (StringUtils.isNotBlank(name)) { |
|
|
|
|
imsDutyGroupVO.setPersonName(name); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
imsDutyGroupVO.setGroupName(entity.getGroupName()); |
|
|
|
|
imsDutyGroupVO.setTenantId(entity.getTenantId()); |
|
|
|
|
imsDutyGroupVO.setIsDeleted(entity.getIsDeleted()); |
|
|
|
@ -171,7 +190,6 @@ public class ImsDutyGroupServiceImpl extends BaseServiceImpl<ImsDutyGroupMapper,
|
|
|
|
|
imsDutyGroupVO.setCreateUser(entity.getCreateUser()); |
|
|
|
|
List<ImsDutyGroupPEntity> list = imsDutyGroupPService.selectByGroupId(entity.getId()); |
|
|
|
|
String personId = ""; |
|
|
|
|
String personName = ""; |
|
|
|
|
for (int j = 0, len = list.size(); j < len; j++) { |
|
|
|
|
if (j != 0) { |
|
|
|
|
personId += "^" + list.get(j).getPersonId(); |
|
|
|
@ -183,7 +201,6 @@ public class ImsDutyGroupServiceImpl extends BaseServiceImpl<ImsDutyGroupMapper,
|
|
|
|
|
} |
|
|
|
|
imsDutyGroupVO.setPersonId(personId); |
|
|
|
|
imsDutyGroupVO.setCreateDept(entity.getCreateDept()); |
|
|
|
|
imsDutyGroupVO.setPersonName(personName); |
|
|
|
|
voList.add(imsDutyGroupVO); |
|
|
|
|
} |
|
|
|
|
voPages.setRecords(voList); |
|
|
|
|