|
|
@ -694,8 +694,13 @@ public class ResiEventServiceImpl extends BaseServiceImpl<ResiEventDao, ResiEven |
|
|
|
} |
|
|
|
IcResiUserBriefDTO icResiUserDTO = userRes.getData(); |
|
|
|
ResiEventResearchAnalysisResDTO resultDTO = ConvertUtils.sourceToTarget(icResiUserDTO, ResiEventResearchAnalysisResDTO.class); |
|
|
|
resultDTO.setEpmetUserIdList(!CollectionUtils.isEmpty(formDTO.getEpmetUserIdList()) ? formDTO.getEpmetUserIdList() : Collections.emptyList()); |
|
|
|
resultDTO.setProjectData(new ArrayList<>()); |
|
|
|
if(CollectionUtils.isEmpty(formDTO.getEpmetUserIdList())){ |
|
|
|
//灭有找到小程序里的用户id, 所以不用查询接下来的项目了.....
|
|
|
|
return resultDTO; |
|
|
|
} |
|
|
|
resultDTO.setEpmetUserIdList(formDTO.getEpmetUserIdList()); |
|
|
|
|
|
|
|
// 先判断这个项目是否有分类没有直接返回
|
|
|
|
List<ProjectCategoryDTO> projectCategoryDTOList=projectCategoryService.getProjectCategoryService(formDTO.getProjectId()); |
|
|
|
if(CollectionUtils.isEmpty(projectCategoryDTOList)){ |
|
|
@ -740,10 +745,8 @@ public class ResiEventServiceImpl extends BaseServiceImpl<ResiEventDao, ResiEven |
|
|
|
List<ProjectDataDTO> projectData=new ArrayList<>(); |
|
|
|
for(IssueProjectCategoryDictDTO categoryDictDTO:categoryRes.getData()){ |
|
|
|
//当前项目分类一致,排除当前项目,相同分类编码
|
|
|
|
//todo
|
|
|
|
List<ProjectInfoIcData> projectList=null; |
|
|
|
//projectDao.selectCommonCategoryEventProject(projectCategoryDTOList.get(NumConstant.ZERO).getCustomerId(),
|
|
|
|
//categoryDictDTO.getCategoryCode(),formDTO.getProjectId());
|
|
|
|
List<ProjectInfoIcData> projectList=projectDao.selectCommonCategoryEventProject(projectCategoryDTOList.get(NumConstant.ZERO).getCustomerId(), |
|
|
|
categoryDictDTO.getCategoryCode(),formDTO.getProjectId(),formDTO.getEpmetUserIdList()); |
|
|
|
if(!CollectionUtils.isEmpty(projectList)){ |
|
|
|
ProjectDataDTO projectDataDTO=new ProjectDataDTO(); |
|
|
|
projectDataDTO.setFirstCategoryCode(categoryDictDTO.getCategoryCode()); |
|
|
|