Browse Source

Merge branch 'master_bugfix' into dev

dev
sunyuchao 5 years ago
parent
commit
a59b6e4d7f
  1. 7
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/CustomerAgencyServiceImpl.java

7
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/CustomerAgencyServiceImpl.java

@ -581,8 +581,11 @@ public class CustomerAgencyServiceImpl extends BaseServiceImpl<CustomerAgencyDao
agencyList.setAgencyName(entity.getOrganizationName());
processorList.setAgencyList(agencyList);
//2:查询当前组织的上两级组织,按层级排序
String[] args = new String[]{};
if (StringUtils.isNotBlank(entity.getPids())) {
String pids = entity.getPids();
String[] args = pids.split(":");
args = pids.split(":");
}
List<String> agencyIdList = new ArrayList<>();
if (args.length < NumConstant.ONE) {
processorList.setParentAgencyList(parentAgencyList);
@ -603,7 +606,7 @@ public class CustomerAgencyServiceImpl extends BaseServiceImpl<CustomerAgencyDao
processorList.setParentAgencyList(parentAgencyList);
}
//3:迭代查询当前组织的所有下级组织列表
List<AgencySubResultDTO> subAgencyList = getDepartmentList(entity.getPids() + ":" + entity.getId());
List<AgencySubResultDTO> subAgencyList = getDepartmentList(("".equals(entity.getPids()) ? "" : entity.getPids() + ":") + entity.getId());
processorList.setSubAgencyList(subAgencyList);
return processorList;

Loading…
Cancel
Save