| | |
| | | package com.mes.rawglasstask.controller; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.mes.rawglasstask.entity.RawGlassStorageTask; |
| | | import com.mes.rawglasstask.entity.request.RawGlassTaskRequest; |
| | | import com.mes.rawglasstask.service.RawGlassStorageTaskService; |
| | | import com.mes.utils.Result; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @ApiOperation("按照条件查看仓储历史任务") |
| | | @PostMapping("/queryRawGlassHistoryTask") |
| | | public Result<List<RawGlassStorageTask>> queryRawGlassHistoryTask(@RequestBody RawGlassTaskRequest request) { |
| | | public Result<Page<RawGlassStorageTask>> queryRawGlassHistoryTask(@RequestBody @Validated RawGlassTaskRequest request) { |
| | | return Result.build(200, "查询成功", rawGlassStorageTaskService.queryRawGlassHistoryTask(request)); |
| | | } |
| | | |
| | | @ApiOperation("任务成功处理") |
| | | @PostMapping("/taskSuccess") |
| | | public Result<Boolean> taskSuccess(@RequestBody Long taskId) { |
| | | public Result<Boolean> taskSuccess(Long taskId) { |
| | | return Result.build(200, "查询成功", rawGlassStorageTaskService.taskSuccess(taskId)); |
| | | } |
| | | |
| | | @ApiOperation("任务失败处理") |
| | | @PostMapping("/taskError") |
| | | public Result<Boolean> taskError(@RequestBody Long taskId) { |
| | | public Result<Boolean> taskError(Long taskId) { |
| | | return Result.build(200, "查询成功", rawGlassStorageTaskService.taskError(taskId)); |
| | | } |
| | | |