|
|
@ -1145,9 +1145,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()); |
|
|
Integer currentUsingCommunityCount = customerAgencyDao.getUsingCommunityStats(orgId, agencyOrgIdPath, null); |
|
|
List<String> currentUsingCommunityList = customerAgencyDao.getUsingCommunityList(orgId, agencyOrgIdPath, null); |
|
|
Integer prefersUsingCommunityCount = customerAgencyDao.getUsingCommunityStats(orgId, agencyOrgIdPath, endTime); |
|
|
List<String> preferUsingCommunityList = customerAgencyDao.getUsingCommunityList(orgId, agencyOrgIdPath, endTime); |
|
|
return new UsingCommunityStatsResultDTO(currentUsingCommunityCount, currentUsingCommunityCount - prefersUsingCommunityCount); |
|
|
return new UsingCommunityStatsResultDTO(currentUsingCommunityList.size(), currentUsingCommunityList.size() - preferUsingCommunityList.size()); |
|
|
} else if ("grid".equals(orgType)) { |
|
|
} else if ("grid".equals(orgType)) { |
|
|
// 网格下不会有该数据,给个0
|
|
|
// 网格下不会有该数据,给个0
|
|
|
return new UsingCommunityStatsResultDTO(0, 0); |
|
|
return new UsingCommunityStatsResultDTO(0, 0); |
|
|
|