From ad35f5197bfadddc850cf3b5f1abd9efe27c77c5 Mon Sep 17 00:00:00 2001 From: caihaohan Date: Fri, 15 Dec 2023 18:45:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8E=88=E6=9D=83=E9=83=A8=E9=97=A8?= =?UTF-8?q?=E9=9D=9E=E7=A9=BA=E6=A0=A1=E9=AA=8C=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../laws/common/service/impl/LawsCommonServiceImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/laws-modules/src/main/java/com/jero/modules/laws/common/service/impl/LawsCommonServiceImpl.java b/laws-modules/src/main/java/com/jero/modules/laws/common/service/impl/LawsCommonServiceImpl.java index f32274b9..76956277 100644 --- a/laws-modules/src/main/java/com/jero/modules/laws/common/service/impl/LawsCommonServiceImpl.java +++ b/laws-modules/src/main/java/com/jero/modules/laws/common/service/impl/LawsCommonServiceImpl.java @@ -833,7 +833,10 @@ public class LawsCommonServiceImpl implements ILawsCommonService { // 企标授权部门处理 if (TableNameEnum.ENTERPRISE_STANDARDS.getValue().equals(module)) { - esAuthUserService.resetAuthDept(id, parameterMap.get(FieldCommon.AUTH_DEPT).toString()); + Object authDept = parameterMap.get(FieldCommon.AUTH_DEPT); + if (authDept != null) { + esAuthUserService.resetAuthDept(id, parameterMap.get(FieldCommon.AUTH_DEPT).toString()); + } } // 同步es数据库