|
|
@ -574,6 +574,15 @@ public class IcUserDemandRecServiceImpl extends BaseServiceImpl<IcUserDemandRecD |
|
|
|
IcResiUserBriefDTO icResiUserDTO = userRes.getData(); |
|
|
|
DemandResearchAnalysisResultDTO resultDTO = ConvertUtils.sourceToTarget(icResiUserDTO, DemandResearchAnalysisResultDTO.class); |
|
|
|
resultDTO.setEpmetUserIdList(CollectionUtils.isNotEmpty(formDTO.getEpmetUserIdList()) ? formDTO.getEpmetUserIdList() : Collections.emptyList()); |
|
|
|
|
|
|
|
//返参格式套一层类别和类别名称
|
|
|
|
List<DemandDataDTO> demandData=new ArrayList<>(); |
|
|
|
DemandDataDTO demandDataDTO=new DemandDataDTO(); |
|
|
|
demandDataDTO.setFirstCategoryCode(formDTO.getFirstCategoryCode()); |
|
|
|
demandDataDTO.setFirstCategoryName(demandDictService.getCategoryName(formDTO.getCustomerId(),formDTO.getFirstCategoryCode())); |
|
|
|
demandDataDTO.setDemandList(new ArrayList<>()); |
|
|
|
demandData.add(demandDataDTO); |
|
|
|
|
|
|
|
//获取当前需求人,相同分类的需求列表。不分页,直接返回所有
|
|
|
|
List<String> userIds=new ArrayList<>(); |
|
|
|
userIds.add(formDTO.getIcResiUserId()); |
|
|
@ -604,7 +613,7 @@ public class IcUserDemandRecServiceImpl extends BaseServiceImpl<IcUserDemandRecD |
|
|
|
//一级分类名称
|
|
|
|
resDto.setFirstCategoryName(demandDictService.getCategoryName(formDTO.getCustomerId(),resDto.getFirstCategoryCode())); |
|
|
|
} |
|
|
|
resultDTO.setDemandList(CollectionUtils.isNotEmpty(demandList) ? demandList : Collections.emptyList()); |
|
|
|
demandData.get(NumConstant.ZERO).setDemandList(CollectionUtils.isNotEmpty(demandList) ? demandList : Collections.emptyList()); |
|
|
|
} |
|
|
|
return resultDTO; |
|
|
|
} |
|
|
|