|
@ -1149,8 +1149,9 @@ public class AgencyServiceImpl implements AgencyService { |
|
|
AgencyInfoCache agencyInfo = CustomerOrgRedis.getAgencyInfo(orgId); |
|
|
AgencyInfoCache agencyInfo = CustomerOrgRedis.getAgencyInfo(orgId); |
|
|
agencyOrgIdPath = getOrgIdPath(agencyInfo.getPids(), agencyInfo.getId()); |
|
|
agencyOrgIdPath = getOrgIdPath(agencyInfo.getPids(), agencyInfo.getId()); |
|
|
List<String> currentUsingCommunityList = customerAgencyDao.getUsingCommunityList(customerId, orgId, agencyOrgIdPath, null); |
|
|
List<String> currentUsingCommunityList = customerAgencyDao.getUsingCommunityList(customerId, orgId, agencyOrgIdPath, null); |
|
|
List<String> preferUsingCommunityList = customerAgencyDao.getUsingCommunityList(customerId, orgId, agencyOrgIdPath, endTime); |
|
|
// List<String> preferUsingCommunityList = customerAgencyDao.getUsingCommunityList(customerId, orgId, agencyOrgIdPath, endTime);
|
|
|
return new UsingCommunityStatsResultDTO(currentUsingCommunityList.size(), currentUsingCommunityList.size() - preferUsingCommunityList.size()); |
|
|
// return new UsingCommunityStatsResultDTO(currentUsingCommunityList.size(), currentUsingCommunityList.size() - preferUsingCommunityList.size());
|
|
|
|
|
|
return new UsingCommunityStatsResultDTO(currentUsingCommunityList.size(), 0); |
|
|
} else if ("grid".equals(orgType)) { |
|
|
} else if ("grid".equals(orgType)) { |
|
|
// 网格下不会有该数据,给个0
|
|
|
// 网格下不会有该数据,给个0
|
|
|
return new UsingCommunityStatsResultDTO(0, 0); |
|
|
return new UsingCommunityStatsResultDTO(0, 0); |
|
|