From 9ef02505c6f0bcd87470dc3e9b98a27cea0a8155 Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: 星期二, 22 七月 2025 14:16:57 +0800
Subject: [PATCH] 修改

---
 multi-system/src/main/java/com/gkhy/exam/system/service/impl/InternalAuditPersonServiceImpl.java |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/multi-system/src/main/java/com/gkhy/exam/system/service/impl/InternalAuditPersonServiceImpl.java b/multi-system/src/main/java/com/gkhy/exam/system/service/impl/InternalAuditPersonServiceImpl.java
index ada0c82..6196f34 100644
--- a/multi-system/src/main/java/com/gkhy/exam/system/service/impl/InternalAuditPersonServiceImpl.java
+++ b/multi-system/src/main/java/com/gkhy/exam/system/service/impl/InternalAuditPersonServiceImpl.java
@@ -46,8 +46,10 @@
     public CommonResult insertPerson(InternalAuditPerson person) {
         SysUser user = SecurityUtils.getLoginUser().getUser();
         ExStudent exStudent = exStudentMapper.selectStudentById(Long.valueOf(person.getPersonId()));
-        if (user.getDeptId().equals(exStudent.getDeptId())){
-            throw new ApiException("请勿选择本部门成员");
+        if (user.getDeptId()!=null){
+            if (user.getDeptId().equals(exStudent.getDeptId())){
+                throw new ApiException("请勿选择本部门成员");
+            }
         }
         person.setCreateBy(SecurityUtils.getUsername());
         person.setCreateTime(LocalDateTime.now());

--
Gitblit v1.9.2