|
|
@ -20,19 +20,15 @@ package com.epmet.service.project.impl; |
|
|
|
import com.epmet.commons.dynamic.datasource.annotation.DataSource; |
|
|
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
|
import com.epmet.commons.tools.utils.DateUtils; |
|
|
|
import com.epmet.constant.DataSourceConstant; |
|
|
|
import com.epmet.dao.project.ProjectProcessDao; |
|
|
|
import com.epmet.dto.ProjectProcessDTO; |
|
|
|
import com.epmet.dto.form.CommonStaffIdFormDTO; |
|
|
|
import com.epmet.dto.project.FinishOrgDTO; |
|
|
|
import com.epmet.dto.project.ProcessInfoDTO; |
|
|
|
import com.epmet.dto.project.ProjectOrgRelationDTO; |
|
|
|
import com.epmet.dto.project.ProjectStaffDTO; |
|
|
|
import com.epmet.dto.project.result.ProjectLatestOperationResultDTO; |
|
|
|
import com.epmet.dto.project.result.ProjectOrgPeriodResultDTO; |
|
|
|
import com.epmet.dto.project.result.ProjectOrgRelationWhenResponseResultDTO; |
|
|
|
import com.epmet.dto.screen.ScreenProjectDataDTO; |
|
|
|
import com.epmet.dto.screen.ScreenProjectProcessAttachmentDTO; |
|
|
|
import com.epmet.dto.screen.ScreenProjectProcessDTO; |
|
|
@ -44,9 +40,7 @@ import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.util.CollectionUtils; |
|
|
|
|
|
|
|
import java.text.SimpleDateFormat; |
|
|
|
import java.util.*; |
|
|
|
import java.util.stream.Collector; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
/** |
|
|
@ -98,7 +92,7 @@ public class ProjectProcessServiceImpl extends BaseServiceImpl<ProjectProcessDao |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 直接从项目业务改造获取项目节点耗时信息 |
|
|
|
* @param isFirst |
|
|
|
* @param |
|
|
|
* @param customerId |
|
|
|
* @param date |
|
|
|
* @return java.util.List<com.epmet.dto.project.result.ProjectOrgPeriodResultDTO> |
|
|
@ -191,8 +185,7 @@ public class ProjectProcessServiceImpl extends BaseServiceImpl<ProjectProcessDao |
|
|
|
public List<ScreenProjectProcessDTO> buildNewScreenProjectProcessData(String customerId, String dateId, boolean ifRanged) { |
|
|
|
List<ScreenProjectProcessDTO> processes = baseDao.selectProjectProcessAndDirection(customerId, ifRanged ? null : dateId, dateId); |
|
|
|
if(CollectionUtils.isEmpty(processes)) return null; |
|
|
|
return processes.stream().filter(process -> StringUtils.equalsAny(process.getOperation(), |
|
|
|
"close","return","transfer")).map(target -> { |
|
|
|
return processes.stream().map(target -> { |
|
|
|
List<ProjectStaffDTO> points = target.getPoints(); |
|
|
|
if(!CollectionUtils.isEmpty(points)){ |
|
|
|
List<String> orgIds = points.stream().map(ProjectStaffDTO::getOrgId).distinct().collect(Collectors.toList()); |
|
|
|