| | |
| | | @ApiOperation(value = "录入诉求") |
| | | @DistributedLock(lockName = "complaint_serial_number_lock") |
| | | public R<?> save(@Valid @RequestBody Complaint complaint) { |
| | | complaintService.saveComplaint(complaint, getUserId()); |
| | | complaintService.saveComplaint(complaint, getLoginUserInfo()); |
| | | return R.ok(); |
| | | } |
| | | |
| | |
| | | @GetMapping("/detail") |
| | | @ApiOperation("工单详情") |
| | | public R<ComplaintVO> detail(@ApiParam(name = "id", value = "工单id", required = true) Long id) { |
| | | return R.ok(complaintService.detail(id)); |
| | | return R.ok(complaintService.detail(id,getLoginUserInfo())); |
| | | } |
| | | |
| | | @GetMapping("/progress/{complaintId}") |