|
|
@ -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 |
|
|
|