|
|
@ -4046,13 +4046,13 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
|
String codeType, |
|
|
|
String code) { |
|
|
|
// 获取文化程度字典
|
|
|
|
DictListFormDTO dictFormDTO = new DictListFormDTO(); |
|
|
|
dictFormDTO.setDictType(DictTypeEnum.EDUCATION.getCode()); |
|
|
|
Result<List<DictListResultDTO>> dictResult = epmetAdminOpenFeignClient.dictList(dictFormDTO); |
|
|
|
if (!dictResult.success() || CollectionUtils.isEmpty(dictResult.getData())) { |
|
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "学历字典获取失败", "学历字典获取失败"); |
|
|
|
} |
|
|
|
Map<String, String> educationMap = dictResult.getData().stream().collect(Collectors.toMap(DictListResultDTO::getValue, DictListResultDTO::getLabel)); |
|
|
|
// DictListFormDTO dictFormDTO = new DictListFormDTO();
|
|
|
|
// dictFormDTO.setDictType(DictTypeEnum.EDUCATION.getCode());
|
|
|
|
// Result<List<DictListResultDTO>> dictResult = epmetAdminOpenFeignClient.dictList(dictFormDTO);
|
|
|
|
// if (!dictResult.success() || CollectionUtils.isEmpty(dictResult.getData())) {
|
|
|
|
// throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "学历字典获取失败", "学历字典获取失败");
|
|
|
|
// }
|
|
|
|
// Map<String, String> educationMap = dictResult.getData().stream().collect(Collectors.toMap(DictListResultDTO::getValue, DictListResultDTO::getLabel));
|
|
|
|
|
|
|
|
if (StringUtils.isBlank(orgId)) { |
|
|
|
orgId = CustomerStaffRedis.getStaffInfo(customerId, staffId).getAgencyId(); |
|
|
@ -4073,7 +4073,7 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
|
|
|
|
|
list.forEach(resi -> { |
|
|
|
// 学历名称
|
|
|
|
resi.setEducationName(educationMap.get(resi.getEducationCode())); |
|
|
|
// resi.setEducationName(educationMap.get(resi.getEducationCode()));
|
|
|
|
GridInfoCache gridInfoCache = CustomerOrgRedis.getGridInfo(resi.getGridId()); |
|
|
|
if (null != gridInfoCache) { |
|
|
|
resi.setGridName(gridInfoCache.getGridNamePath()); |
|
|
@ -4106,13 +4106,13 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
|
String codeType, |
|
|
|
String code) { |
|
|
|
// 获取文化程度字典
|
|
|
|
DictListFormDTO dictFormDTO = new DictListFormDTO(); |
|
|
|
/* DictListFormDTO dictFormDTO = new DictListFormDTO(); |
|
|
|
dictFormDTO.setDictType(DictTypeEnum.EDUCATION.getCode()); |
|
|
|
Result<List<DictListResultDTO>> dictResult = epmetAdminOpenFeignClient.dictList(dictFormDTO); |
|
|
|
if (!dictResult.success() || CollectionUtils.isEmpty(dictResult.getData())) { |
|
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "学历字典获取失败", "学历字典获取失败"); |
|
|
|
} |
|
|
|
Map<String, String> educationMap = dictResult.getData().stream().collect(Collectors.toMap(DictListResultDTO::getValue, DictListResultDTO::getLabel)); |
|
|
|
Map<String, String> educationMap = dictResult.getData().stream().collect(Collectors.toMap(DictListResultDTO::getValue, DictListResultDTO::getLabel));*/ |
|
|
|
|
|
|
|
if (StringUtils.isBlank(orgId)) { |
|
|
|
orgId = CustomerStaffRedis.getStaffInfo(customerId, staffId).getAgencyId(); |
|
|
@ -4124,12 +4124,12 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
|
} |
|
|
|
PageHelper.startPage(pageNo, pageSize); |
|
|
|
List<ResiPortrayalDetailDTO> list = baseDao.selectPortrayalResiList(customerId, orgId, orgType,orgIdPath,codeType, code); |
|
|
|
if(CollectionUtils.isNotEmpty(list)){ |
|
|
|
list.forEach(resi -> { |
|
|
|
// 学历名称
|
|
|
|
resi.setEducationName(educationMap.get(resi.getEducationCode())); |
|
|
|
}); |
|
|
|
} |
|
|
|
// if(CollectionUtils.isNotEmpty(list)){
|
|
|
|
// list.forEach(resi -> {
|
|
|
|
// // 学历名称
|
|
|
|
// resi.setEducationName(educationMap.get(resi.getEducationCode()));
|
|
|
|
// });
|
|
|
|
// }
|
|
|
|
PageInfo<ResiPortrayalDetailDTO> pageInfo = new PageInfo<>(list); |
|
|
|
return new PageData<>(list, pageInfo.getTotal(), pageSize); |
|
|
|
} |
|
|
|