| | |
| | | @Resource |
| | | private EdgStorageDeviceTaskService edgStorageDeviceTaskService; |
| | | |
| | | @ApiOperation(value = "重置任务:按照设备id重置任务") |
| | | @ApiOperation(value = "重置任务/任务失败处理:按照设备id重置任务") |
| | | @PostMapping("/resetTask") |
| | | public Result<Boolean> resetTask(Integer deviceId) { |
| | | Boolean flag = edgStorageDeviceTaskService.resetTask(deviceId); |
| | |
| | | return Result.build(200, "无任务,无需重置", flag); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation("任务成功处理") |
| | | @PostMapping("/taskSuccess") |
| | | public Result<Boolean> taskSuccess(Integer deviceId) { |
| | | return Result.build(200, "处理成功", edgStorageDeviceTaskService.taskSuccess(deviceId)); |
| | | } |
| | | } |