|
|
@ -135,15 +135,10 @@ public class StatsGroupServiceImpl implements StatsGroupService { |
|
|
|
if (customerIds.size() != NumConstant.ZERO) { |
|
|
|
DimIdGenerator.DimIdBean dimIdBean = this.getDimIdBean(formDTO); |
|
|
|
customerIds.forEach(customerId -> { |
|
|
|
Boolean status = true; |
|
|
|
try { |
|
|
|
List<DimAgencyDTO> customerAgencyInfos = dimAgencyService.getAgencyInfoByCustomerId(customerId); |
|
|
|
List<List<DimAgencyDTO>> partition = ListUtils.partition(customerAgencyInfos, NumConstant.ONE_HUNDRED); |
|
|
|
for (List<DimAgencyDTO> p : partition) { |
|
|
|
List<AgencyGroupDailyResultDTO> agencyGroupDaily = this.getAgencyGroupDaily(p, dimIdBean, customerId); |
|
|
|
factGroupAgencyDailyService.insertGroupAgencyDaily(agencyGroupDaily, customerId,status); |
|
|
|
status = false; |
|
|
|
} |
|
|
|
List<AgencyGroupDailyResultDTO> agencyGroupDaily = this.getAgencyGroupDaily(customerAgencyInfos, dimIdBean, customerId); |
|
|
|
factGroupAgencyDailyService.insertGroupAgencyDaily(agencyGroupDaily, customerId); |
|
|
|
} catch (Exception e) { |
|
|
|
log.error(String.format(GroupConstant.STATS_FAILED_AGENCY_DAILY, customerId, LocalDate.now(), e)); |
|
|
|
} |
|
|
@ -180,7 +175,7 @@ public class StatsGroupServiceImpl implements StatsGroupService { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @param customerAgencyInfos |
|
|
|
* @param agencyList |
|
|
|
* @param timeDim |
|
|
|
* @param customerId |
|
|
|
* @Description 网格小组 【机关-日】 数据统计处理 |
|
|
|