|
|
@ -537,7 +537,7 @@ public class EpmetUserServiceImpl implements EpmetUserService { |
|
|
|
CustomerStaffEntity staffEntity = customerStaffDao.selectOne(queryWrapper); |
|
|
|
CustomerStaffResultDTO result = ConvertUtils.sourceToTarget(staffEntity, CustomerStaffResultDTO.class); |
|
|
|
|
|
|
|
//2.查询工作人员所属组织信息
|
|
|
|
//查询工作人员所属组织信息
|
|
|
|
CustomerAgencyDTO agencyDTO = govOrgService.gridByAgencyId(null,staffId); |
|
|
|
if (agencyDTO == null){ |
|
|
|
log.error("getStaffInfo have any agency staffId:{}",staffId); |
|
|
@ -569,7 +569,7 @@ public class EpmetUserServiceImpl implements EpmetUserService { |
|
|
|
Map<String, String> roleMap = roleList.stream().collect(Collectors.toMap(StaffRoleResultDTO::getRoleKey, StaffRoleResultDTO::getRoleName)); |
|
|
|
result.setRoleMap(roleMap); |
|
|
|
|
|
|
|
//1.查询当前人员所在的网格列表
|
|
|
|
//1.查询工作人员所在的网格列表
|
|
|
|
List<CustomerGridDTO> list = govOrgService.getStaffGridList(staffId); |
|
|
|
List<IdAndNameDTO> idAndNameList = new ArrayList<>(); |
|
|
|
for (CustomerGridDTO customerGridDTO : list) { |
|
|
@ -583,6 +583,7 @@ public class EpmetUserServiceImpl implements EpmetUserService { |
|
|
|
} |
|
|
|
result.setGridList(idAndNameList); |
|
|
|
|
|
|
|
//查询工作人员所在的部门列表
|
|
|
|
List<CustomerDepartmentDTO> deptList = govOrgService.getStaffDeptList(staffId); |
|
|
|
idAndNameList = new ArrayList<>(); |
|
|
|
for (CustomerDepartmentDTO org : deptList) { |
|
|
|