From 42e0a938da4a426ad0a0b62079208a8300b17bc4 Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Sat, 6 Nov 2021 19:02:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E9=83=A8=E9=97=A8=E7=A9=BA?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=9A=84=E6=97=B6=E5=80=99=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/system/service/impl/SysDepartServiceImpl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/SysDepartServiceImpl.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/SysDepartServiceImpl.java index de974a61..1293845f 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/SysDepartServiceImpl.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/SysDepartServiceImpl.java @@ -288,6 +288,9 @@ public class SysDepartServiceImpl extends ServiceImpl getMySubDepIdsByDepId(String departIds) { //根据部门id获取所负责部门 String[] codeArr = this.getMyDeptParentOrgCode(departIds); + if(codeArr==null || codeArr.length==0){ + return null; + } return this.baseMapper.getSubDepIdsByOrgCodes(codeArr); }