wangxianzhang 3 years ago
parent
commit
b5e4a3a075
  1. 6
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/HouseServiceImpl.java

6
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/HouseServiceImpl.java

@ -1417,11 +1417,11 @@ public class HouseServiceImpl implements HouseService, ResultDataResolver {
return null; return null;
} }
agencyNamePathList.add(0, agencyInfo.getOrganizationName());
String pidsStr = agencyInfo.getPids(); String pidsStr = agencyInfo.getPids();
if (StringUtils.isBlank(pidsStr)) { if (StringUtils.isBlank(pidsStr)) {
// 没有pids,是顶级,直接返回 // 没有pids,是顶级,直接返回
agencyNamePathList.add(agencyInfo.getOrganizationName());
return String.join("-", agencyNamePathList); return String.join("-", agencyNamePathList);
} }
@ -1433,8 +1433,8 @@ public class HouseServiceImpl implements HouseService, ResultDataResolver {
} }
agencyNamePathList.add(pAgencyInfo.getOrganizationName()); agencyNamePathList.add(pAgencyInfo.getOrganizationName());
} }
// 反转列表 // 最后把自己加上
Collections.reverse(agencyNamePathList); agencyNamePathList.add(agencyInfo.getOrganizationName());
return String.join("-", agencyNamePathList); return String.join("-", agencyNamePathList);
} }
} }

Loading…
Cancel
Save