|
@ -155,6 +155,9 @@ public class ScreenGrassrootsGovernDataAbsorptionServiceImpl implements ScreenGr |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public boolean difficultyDataExtract(ScreenCentralZoneDataFormDTO param) { |
|
|
public boolean difficultyDataExtract(ScreenCentralZoneDataFormDTO param) { |
|
|
|
|
|
try { |
|
|
|
|
|
//默认查询10天内的数据
|
|
|
|
|
|
param.setInternalDay(DateUtils.getBeforeNDay(NumConstant.TEN)); |
|
|
//获取agency维度
|
|
|
//获取agency维度
|
|
|
List<DimAgencyEntity> agencyList = dimAgencyService.getAgencyListByCustomerId(param.getCustomerId()); |
|
|
List<DimAgencyEntity> agencyList = dimAgencyService.getAgencyListByCustomerId(param.getCustomerId()); |
|
|
Map<String, DimAgencyEntity> agencyMap = agencyList.stream().collect(Collectors.toMap(DimAgencyEntity::getId, o -> o, (o1, o2) -> o1)); |
|
|
Map<String, DimAgencyEntity> agencyMap = agencyList.stream().collect(Collectors.toMap(DimAgencyEntity::getId, o -> o, (o1, o2) -> o1)); |
|
@ -180,7 +183,7 @@ public class ScreenGrassrootsGovernDataAbsorptionServiceImpl implements ScreenGr |
|
|
Map<String, ProjectDTO> bizProjectInfoMap = bizProjectInfoList.stream().collect(Collectors.toMap(ProjectDTO::getId, o -> o, (o1, o2) -> o1)); |
|
|
Map<String, ProjectDTO> bizProjectInfoMap = bizProjectInfoList.stream().collect(Collectors.toMap(ProjectDTO::getId, o -> o, (o1, o2) -> o1)); |
|
|
|
|
|
|
|
|
int pageNo = NumConstant.ONE; |
|
|
int pageNo = NumConstant.ONE; |
|
|
int pageSize = NumConstant.FIVE_HUNDRED; |
|
|
int pageSize = NumConstant.ONE_THOUSAND; |
|
|
List<FactOriginProjectMainAndPeriodDTO> difficultyBaseList; |
|
|
List<FactOriginProjectMainAndPeriodDTO> difficultyBaseList; |
|
|
do { |
|
|
do { |
|
|
//1.根据客户Id 获取所有项目数据
|
|
|
//1.根据客户Id 获取所有项目数据
|
|
@ -257,13 +260,15 @@ public class ScreenGrassrootsGovernDataAbsorptionServiceImpl implements ScreenGr |
|
|
} |
|
|
} |
|
|
log.info("========:" + JSON.toJSONString(diffList)); |
|
|
log.info("========:" + JSON.toJSONString(diffList)); |
|
|
log.info("========:" + JSON.toJSONString(imgDataEntities)); |
|
|
log.info("========:" + JSON.toJSONString(imgDataEntities)); |
|
|
|
|
|
|
|
|
screenDifficultyDataService.dataClean(param.getCustomerId(),diffList,imgDataEntities); |
|
|
screenDifficultyDataService.dataClean(param.getCustomerId(),diffList,imgDataEntities); |
|
|
|
|
|
log.info("difficultyDataExtract excute pageNo:{}",pageNo); |
|
|
} while (!CollectionUtils.isEmpty(difficultyBaseList)&&difficultyBaseList.size()==pageSize); |
|
|
} while (!CollectionUtils.isEmpty(difficultyBaseList)&&difficultyBaseList.size()==pageSize); |
|
|
|
|
|
|
|
|
//log.info("【大屏数据抽取-难点赌点执行完毕】 客户Id{} 难点赌点数据{}", param.getCustomerId(), JSON.toJSONString(diffList));
|
|
|
|
|
|
//3.获取项目的最后操作记录
|
|
|
//3.获取项目的最后操作记录
|
|
|
return true; |
|
|
return true; |
|
|
|
|
|
} finally { |
|
|
|
|
|
log.info("【大屏数据抽取-难点赌点执行完毕】 客户Id{}", param.getCustomerId()); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|