|
|
@ -98,17 +98,17 @@ public class ScreenProjectServiceImpl implements ScreenProjectService { |
|
|
|
|
|
|
|
@Override |
|
|
|
public Result projectDistributionDetail(ScreenProjectDetailFormDTO formDTO) { |
|
|
|
List<ScreenProjectDetailResultDTO> resultDTOS = screenProjectDataDao.projectDistributionDetail(formDTO.getProjectId(),formDTO.getCustomerId()); |
|
|
|
List<ScreenProjectDetailResultDTO> resultDTOS = screenProjectDataDao.projectDistributionDetail(formDTO.getProjectId()); |
|
|
|
resultDTOS.forEach(item -> { |
|
|
|
//项目图片
|
|
|
|
List<String> imgList = screenProjectDataDao.selectProjectImgs(formDTO.getProjectId(),formDTO.getCustomerId()); |
|
|
|
List<String> imgList = screenProjectDataDao.selectProjectImgs(formDTO.getProjectId(),item.getCustomerId()); |
|
|
|
item.setImgList(imgList); |
|
|
|
//项目处理流程
|
|
|
|
List<ScreenProjectDetailResultDTO.processDTO> processDTOS = screenProjectDataDao.selectProjectProcess(formDTO.getProjectId(),formDTO.getCustomerId()); |
|
|
|
List<ScreenProjectDetailResultDTO.processDTO> processDTOS = screenProjectDataDao.selectProjectProcess(formDTO.getProjectId(),item.getCustomerId()); |
|
|
|
//流程附件
|
|
|
|
processDTOS.forEach(processDTO -> { |
|
|
|
List<ScreenProjectDetailResultDTO.processDTO.AttachmentDTO> attachmentDTOS = |
|
|
|
screenProjectDataDao.selectProjectProcessAttachments(processDTO.getProcessId(),formDTO.getProjectId(),formDTO.getCustomerId()); |
|
|
|
screenProjectDataDao.selectProjectProcessAttachments(processDTO.getProcessId(),formDTO.getProjectId(),item.getCustomerId()); |
|
|
|
processDTO.setAttachments(attachmentDTOS); |
|
|
|
}); |
|
|
|
item.setProcessList(processDTOS); |
|
|
|