|
|
@ -1175,7 +1175,7 @@ public class CustomerAgencyServiceImpl extends BaseServiceImpl<CustomerAgencyDao |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
public AgencyTreeResultDTO getOrgTreeData(String staffId) { |
|
|
|
public AgencyTreeResultDTO getOrgTreeData(String staffId,String customerId) { |
|
|
|
AgencyTreeResultDTO result = new AgencyTreeResultDTO(); |
|
|
|
//1.查询工作人员所属组织信息
|
|
|
|
AgencyResultDTO rootAgency = baseDao.selectAgencyByStaffId(staffId); |
|
|
@ -1191,7 +1191,7 @@ public class CustomerAgencyServiceImpl extends BaseServiceImpl<CustomerAgencyDao |
|
|
|
result.setLongitude(rootAgency.getLongitude()); |
|
|
|
result.setLatitude(rootAgency.getLatitude()); |
|
|
|
|
|
|
|
String orgTreeCacheKey = RedisKeys.getOrgTreeCacheKey(rootAgency.getAgencyId()); |
|
|
|
String orgTreeCacheKey = RedisKeys.getOrgTreeCacheKey(rootAgency.getAgencyId(),customerId); |
|
|
|
Object o = redisUtils.get(orgTreeCacheKey); |
|
|
|
if (o == null){ |
|
|
|
ExtStaffPermissionResultDTO res = baseDao.selectAgencyAndGridById(rootAgency.getAgencyId()); |
|
|
@ -1460,7 +1460,7 @@ public class CustomerAgencyServiceImpl extends BaseServiceImpl<CustomerAgencyDao |
|
|
|
result.setLongitude(rootAgency.getLongitude()); |
|
|
|
result.setLatitude(rootAgency.getLatitude()); |
|
|
|
|
|
|
|
String orgTreeCacheKey = RedisKeys.getOrgTreeCacheKey(rootAgency.getId()); |
|
|
|
String orgTreeCacheKey = RedisKeys.getOrgTreeCacheKey(rootAgency.getId(),rootAgency.getCustomerId()); |
|
|
|
Object o = redisUtils.get(orgTreeCacheKey); |
|
|
|
if (o == null) { |
|
|
|
ExtStaffPermissionResultDTO res = baseDao.selectAgencyAndGridById(rootAgency.getId()); |
|
|
|