Browse Source

微调

dev_shibei_match
jianjun 4 years ago
parent
commit
bdd006f0d2
  1. 4
      epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/redis/common/CustomerStaffRedis.java
  2. 5
      epmet-module/data-aggregator/data-aggregator-server/src/main/java/com/epmet/dataaggre/service/epmetuser/impl/EpmetUserServiceImpl.java

4
epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/redis/common/CustomerStaffRedis.java

@ -70,7 +70,9 @@ public class CustomerStaffRedis {
}
CustomerStaffInfoCache resultData = reloadStaffCache(staffId, key);
if (resultData == null) return null;
if (resultData == null) {
return null;
}
return ConvertUtils.sourceToTarget(resultData,CustomerStaffInfoCacheResult.class);
}

5
epmet-module/data-aggregator/data-aggregator-server/src/main/java/com/epmet/dataaggre/service/epmetuser/impl/EpmetUserServiceImpl.java

@ -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) {

Loading…
Cancel
Save