| | |
| | | import javax.annotation.Resource; |
| | | import java.io.IOException; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * (HollowGlassOutRelationInfo)表控制层 |
| | |
| | | |
| | | @Resource |
| | | HollowGlassOutRelationInfoService hollowGlassOutRelationInfoService; |
| | | |
| | | @ApiOperation("领取任务") |
| | | @PostMapping("/receiveTask") |
| | | public Result<HollowGlassOutRelationInfo> receiveTask(HollowTaskRequest request) { |
| | |
| | | |
| | | @ApiOperation("预览指定任务信息") |
| | | @PostMapping("/appointHollowTaskDetails") |
| | | public Result<List<HollowGlassQueueInfo>> appointHollowTaskDetails(String flowCardId, int cell) { |
| | | return Result.build(200, "预览指定任务信息成功", hollowGlassOutRelationInfoService.appointHollowTaskDetails(flowCardId, cell)); |
| | | public Result<Map<String, List<HollowGlassQueueInfo>>> appointHollowTaskDetails(int cell) { |
| | | return Result.build(200, "预览指定任务信息成功", hollowGlassOutRelationInfoService.appointHollowTaskDetails(cell)); |
| | | } |
| | | |
| | | @ApiOperation("删除指定任务信息") |
| | | @PostMapping("/deleteHollowTaskDetails") |
| | | public Result<Boolean> deleteHollowTaskDetails(String flowCardId, int cell) { |
| | | return Result.build(200, "预览指定任务信息成功", hollowGlassOutRelationInfoService.deleteHollowTaskDetails(flowCardId, cell)); |
| | | return Result.build(200, "删除指定任务信息成功", hollowGlassOutRelationInfoService.deleteHollowTaskDetails(flowCardId, cell)); |
| | | } |
| | | |
| | | @ApiOperation("开始任务") |
| | | @PostMapping("/startTask") |
| | | public Result<Boolean> startTask(String flowCardId, int cell) { |
| | | return Result.build(200, "开始任务成功", hollowGlassOutRelationInfoService.startTask(flowCardId, cell)); |
| | | public Result<Boolean> startTask(int cell) { |
| | | return Result.build(200, "开始任务成功", hollowGlassOutRelationInfoService.startTask(cell)); |
| | | } |
| | | |
| | | @ApiOperation("暂停任务") |
| | | @PostMapping("/pauseTask") |
| | | public Result<Boolean> pauseTask(String flowCardId, int cell) { |
| | | return Result.build(200, "暂停任务成功", hollowGlassOutRelationInfoService.pauseTask(flowCardId, cell)); |
| | | public Result<Boolean> pauseTask(int cell) { |
| | | return Result.build(200, "暂停任务成功", hollowGlassOutRelationInfoService.pauseTask(cell)); |
| | | } |
| | | |
| | | @ApiOperation("结束任务") |