Staff staff = staffRepo.findByOpenId(findOpenIdByToken(dto.getAccessToken())); | Staff staff = staffRepo.findByOpenId(findOpenIdByToken(dto.getAccessToken())); | ||||
if (ObjectUtils.isNotEmpty(staff)){ | if (ObjectUtils.isNotEmpty(staff)){ | ||||
pageRequest.setAgencyId(staff.getAgencyId()); | pageRequest.setAgencyId(staff.getAgencyId()); | ||||
if ("MANAGER".equals(staff.getIdentityType())){ | |||||
if ("MANAGER".equals(staff.getIdentityType()) || "52010106004".equals(staff.getAgencyId())){ | |||||
pageRequest.setAgencyId(null); | pageRequest.setAgencyId(null); | ||||
} | } | ||||
} | } |
Staff staff = staffRepo.findByOpenId(findOpenIdByToken(dto.getAccessToken())); | Staff staff = staffRepo.findByOpenId(findOpenIdByToken(dto.getAccessToken())); | ||||
if (ObjectUtils.isNotEmpty(staff)){ | if (ObjectUtils.isNotEmpty(staff)){ | ||||
pageRequest.setAgencyId(staff.getAgencyId()); | pageRequest.setAgencyId(staff.getAgencyId()); | ||||
if ("MANAGER".equals(staff.getIdentityType())){ | |||||
if ("MANAGER".equals(staff.getIdentityType()) || "52010106004".equals(staff.getAgencyId())){ | |||||
pageRequest.setAgencyId(null); | pageRequest.setAgencyId(null); | ||||
} | } | ||||
} | } |