|
|
@ -382,9 +382,9 @@ public class CustomerStaffServiceImpl extends BaseServiceImpl<CustomerStaffDao, |
|
|
|
public Result<List<DepartInStaffListResultDTO>> getDepartmentStaffList(DepartmentInStaffFormDTO formDTO) { |
|
|
|
//1:根据userId集合查询人员基本信息
|
|
|
|
List<DepartInStaffListResultDTO> staffList = baseDao.selectDepartmentStaffList(formDTO); |
|
|
|
//2:根据部门Id查询部门下是领导角色的用户
|
|
|
|
//2:根据组织Id查询部门下是领导角色的用户
|
|
|
|
StaffRoleFormDTO staffRoleFormDTO = new StaffRoleFormDTO(); |
|
|
|
staffRoleFormDTO.setOrgId(formDTO.getDepartmentId()); |
|
|
|
staffRoleFormDTO.setOrgId(formDTO.getAgencyId()); |
|
|
|
staffRoleFormDTO.setRoleKey(UserRoleConstant.DEPT_LEADER); |
|
|
|
List<GovStaffRoleResultDTO> staffRoleDTOS = staffRoleService.listStaffsInRole(UserRoleConstant.DEPT_LEADER, formDTO.getDepartmentId(), DataScope.getDefault()); |
|
|
|
staffRoleDTOS.forEach(roleDto -> { |
|
|
|