|
@ -1,5 +1,6 @@ |
|
|
package com.epmet.service.impl; |
|
|
package com.epmet.service.impl; |
|
|
|
|
|
|
|
|
|
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
import com.epmet.commons.tools.exception.RenException; |
|
|
import com.epmet.commons.tools.exception.RenException; |
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
@ -11,10 +12,7 @@ import com.epmet.dto.form.*; |
|
|
import com.epmet.dto.result.*; |
|
|
import com.epmet.dto.result.*; |
|
|
import com.epmet.entity.ProjectStaffEntity; |
|
|
import com.epmet.entity.ProjectStaffEntity; |
|
|
import com.epmet.feign.GovOrgFeignClient; |
|
|
import com.epmet.feign.GovOrgFeignClient; |
|
|
import com.epmet.service.ProjectProcessService; |
|
|
import com.epmet.service.*; |
|
|
import com.epmet.service.ProjectService; |
|
|
|
|
|
import com.epmet.service.ProjectStaffService; |
|
|
|
|
|
import com.epmet.service.ProjectTraceService; |
|
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.stereotype.Service; |
|
@ -45,6 +43,8 @@ public class ProjectTraceServiceImpl implements ProjectTraceService { |
|
|
private ProjectProcessDao projectProcessDao; |
|
|
private ProjectProcessDao projectProcessDao; |
|
|
@Autowired |
|
|
@Autowired |
|
|
private ProjectProcessAttachmentDao attachmentDao; |
|
|
private ProjectProcessAttachmentDao attachmentDao; |
|
|
|
|
|
@Autowired |
|
|
|
|
|
private ProjectSubProcessService projectSubProcessService; |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public List<PendProjectListResultDTO> getPendProjectList(TokenDto tokenDto, ProjectListFromDTO fromDTO) { |
|
|
public List<PendProjectListResultDTO> getPendProjectList(TokenDto tokenDto, ProjectListFromDTO fromDTO) { |
|
@ -144,6 +144,13 @@ public class ProjectTraceServiceImpl implements ProjectTraceService { |
|
|
log.warn(ProjectConstant.NOT_EXIST_PROJECT); |
|
|
log.warn(ProjectConstant.NOT_EXIST_PROJECT); |
|
|
return new ArrayList<>(); |
|
|
return new ArrayList<>(); |
|
|
} |
|
|
} |
|
|
|
|
|
// 是否发送到外部系统 0否 1是
|
|
|
|
|
|
processList.forEach(p -> { |
|
|
|
|
|
if (p.getIsSend().equals(NumConstant.ONE)){ |
|
|
|
|
|
p.setSubProcess(projectSubProcessService.selectSubProcessAndAttachment(p.getProcessId())); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
// 查询进展附件列表
|
|
|
// 查询进展附件列表
|
|
|
List<PublicAndInternalFileResultDTO> files = attachmentDao.selectAttachByProjectId(formDTO.getProjectId()); |
|
|
List<PublicAndInternalFileResultDTO> files = attachmentDao.selectAttachByProjectId(formDTO.getProjectId()); |
|
|
if (!CollectionUtils.isEmpty(files)){ |
|
|
if (!CollectionUtils.isEmpty(files)){ |
|
|