From ab863e67e115f0810dce0e31484d4ba26e46b1f2 Mon Sep 17 00:00:00 2001 From: tangqian Date: Fri, 16 Jun 2023 11:53:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=8E=A8=E5=B9=BF=E5=91=98=E5=AF=BC?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/service/tenant/TenantServiceImpl.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/tenant/TenantServiceImpl.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/tenant/TenantServiceImpl.java index d09341491..76fd21b8a 100755 --- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/tenant/TenantServiceImpl.java +++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/tenant/TenantServiceImpl.java @@ -172,10 +172,13 @@ public class TenantServiceImpl implements TenantService { } // 同步修改部门信息 DeptUpdateReqVO reqVO = new DeptUpdateReqVO(); - DeptDO dept = deptService.getDept(updateReqVO.getId()); - reqVO.setName(updateReqVO.getName()); - reqVO.setId(dept.getId()); - deptService.updateDept(reqVO); + DeptDO dept = deptService.getDept(updateObj.getId()); + if (null != dept) { + reqVO.setName(updateObj.getName()); + reqVO.setId(dept.getId()); + deptService.updateDept(reqVO); + } + } /**