From 44036f6e3f4d443d58f594774ef89221f7a87036 Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: Mon, 02 Feb 2026 17:28:34 +0800
Subject: [PATCH] 增加初始化数据
---
multi-system/src/main/java/com/gkhy/exam/system/service/impl/InternalAuditPersonServiceImpl.java | 8 ++++----
1 files changed, 4 insertions(+), 4 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..f9a69e0 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;
@@ -46,8 +44,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