| | |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("更新状态") |
| | | @PostMapping("/updateStatusById") |
| | | @CloudRequiredPermission("business:ywpatrolline:update") |
| | | public ApiResponse updateStatusById(@RequestBody YwPatrolLine ywPatrolLine,@RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | ywPatrolLine.setLoginUserInfo(this.getLoginUser(token)); |
| | | ywPatrolLineService.updateStatusById(ywPatrolLine); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("分页查询") |
| | | @PostMapping("/page") |
| | | @CloudRequiredPermission("business:ywpatrolline:query") |
| | |
| | | @GetMapping("/{id}") |
| | | @CloudRequiredPermission("business:ywpatrolline:query") |
| | | public ApiResponse findById(@PathVariable Integer id,@RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | return ApiResponse.success(ywPatrolLineService.findById(id)); |
| | | return ApiResponse.success(ywPatrolLineService.getDetail(id)); |
| | | } |
| | | } |