| | |
| | | if (accountLevel == 1) { |
| | | throw new ServiceException("市级账号,无法上报!"); |
| | | } |
| | | reportType = accountLevel + 1; |
| | | reportType = accountLevel - 1; |
| | | |
| | | // 使用基本类型比较并补充默认分支 |
| | | if (accountLevel == ReportTypeEnum.COMMUNITY.getCode()) { |
| | |
| | | record2.setUpdateBy(loginUserInfoVO.getUserId()); |
| | | record2.setUpdateTime(new Date(System.currentTimeMillis())); |
| | | record2.setReporter(loginUserInfoVO.getNickName()); |
| | | record2.setReportType(systemUser.getAccountLevel() - 1); |
| | | record2.setReportType(reportType); |
| | | record2.setSuperiorId(superiorId); |
| | | record2.setSort(count + 2); |
| | | complaintAuditRecordService.save(record2); |