|
|
@ -226,6 +226,12 @@ public class CustomerStaffServiceImpl extends BaseServiceImpl<CustomerStaffDao, |
|
|
|
if (null == list) { |
|
|
|
list = new ArrayList<>(); |
|
|
|
} |
|
|
|
if (org.apache.commons.collections4.CollectionUtils.isNotEmpty(list)) { |
|
|
|
Map<String, List<String>> map = govStaffRoleService.getStaffRoles(fromDTO.getStaffList(), fromDTO.getAgencyId()); |
|
|
|
list.forEach(item -> { |
|
|
|
item.setRoles(map.get(item.getStaffId())); |
|
|
|
}); |
|
|
|
} |
|
|
|
return new Result<List<StaffInfoResultDTO>>().ok(list); |
|
|
|
} |
|
|
|
|
|
|
@ -245,6 +251,7 @@ public class CustomerStaffServiceImpl extends BaseServiceImpl<CustomerStaffDao, |
|
|
|
staffRoleResultDTO.setRoleId(p.getId()); |
|
|
|
staffRoleResultDTO.setRoleName(p.getRoleName()); |
|
|
|
staffRoleResultDTO.setFullTimeOnly(p.getFullTimeOnly()); |
|
|
|
staffRoleResultDTO.setDescription(p.getDescription()); |
|
|
|
return staffRoleResultDTO; |
|
|
|
}).collect(Collectors.toList()); |
|
|
|
return new Result<List<RoleInfoResultDTO>>().ok(staffRoleList); |
|
|
@ -277,6 +284,7 @@ public class CustomerStaffServiceImpl extends BaseServiceImpl<CustomerStaffDao, |
|
|
|
staffRoleResultDTO.setRoleId(p.getId()); |
|
|
|
staffRoleResultDTO.setRoleName(p.getRoleName()); |
|
|
|
staffRoleResultDTO.setFullTimeOnly(p.getFullTimeOnly()); |
|
|
|
staffRoleResultDTO.setDescription(p.getDescription()); |
|
|
|
staffRoleResultDTO.setSelected(false); |
|
|
|
return staffRoleResultDTO; |
|
|
|
}).collect(Collectors.toList()); |
|
|
|