heheng
2026-02-05 c057a07946df22aeaab2a464426d630b78646d01
multi-system/src/main/java/com/gkhy/exam/system/service/impl/InternalAuditPersonServiceImpl.java
@@ -42,13 +42,13 @@
    @Override
    public CommonResult insertPerson(InternalAuditPerson person) {
        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("请勿选择本部门成员");
            }
        }
//        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);