“djh”
2026-02-10 9d9f582738123dbbfc6a7b91bb16ff4e4bf9f8f2
multi-system/src/main/java/com/gkhy/exam/system/service/impl/InternalAuditEvaluateServiceImpl.java
@@ -12,7 +12,6 @@
import com.gkhy.exam.system.domain.InternalAuditEvaluate;
import com.gkhy.exam.system.mapper.ExStudentMapper;
import com.gkhy.exam.system.mapper.InternalAuditEvaluateMapper;
import com.gkhy.exam.system.mapper.SysUserMapper;
import com.gkhy.exam.system.service.InternalAuditEvaluateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@@ -49,12 +48,12 @@
        if (!user.getUserType().equals(UserTypeEnum.SYSTEM_USER.getCode())&&!user.getUserType().equals(UserTypeEnum.COMPANY_USER.getCode())&&!user.getUserType().equals(UserTypeEnum.COMPANY_ADMIN.getCode())){
            throw new ApiException("普通用户无法添加相关数据");
        }
        ExStudent exStudent = exStudentMapper.selectStudentById(Long.valueOf(evaluate.getPersonId()));
        if ( user.getDeptId()!=null){
            if ( user.getDeptId().equals(exStudent.getDeptId())) {
                throw new ApiException("请勿选择本部门成员");
            }
        }
//        ExStudent exStudent = exStudentMapper.selectStudentById(Long.valueOf(evaluate.getPersonId()));
//        if ( user.getDeptId()!=null){
//            if ( user.getDeptId().equals(exStudent.getDeptId())) {
//                throw new ApiException("请勿选择本部门成员");
//            }
//        }
        evaluate.setCreateBy(SecurityUtils.getUsername());
        evaluate.setCreateTime(LocalDateTime.now());
        evaluateMapper.insert(evaluate);