| | |
| | | |
| | | @Autowired |
| | | private YwWorkorderServiceImpl ywWorkorderService; |
| | | |
| | | @LoginNoRequired |
| | | @PreventRepeat |
| | | @ApiOperation("问题提报") |
| | |
| | | |
| | | |
| | | |
| | | @ApiOperation("根据ID修改") |
| | | @ApiOperation("转工单") |
| | | @PostMapping("/editProblem") |
| | | @CloudRequiredPermission("business:ywproblem:update") |
| | | public ApiResponse editProblem(@RequestBody YwProblem ywProblem,@RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | |
| | | @GetMapping("/{id}") |
| | | @CloudRequiredPermission("business:ywproblem:query") |
| | | public ApiResponse findById(@PathVariable Integer id,@RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | return ApiResponse.success(ywProblemService.getDetail(id)); |
| | | return ApiResponse.success(ywProblemService.getDetail(id,null)); |
| | | } |
| | | |
| | | |
| | | |
| | | @ApiOperation("根据工单查询") |
| | | @GetMapping("/getByWorkorderId") |
| | | @CloudRequiredPermission("business:ywproblem:query") |
| | | public ApiResponse getByWorkorderId(@RequestParam Integer workorderId,@RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | return ApiResponse.success(ywProblemService.getDetail(null,workorderId)); |
| | | } |
| | | |
| | | } |