From c057a07946df22aeaab2a464426d630b78646d01 Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: Thu, 05 Feb 2026 09:00:57 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 multi-system/src/main/java/com/gkhy/exam/system/service/impl/InternalAuditPersonServiceImpl.java |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 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..5f2a838 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
@@ -11,8 +11,6 @@
 import com.gkhy.exam.system.domain.InternalAuditPerson;
 import com.gkhy.exam.system.mapper.ExStudentMapper;
 import com.gkhy.exam.system.mapper.InternalAuditPersonMapper;
-import com.gkhy.exam.system.mapper.SysDeptMapper;
-import com.gkhy.exam.system.mapper.SysUserMapper;
 import com.gkhy.exam.system.service.InternalAuditPersonService;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
@@ -44,11 +42,13 @@
 
     @Override
     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("请勿选择本部门成员");
-        }
+//        SysUser user = SecurityUtils.getLoginUser().getUser();
+//        ExStudent exStudent = exStudentMapper.selectStudentById(Long.valueOf(person.getPersonId()));
+//        if (user.getDeptId()!=null){
+//            if (user.getDeptId().equals(exStudent.getDeptId())){
+//                throw new ApiException("请勿选择本部门成员");
+//            }
+//        }
         person.setCreateBy(SecurityUtils.getUsername());
         person.setCreateTime(LocalDateTime.now());
         personMapper.insert(person);

--
Gitblit v1.9.2