From 188e1522e24e61a8993c4ee2368ff9696a424cf1 Mon Sep 17 00:00:00 2001 From: sunyuchao Date: Mon, 10 Aug 2020 14:34:40 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=B5=81=E8=BD=AC=E9=A1=B6?= =?UTF-8?q?=E7=BA=A7=E7=BB=84=E7=BB=87=E4=B8=8D=E8=83=BD=E5=BE=80=E4=B8=8B?= =?UTF-8?q?=E5=90=B9=E7=9A=84=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../epmet/service/impl/CustomerAgencyServiceImpl.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/CustomerAgencyServiceImpl.java b/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/CustomerAgencyServiceImpl.java index 69a1d4ec87..9e059be1bc 100644 --- a/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/CustomerAgencyServiceImpl.java +++ b/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 agencyIdList = new ArrayList<>(); if (args.length < NumConstant.ONE) { processorList.setParentAgencyList(parentAgencyList); @@ -594,7 +597,7 @@ public class CustomerAgencyServiceImpl extends BaseServiceImpl parentList = baseDao.selectAgencyListByIds(agencyIdList); - parentList.forEach(parent->{ + parentList.forEach(parent -> { AgencyResultDTO agency = new AgencyResultDTO(); agency.setAgencyId(parent.getId()); agency.setAgencyName(parent.getOrganizationName()); @@ -603,7 +606,7 @@ public class CustomerAgencyServiceImpl extends BaseServiceImpl subAgencyList = getDepartmentList(entity.getPids() + ":" + entity.getId()); + List subAgencyList = getDepartmentList(("".equals(entity.getPids()) ? "" : ":") + entity.getId()); processorList.setSubAgencyList(subAgencyList); return processorList;