|
@ -234,9 +234,13 @@ public class StaffServiceImpl implements StaffService { |
|
|
//获取根组织
|
|
|
//获取根组织
|
|
|
CustomerAgencyDTO agency = customerAgencyService.get(customerStaffAgency.getAgencyId()); |
|
|
CustomerAgencyDTO agency = customerAgencyService.get(customerStaffAgency.getAgencyId()); |
|
|
if (StringUtils.isNotBlank(agency.getPids())) { |
|
|
if (StringUtils.isNotBlank(agency.getPids())) { |
|
|
result.setRootAgencyId(agency.getPids().split(StrConstant.COLON)[0]); |
|
|
String rootAgencyId = agency.getPids().split(StrConstant.COLON)[0]; |
|
|
|
|
|
CustomerAgencyDTO rootAgency = customerAgencyService.get(rootAgencyId); |
|
|
|
|
|
result.setRootAgencyId(rootAgencyId); |
|
|
|
|
|
result.setRootAgencyName(rootAgency.getOrganizationName()); |
|
|
} else { |
|
|
} else { |
|
|
result.setRootAgencyId(customerStaffAgency.getAgencyId()); |
|
|
result.setRootAgencyId(customerStaffAgency.getAgencyId()); |
|
|
|
|
|
result.setRootAgencyName(agency.getOrganizationName()); |
|
|
} |
|
|
} |
|
|
//2021.08.27 zhaoqf end
|
|
|
//2021.08.27 zhaoqf end
|
|
|
return result; |
|
|
return result; |
|
|