|
|
@ -1398,8 +1398,21 @@ public class HouseServiceImpl implements HouseService, ResultDataResolver { |
|
|
|
|
|
|
|
String customerId = EpmetRequestHolder.getLoginUserCustomerId(); |
|
|
|
|
|
|
|
if (StringUtils.isBlank(orgId)) { |
|
|
|
// 没有传参数,使用当前登录人员所属的组织去查询
|
|
|
|
String userId = EpmetRequestHolder.getLoginUserId(); |
|
|
|
CustomerStaffInfoCacheResult staffInfo = CustomerStaffRedis.getStaffInfo(customerId, userId); |
|
|
|
if (staffInfo == null) { |
|
|
|
String errorMsg = String.format("查询当前工作人员信息失败。staffId:%s", userId); |
|
|
|
throw new EpmetException(EpmetErrorCode.SERVER_ERROR.getCode(), errorMsg, errorMsg); |
|
|
|
} |
|
|
|
|
|
|
|
orgId = staffInfo.getAgencyId(); |
|
|
|
orgType = "agency"; |
|
|
|
} |
|
|
|
|
|
|
|
PageHelper.startPage(pageNo, pageSize); |
|
|
|
List<String> communityIds = customerAgencyDao.getUsingCommunityList(orgId, CustomerOrgRedis.getOrgIdPath(orgId, orgType), null); |
|
|
|
List<String> communityIds = customerAgencyDao.getUsingCommunityList(customerId, orgId, CustomerOrgRedis.getOrgIdPath(orgId, orgType), null); |
|
|
|
// List<String> communityIds = customerAgencyDao.getCommunitysByOrgIdPath(customerId, orgId, CustomerOrgRedis.getOrgIdPath(orgId, orgType));
|
|
|
|
|
|
|
|
|
|
|
|