| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |
| | | * 诉求录入并上报 |
| | | */ |
| | | @PostMapping("/saveAndReport") |
| | | @ApiOperation(value = "诉求录入并上报") |
| | | public R<?> saveAndReport(@Valid @RequestBody ComplaintVO complaintVO) { |
| | | complaintService.saveAndReport(complaintVO, getLoginUserInfo()); |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |
| | | * 诉求录入并办结 |
| | | */ |
| | | @PostMapping("/saveAndComplete") |
| | | @ApiOperation(value = "诉求录入并办结") |
| | | public R<?> saveAndComplete(@Valid @RequestBody ComplaintSaveAndCompleteDTO complaintVO) { |
| | | complaintService.saveAndComplete(complaintVO, getLoginUserInfo()); |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 上报撤回 |
| | | */ |
| | | @PostMapping("/revoke") |
| | | @ApiOperation(value = "诉求上报撤回") |
| | | public R<?> reportWithdraw(@RequestBody ComplaintReportWithdrawDTO dto) { |
| | | complaintService.reportWithdraw(dto, getLoginUserInfo()); |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | @PostMapping("/list") |
| | | @ApiOperation("工单列表") |
| | | public R<Page<ComplaintVO>> complaintList(@RequestBody ComplaintQuery query) { |
| | |
| | | complaintComment.setUpdateTime(new Date()); |
| | | complaintComment.setDelFlag(0); |
| | | complaintCommentService.save(complaintComment); |
| | | Complaint complaint = complaintService.getById(complaintComment.getComplaintId()); |
| | | complaint.setStatus(8); |
| | | complaintService.updateById(complaint); |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | @GetMapping("/getComplaintCommentInfo/{id}") |
| | | @ApiOperation(value = "获取诉求评价") |
| | | public R<ComplaintComment> getComplaintCommentInfo(@PathVariable("id") Long id){ |
| | | ComplaintComment one = complaintCommentService.getOne(new LambdaQueryWrapper<ComplaintComment>().eq(ComplaintComment::getComplaintId, id).eq(ComplaintComment::getDelFlag, 0)); |
| | | return R.ok(one); |
| | | } |
| | | } |