Browse Source

小组机关日统计

master
zxc 4 years ago
parent
commit
f4c9672e5b
  1. 8
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/impl/StatsGroupServiceImpl.java

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

@ -180,19 +180,19 @@ public class StatsGroupServiceImpl implements StatsGroupService {
} }
/** /**
* @param customerAgencyInfos * @param agencyList
* @param timeDim * @param timeDim
* @param customerId * @param customerId
* @Description 网格小组 机关- 数据统计处理 * @Description 网格小组 机关- 数据统计处理
* @author zxc * @author zxc
*/ */
public List<AgencyGroupDailyResultDTO> getAgencyGroupDaily(List<DimAgencyDTO> customerAgencyInfos, DimIdGenerator.DimIdBean timeDim, String customerId) { public List<AgencyGroupDailyResultDTO> getAgencyGroupDaily(List<DimAgencyDTO> agencyList, DimIdGenerator.DimIdBean timeDim, String customerId) {
if (customerAgencyInfos.size() == NumConstant.ZERO) { if (CollectionUtils.isEmpty(agencyList)) {
return new ArrayList<>(); return new ArrayList<>();
} }
List<AgencyGroupDailyResultDTO> result = new ArrayList<>(); List<AgencyGroupDailyResultDTO> result = new ArrayList<>();
String dateId = timeDim.getDateId(); String dateId = timeDim.getDateId();
List<DimAgencyEntity> agencyList = dimAgencyService.getAgencyListByCustomerId(customerId); // List<DimAgencyEntity> agencyList = dimAgencyService.getAgencyListByCustomerId(customerId);
agencyList.forEach(agency -> { agencyList.forEach(agency -> {
AgencyGroupDailyResultDTO agencyResult = new AgencyGroupDailyResultDTO(); AgencyGroupDailyResultDTO agencyResult = new AgencyGroupDailyResultDTO();
String agencyId = agency.getId(); String agencyId = agency.getId();

Loading…
Cancel
Save