From c26e227abe288476c11b0a8b7875045e71efa14c Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: Thu, 30 Apr 2026 17:30:00 +0800
Subject: [PATCH] 新增修改
---
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