| | |
| | | Complaint complaint = getById(complaintAuditRecord.getComplaintId()); |
| | | |
| | | Long superiorId = null; |
| | | if (Objects.nonNull(complaint)) { |
| | | if (Objects.nonNull(complaint) && complaintReporAuditDTO.getAuditResult().equals(1)) { |
| | | superiorId = complaint.getCreateBy(); |
| | | if (Objects.nonNull(complaint.getSuperiorId())) { |
| | | superiorId = complaint.getSuperiorId(); |
| | | } |
| | | complaintFlowService.createFlow(complaintAuditRecord.getComplaintId(), superiorId,complaint.getReportType(),0, loginUserInfoVO.getUserId()); |
| | | } |
| | | //审核通过后,将诉求转移给上级 |
| | | if (complaintAuditRecord.getAuditType().equals(2) && complaintAuditRecord.getAuditStatus().equals(1)){ |
| | | SystemUser systemUser = systemUserByPhone.get(); |
| | |
| | | } |
| | | complaint.setSuperiorId(superiorId); |
| | | updateById(complaint ); |
| | | } |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | complaintAuditRecordService.audit(complaintAuditRecord, loginUserInfoVO.getUserId(), |
| | | complaintDelayAuditDTO.getAuditResult(), complaintDelayAuditDTO.getRejectReason()); |
| | | //审核通过后,设置诉求延期 |
| | | if (complaintAuditRecord.getAuditType().equals(1) && complaintAuditRecord.getAuditStatus().equals(1)){ |
| | | Complaint complaint = getById(complaintAuditRecord.getComplaintId()); |
| | | complaint.setStatus(1); |
| | | updateById(complaint); |
| | | } |
| | | } |
| | | |
| | | @Override |