“djh”
2 天以前 8c91afa9c1bbe5fae9d88cfd1e7243c376af69fe
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());