| | |
| | | @Autowired |
| | | private YwElectricalChargeService ywElectricalChargeService; |
| | | |
| | | @Autowired |
| | | private com.doumee.service.business.YwElectricalBizService ywElectricalBizService; |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("新建") |
| | | @PostMapping("/create") |
| | |
| | | public ApiResponse findById(@PathVariable Integer id, @RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | return ApiResponse.success(ywElectricalChargeService.findById(id)); |
| | | } |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("手动同步充值状态") |
| | | @GetMapping("/syncStatus/{id}") |
| | | @CloudRequiredPermission("business:ywelectricalcharge:syncStatus") |
| | | public ApiResponse<String> syncStatus(@PathVariable Integer id, @RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | return ApiResponse.success(ywElectricalBizService.syncChargeStatusById(id)); |
| | | } |
| | | } |