| | |
| | | complaintAuditRecord.setAuditTime(new Date()); |
| | | |
| | | |
| | | if (systemUser.getSystemRoleId() != 1 || systemUser.getAccountLevel() != complaintAuditRecord.getReporterLevel()) { |
| | | if (systemUser.getSystemRoleId() > 2 || systemUser.getAccountLevel() != complaintAuditRecord.getReporterLevel()) { |
| | | throw new ServiceException("无权审核"); |
| | | } |
| | | |
| | |
| | | Complaint complaint = this.getById(complaintReporAuditDTO.getId()); |
| | | complaint.setAssignPersonId(complaintReporAuditDTO.getDeptId()); |
| | | complaint.setAssignStatus(1); |
| | | complaint.setFirstStatus(1); |
| | | complaint.setLastSuperiorId(complaint.getSuperiorId()); |
| | | complaint.setLastLevel(complaint.getNowLevel()); |
| | | complaint.setRemark(complaintReporAuditDTO.getRemark()); |
| | |
| | | IdentityInformation identityInformation = identityInformationService.getCurrentIdentityInformation(loginUserInfo); |
| | | List<DispatchVO> dispatchVOList = new ArrayList<>(); |
| | | SystemUser adminUser = identityInformation.getSystemUser(); |
| | | if (adminUser.getSystemRoleId() != 1) { |
| | | if (adminUser.getSystemRoleId() >2) { |
| | | throw new ServiceException("无权查看"); |
| | | } |
| | | Integer oneDepartmentId = adminUser.getOneDepartmentId(); |