|
|
@ -1147,12 +1147,15 @@ public class AgencyServiceImpl implements AgencyService { |
|
|
|
calendar.set(Calendar.MILLISECOND, 0); |
|
|
|
Date endTime = calendar.getTime(); |
|
|
|
|
|
|
|
AgencyInfoCache agencyInfo = CustomerOrgRedis.getAgencyInfo(orgId); |
|
|
|
/* AgencyInfoCache agencyInfo = CustomerOrgRedis.getAgencyInfo(orgId); |
|
|
|
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);
|
|
|
|
// return new UsingCommunityStatsResultDTO(currentUsingCommunityList.size(), currentUsingCommunityList.size() - preferUsingCommunityList.size());
|
|
|
|
return new UsingCommunityStatsResultDTO(currentUsingCommunityList.size(), 0); |
|
|
|
CustomerAgencyEntity customerAgency = customerAgencyDao.selectById(orgId); |
|
|
|
String pids = PidUtils.convertPid2OrgIdPath(customerAgency.getId(),customerAgency.getPids()); |
|
|
|
|
|
|
|
return new UsingCommunityStatsResultDTO(customerAgencyDao.communityCount(pids), 0); |
|
|
|
} else if ("grid".equals(orgType)) { |
|
|
|
// 网格下不会有该数据,给个0
|
|
|
|
return new UsingCommunityStatsResultDTO(0, 0); |
|
|
|