|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.epmet.dataaggre.service.govproject.impl; |
|
|
|
|
|
|
|
import com.epmet.commons.dynamic.datasource.annotation.DataSource; |
|
|
|
import com.epmet.commons.tools.constant.CustomerIdConstant; |
|
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
|
import com.epmet.commons.tools.constant.StrConstant; |
|
|
|
import com.epmet.commons.tools.dto.result.CustomerStaffInfoCacheResult; |
|
|
@ -559,10 +560,10 @@ public class GovProjectServiceImpl implements GovProjectService { |
|
|
|
})).collect(Collectors.toList()); |
|
|
|
|
|
|
|
//4.根据userId集合和二级分类Code集合查询来源楼院小组的项目
|
|
|
|
List<ProjectCategoryResultDTO> groupList = projectDao.getProjectCategoryList(formDTO.getCustomerId(), secondCodeList, userIds, "issue"); |
|
|
|
List<ProjectCategoryResultDTO> groupList = projectDao.getProjectCategoryList(formDTO.getCustomerId(), formDTO.getCategoryCodeList(), (CustomerIdConstant.SHI_BEI_CUSTOMER_ID.equals(formDTO.getCustomerId()) ? null : secondCodeList), userIds, "issue"); |
|
|
|
|
|
|
|
//5.根据userId集合和二级分类Code集合查询来源事件上报的项目
|
|
|
|
List<ProjectCategoryResultDTO> eventList = projectDao.getProjectCategoryList(formDTO.getCustomerId(), secondCodeList, userIds, "resiEvent"); |
|
|
|
List<ProjectCategoryResultDTO> eventList = projectDao.getProjectCategoryList(formDTO.getCustomerId(), formDTO.getCategoryCodeList(), secondCodeList, userIds, "resiEvent"); |
|
|
|
|
|
|
|
//6.封装数据
|
|
|
|
//楼院小组下分类项目列表
|
|
|
@ -591,9 +592,14 @@ public class GovProjectServiceImpl implements GovProjectService { |
|
|
|
}); |
|
|
|
//当前分类下来源楼院小组的项目
|
|
|
|
groupList.forEach(gr -> { |
|
|
|
if (secondCodeMap.containsKey(gr.getCategoryCode()) && !formDTO.getProjectId().equals(gr.getProjectId())) { |
|
|
|
if (CustomerIdConstant.SHI_BEI_CUSTOMER_ID.equals(formDTO.getCustomerId()) && !formDTO.getProjectId().equals(gr.getProjectId())) { |
|
|
|
ProjectAnalysisResultDTO.Project project = ConvertUtils.sourceToTarget(gr, ProjectAnalysisResultDTO.Project.class); |
|
|
|
groupPrList.add(project); |
|
|
|
} else { |
|
|
|
if (secondCodeMap.containsKey(gr.getCategoryCode()) && !formDTO.getProjectId().equals(gr.getProjectId())) { |
|
|
|
ProjectAnalysisResultDTO.Project project = ConvertUtils.sourceToTarget(gr, ProjectAnalysisResultDTO.Project.class); |
|
|
|
groupPrList.add(project); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
groupCa.setProjectList(groupPrList); |
|
|
|