| | |
| | | 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()); |