|
|
@ -74,29 +74,31 @@ public class ScreenProjectServiceImpl implements ScreenProjectService { |
|
|
|
// 1:红色:为刚提交未做任何响应处理未结案的项目;
|
|
|
|
// 2:黄色: 至少做过一次响应处理答复但未结案的项目;
|
|
|
|
// 3:绿色:已经结案的项目。
|
|
|
|
List<String> areaIds = null; |
|
|
|
List<String> orgIds = null; |
|
|
|
if (StringUtils.isNotBlank(formDTO.getAreaCode())){ |
|
|
|
areaIds = screenProjectDataDao.selectIdsByAreaCode(formDTO.getAreaCode()); |
|
|
|
//所有组织+网格
|
|
|
|
orgIds = screenProjectDataDao.selectIdsByAreaCode(formDTO.getAreaCode()); |
|
|
|
} |
|
|
|
if (formDTO.getPageSize() == null){ |
|
|
|
formDTO.setPageSize(NumConstant.TWO_HUNDRED); |
|
|
|
} |
|
|
|
List<ScreenProjectDistributionResultDTO> resultDTOS = screenProjectDataDao.projectDistribution(formDTO.getAgencyId(),areaIds,formDTO.getLevel(),formDTO.getPageSize()); |
|
|
|
List<ScreenProjectDistributionResultDTO> resultDTOS = screenProjectDataDao.projectDistribution(formDTO.getAgencyId(),orgIds,formDTO.getLevel(),formDTO.getPageSize()); |
|
|
|
return resultDTOS; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Result projectDistributionDetail(ScreenProjectDetailFormDTO formDTO) { |
|
|
|
List<ScreenProjectDetailResultDTO> resultDTOS = screenProjectDataDao.projectDistributionDetail(formDTO.getProjectId()); |
|
|
|
List<ScreenProjectDetailResultDTO> resultDTOS = screenProjectDataDao.projectDistributionDetail(formDTO.getProjectId(),formDTO.getCustomerId()); |
|
|
|
resultDTOS.forEach(item -> { |
|
|
|
//项目图片
|
|
|
|
List<String> imgList = screenProjectDataDao.selectProjectImgs(formDTO.getProjectId()); |
|
|
|
List<String> imgList = screenProjectDataDao.selectProjectImgs(formDTO.getProjectId(),formDTO.getCustomerId()); |
|
|
|
item.setImgList(imgList); |
|
|
|
//项目处理流程
|
|
|
|
List<ScreenProjectDetailResultDTO.processDTO> processDTOS = screenProjectDataDao.selectProjectProcess(formDTO.getProjectId()); |
|
|
|
List<ScreenProjectDetailResultDTO.processDTO> processDTOS = screenProjectDataDao.selectProjectProcess(formDTO.getProjectId(),formDTO.getCustomerId()); |
|
|
|
//流程附件
|
|
|
|
processDTOS.forEach(processDTO -> { |
|
|
|
List<ScreenProjectDetailResultDTO.processDTO.AttachmentDTO> attachmentDTOS = screenProjectDataDao.selectProjectProcessAttachments(processDTO.getProcessId()); |
|
|
|
List<ScreenProjectDetailResultDTO.processDTO.AttachmentDTO> attachmentDTOS = |
|
|
|
screenProjectDataDao.selectProjectProcessAttachments(processDTO.getProcessId(),formDTO.getProjectId(),formDTO.getCustomerId()); |
|
|
|
processDTO.setAttachments(attachmentDTOS); |
|
|
|
}); |
|
|
|
item.setProcessList(processDTOS); |
|
|
|