heheng
17 分钟以前 c6c31238eb870b5bc9bf0765edd439e9896919da
multi-system/src/main/java/com/gkhy/exam/system/service/impl/InternalAuditPersonServiceImpl.java
@@ -46,8 +46,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());