Browse Source

数据统计pid修改

dev_shibei_match
zxc 5 years ago
parent
commit
b478d23921
  1. 3
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/impl/StatsGroupServiceImpl.java

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

@ -148,12 +148,11 @@ public class StatsGroupServiceImpl implements StatsGroupService {
String agencyId = agency.getId();
agencyResult.setAgencyId(agencyId);
agencyResult.setCustomerId(customerId);
agencyResult.setPid(agency.getPid());
BeanUtils.copyProperties(timeDim,agencyResult);
//机关下的所有网格(包括直属网格)
List<String> allGrid = this.getAllGrid(agencyId,customerId);
if (allGrid.size() != NumConstant.ZERO) {
String pidByAgencyId = dimAgencyService.getPidByAgencyId(agencyId);
agencyResult.setPid(StringUtils.isBlank(pidByAgencyId) ? "0" : pidByAgencyId);
// 1. 机关下有多少网格
List<GridIdListByCustomerResultDTO> customerGridIdList = customerGridService.getCustomerGridIdList(customerId, dateId);
AtomicReference<Integer> gridSize = new AtomicReference<>(0);

Loading…
Cancel
Save