|
@ -4099,5 +4099,38 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
return new PageData<>(list, pageInfo.getTotal(), pageSize); |
|
|
return new PageData<>(list, pageInfo.getTotal(), pageSize); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public PageData<ResiPortrayalDetailDTO> queryPortrayalResiListForExport(String customerId, String staffId, |
|
|
|
|
|
Integer pageNo, Integer pageSize, |
|
|
|
|
|
String orgId, String orgType, |
|
|
|
|
|
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)); |
|
|
|
|
|
|
|
|
|
|
|
if (StringUtils.isBlank(orgId)) { |
|
|
|
|
|
orgId = CustomerStaffRedis.getStaffInfo(customerId, staffId).getAgencyId(); |
|
|
|
|
|
orgType = OrgTypeEnum.AGENCY.getCode(); |
|
|
|
|
|
} |
|
|
|
|
|
String orgIdPath=StrConstant.EPMETY_STR; |
|
|
|
|
|
if(OrgTypeEnum.AGENCY.getCode().equals(orgType)){ |
|
|
|
|
|
orgIdPath=CustomerOrgRedis.getOrgIdPath(orgId,orgType); |
|
|
|
|
|
} |
|
|
|
|
|
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())); |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
PageInfo<ResiPortrayalDetailDTO> pageInfo = new PageInfo<>(list); |
|
|
|
|
|
return new PageData<>(list, pageInfo.getTotal(), pageSize); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|