Browse Source

网格小组数据

master
zxc 5 years ago
parent
commit
5dac5d3054
  1. 4
      epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/constant/GroupConstant.java
  2. 7
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/impl/StatsGroupServiceImpl.java

4
epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/constant/GroupConstant.java

@ -29,8 +29,8 @@ public interface GroupConstant {
String CITY = "city";
String PROVINCE = "province";
String ERRORGRIDDAILY = "groupGridDaily ==>【网格小组统计出错了... 维度:网格-日】customerId为:";
String STATS_FAILED_GRID_DAILY = "方法:groupGridDaily ==>【网格小组统计出错了... 维度:网格-日】customerId为:";
String ERRORAGENCYDAILY = "groupAgencyDaily ==>【网格小组统计出错了... 维度:机关-日】customerId为:";
String STATS_FAILED_AGENCY_DAILY = "方法:groupAgencyDaily ==>【网格小组统计出错了... 维度:机关-日】customerId为:";
}

7
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/impl/StatsGroupServiceImpl.java

@ -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);
}
});
}

Loading…
Cancel
Save