|
|
@ -67,14 +67,11 @@ public class StatsGroupServiceImpl implements StatsGroupService { |
|
|
|
customerIds.forEach(customerId -> { |
|
|
|
try { |
|
|
|
DimIdGenerator.DimIdBean dimIdBean = this.getDimIdBean(date); |
|
|
|
|
|
|
|
// List<DimGridEntity> gridsInfo = dimGridService.getGridListByCustomerId(customerId);
|
|
|
|
List<GridIdListByCustomerResultDTO> gridsInfo = customerGridService.getCustomerGridIdList(customerId, dimIdBean.getDateId()); |
|
|
|
|
|
|
|
List<GroupGridDailyResultDTO> resultDTOS = groupDataService.groupGridDaily(customerId,dimIdBean,gridsInfo); |
|
|
|
factGroupGridDailyService.statisticsGroupGridDaily(resultDTOS,customerId); |
|
|
|
} catch (Exception e) { |
|
|
|
log.error(GroupConstant.ERRORGRIDDAILY+customerId,e); |
|
|
|
log.error(GroupConstant.STATS_FAILED_GRID_DAILY+customerId,e); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
@ -101,7 +98,7 @@ public class StatsGroupServiceImpl implements StatsGroupService { |
|
|
|
List<AgencyGroupDailyResultDTO> agencyGroupDaily = this.getAgencyGroupDaily(customerAgencyInfos, dimIdBean, customerId); |
|
|
|
factGroupAgencyDailyService.insertGroupAgencyDaily(agencyGroupDaily,customerId); |
|
|
|
} catch (Exception e) { |
|
|
|
log.error(GroupConstant.ERRORAGENCYDAILY+customerId,e); |
|
|
|
log.error(GroupConstant.STATS_FAILED_AGENCY_DAILY+customerId,e); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|