Browse Source

将项目-节点-耗时抽取改为全量删增

master
wangchao 5 years ago
parent
commit
ff0b274b45
  1. 9
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/extract/todata/impl/ProjectExtractServiceImpl.java
  2. 3
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/project/ProjectProcessService.java
  3. 9
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/project/impl/ProjectProcessServiceImpl.java

9
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/extract/todata/impl/ProjectExtractServiceImpl.java

@ -389,19 +389,14 @@ public class ProjectExtractServiceImpl implements ProjectExtractService {
/**
* @param param
* @return
* @Description 抽取项目节点历时逻辑
* @Description 抽取项目节点历时逻辑 全量
* @author wangc
* @date 2020.09.17 14:05
**/
@Override
public void extractProjectPeriodData(ExtractOriginFormDTO param) {
int trace = factOriginProjectOrgPeriodDailyDao.selectIfExisted(param.getCustomerId());
Boolean isFirst = trace <= NumConstant.ZERO;
if (StringUtils.isBlank(param.getDateId())) {
param.setDateId(DateUtils.getBeforeNDay(NumConstant.ONE));
}
List<ProjectOrgPeriodResultDTO> extractData =
projectProcessService.getProjectPeriodDirectly(isFirst, param.getCustomerId(), param.getDateId());
projectProcessService.getProjectPeriodDirectly(param.getCustomerId(), param.getDateId());
List<FactOriginProjectOrgPeriodDailyEntity> formattingData = new LinkedList<>();
extractData.forEach(original -> {
FactOriginProjectOrgPeriodDailyEntity dest

3
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/project/ProjectProcessService.java

@ -97,14 +97,13 @@ public interface ProjectProcessService extends BaseService<ProjectProcessEntity>
/**
* @Description 直接从项目业务改造获取项目节点耗时信息
* @param isFirst
* @param customerId
* @param date
* @return java.util.List<com.epmet.dto.project.result.ProjectOrgPeriodResultDTO>
* @author wangc
* @date 2020.10.23 09:10
*/
List<ProjectOrgPeriodResultDTO> getProjectPeriodDirectly(Boolean isFirst,String customerId, String date);
List<ProjectOrgPeriodResultDTO> getProjectPeriodDirectly(String customerId, String date);
/**
* 获取办结组织

9
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/project/impl/ProjectProcessServiceImpl.java

@ -99,13 +99,8 @@ public class ProjectProcessServiceImpl extends BaseServiceImpl<ProjectProcessDao
* @date 2020.10.23 09:10
*/
@Override
public List<ProjectOrgPeriodResultDTO> getProjectPeriodDirectly(Boolean isFirst, String customerId, String date) {
if(isFirst){
return baseDao.selectProjectOrgPeriodDirectly(customerId,null,null);
}else{
return baseDao.selectProjectOrgPeriodDirectly(customerId,null,date);
}
public List<ProjectOrgPeriodResultDTO> getProjectPeriodDirectly( String customerId, String date) {
return baseDao.selectProjectOrgPeriodDirectly(customerId,null,null);
}
@Override

Loading…
Cancel
Save