| | |
| | | @PostMapping("/save-process") |
| | | @ApiOperation("办理进度录入") |
| | | public R<?> saveProcess(@Valid @RequestBody ComplaintProcessDTO dto){ |
| | | Complaint byId = complaintService.getById(dto.getComplaintId()); |
| | | if(byId.getAssignStatus()==0){ |
| | | return R.fail("该诉求未分配"); |
| | | } |
| | | complaintService.saveProcess(dto,getLoginUserInfo()); |
| | | return R.ok(); |
| | | } |
| | |
| | | @PostMapping("/report") |
| | | @ApiOperation(value = "问题上报") |
| | | public R<?> report(@RequestBody ComplaintReportDTO complaintReportDTO) { |
| | | Complaint byId = complaintService.getById(complaintReportDTO.getComplaintId()); |
| | | if(byId.getAssignStatus()==0){ |
| | | return R.fail("该诉求未分配"); |
| | | } |
| | | |
| | | |
| | | complaintService.saveReport(complaintReportDTO, getLoginUserInfo()); |
| | | return R.ok(); |
| | | } |
| | |
| | | @PostMapping("/saveDelay") |
| | | @ApiOperation(value = "延期申请") |
| | | public R<?> saveDelay(@Valid @RequestBody ComplaintDelayDTO dto){ |
| | | Complaint byId = complaintService.getById(dto.getComplaintId()); |
| | | if(byId.getAssignStatus()==0){ |
| | | return R.fail("该诉求未分配"); |
| | | } |
| | | complaintService.saveDelay(dto, getLoginUserInfo()); |
| | | return R.ok(); |
| | | } |
| | |
| | | @PostMapping("/assignComplain") |
| | | @ApiOperation(value = "分配诉求") |
| | | public R<?> assignComplain(@Valid@RequestBody AssignComplainDto dto) { |
| | | |
| | | complaintService.assignComplain(getLoginUserInfo(),dto.getComplainId(),dto.getDeptId(),dto.getRemark()); |
| | | |
| | | return R.ok(); |
| | | } |
| | | |
| | |
| | | complaint1.setCompletionOtherDescription(null); |
| | | complaint1.setRemark(null); |
| | | complaint1.setNowLevelTime(new Date()); |
| | | complaint1.setNowLevelSms(0); |
| | | complaint1.setRedispatch(1); |
| | | complaintService.save(complaint1); |
| | | } |