| | |
| | | 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); |
| | | } |
| | | } |