Browse Source

项目进展V2--排序

master
zxc 5 years ago
parent
commit
0181ebffd6
  1. 2
      epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/constant/ProjectConstant.java
  2. 3
      epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/service/impl/ProjectTraceServiceImpl.java

2
epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/constant/ProjectConstant.java

@ -156,4 +156,6 @@ public interface ProjectConstant {
String PUBLIC = "public";
String INTERNAL = "internal";
String NOT_EXIST_PROJECT = "未查询带此项目信息......";
}

3
epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/service/impl/ProjectTraceServiceImpl.java

@ -15,6 +15,7 @@ import com.epmet.service.ProjectProcessService;
import com.epmet.service.ProjectService;
import com.epmet.service.ProjectStaffService;
import com.epmet.service.ProjectTraceService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;
@ -30,6 +31,7 @@ import java.util.stream.Collectors;
* @date 2020/5/11 16:35
*/
@Service
@Slf4j
public class ProjectTraceServiceImpl implements ProjectTraceService {
@Autowired
private ProjectService projectService;
@ -137,6 +139,7 @@ public class ProjectTraceServiceImpl implements ProjectTraceService {
public List<ProcessListV2ResultDTO> processListV2(ProcessListV2FormDTO formDTO) {
List<ProcessListV2ResultDTO> processList = projectProcessDao.selectProcessList(formDTO.getProjectId());
if (CollectionUtils.isEmpty(processList)){
log.warn(ProjectConstant.NOT_EXIST_PROJECT);
return new ArrayList<>();
}
List<PublicAndInternalFileResultDTO> files = attachmentDao.selectAttachByProjectId(formDTO.getProjectId());

Loading…
Cancel
Save