From b5e4a3a0757a239cf44887eb058fde0c35f81444 Mon Sep 17 00:00:00 2001 From: wangxianzhang Date: Wed, 12 Oct 2022 15:07:16 +0800 Subject: [PATCH] - --- .../main/java/com/epmet/service/impl/HouseServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/HouseServiceImpl.java b/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/HouseServiceImpl.java index 46c3a00d59..413bf6df2c 100644 --- a/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/HouseServiceImpl.java +++ b/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; } - agencyNamePathList.add(0, agencyInfo.getOrganizationName()); String pidsStr = agencyInfo.getPids(); if (StringUtils.isBlank(pidsStr)) { // 没有pids,是顶级,直接返回 + agencyNamePathList.add(agencyInfo.getOrganizationName()); return String.join("-", agencyNamePathList); } @@ -1433,8 +1433,8 @@ public class HouseServiceImpl implements HouseService, ResultDataResolver { } agencyNamePathList.add(pAgencyInfo.getOrganizationName()); } - // 反转列表 - Collections.reverse(agencyNamePathList); + // 最后把自己加上 + agencyNamePathList.add(agencyInfo.getOrganizationName()); return String.join("-", agencyNamePathList); } }