| | |
| | | import com.panzhihua.sangeshenbian.annotation.DistributedLock; |
| | | import com.panzhihua.sangeshenbian.model.dto.*; |
| | | import com.panzhihua.sangeshenbian.model.entity.Complaint; |
| | | import com.panzhihua.sangeshenbian.model.entity.ComplaintProgress; |
| | | import com.panzhihua.sangeshenbian.model.query.ComplaintQuery; |
| | | import com.panzhihua.sangeshenbian.model.vo.ComplaintVO; |
| | | import com.panzhihua.sangeshenbian.service.IComplaintService; |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | public R<ComplaintVO> detail(@ApiParam(name = "id", value = "工单id", required = true) Long id) { |
| | | return R.ok(complaintService.detail(id)); |
| | | } |
| | | @GetMapping("/progress/{complaintId}") |
| | | public R<List<ComplaintProgress>> progress(@ApiParam(name = "complaintId", value = "诉求id", required = true) @PathVariable("complaintId") Long complaintId) { |
| | | return R.ok(complaintService.progress(complaintId)); |
| | | } |
| | | @PostMapping("/saveProcess") |
| | | @ApiOperation("办理进度录入") |
| | | public R<?> saveProcess(@Valid @RequestBody ComplaintProcessDTO dto){ |
| | | complaintService.saveProcess(dto,getUserId()); |
| | | complaintService.saveProcess(dto,getLoginUserInfo()); |
| | | return R.ok(); |
| | | } |
| | | @PostMapping("/saveResult") |
| | |
| | | * 诉求下派 |
| | | */ |
| | | @PostMapping("/saveDispatch") |
| | | @ApiOperation("诉求下派") |
| | | public R<?> saveDispatch(@RequestBody ComplaintDispatch dto){ |
| | | complaintService.saveDispatch(dto, getLoginUserInfo()); |
| | | return R.ok(); |
| | |
| | | * 延期申请 |
| | | */ |
| | | @PostMapping("/saveDelay") |
| | | @ApiOperation(value = "延期申请") |
| | | public R<?> saveDelay(@RequestBody ComplaintDelayDTO dto){ |
| | | complaintService.saveDelay(dto, getLoginUserInfo()); |
| | | return R.ok(); |