| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.mes.bigstorage.entity.BigStorageCageDetails; |
| | | import com.mes.bigstorage.service.BigStorageCageDetailsService; |
| | | import com.mes.bigstorage.service.BigStorageCageService; |
| | | import com.mes.common.config.Const; |
| | | import com.mes.common.utils.RedisUtil; |
| | | import com.mes.utils.RedisUtil; |
| | | import com.mes.utils.Result; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | @ApiOperation("指定钢化") |
| | | @PostMapping("/TemperingGlass") |
| | | public Result temperingGlass(@RequestBody BigStorageCageDetails bigStorageCageDetails) { |
| | | boolean result = bigStorageCageDetailsService.temperingGlass(bigStorageCageDetails.getTemperingLayoutId().toString(), bigStorageCageDetails.getEngineerId()); |
| | | boolean result = bigStorageCageDetailsService |
| | | .temperingGlass(bigStorageCageDetails.getTemperingLayoutId().toString(), bigStorageCageDetails.getEngineerId(),bigStorageCageDetails.getTemperingFeedSequence().toString()); |
| | | if (result == true) { |
| | | return Result.build(200, "指定钢化成功", 1); |
| | | } else { |
| | |
| | | return Result.build(200, "查询成功", flowCardIdCount); |
| | | } |
| | | |
| | | @ApiOperation("流程卡个数查询") |
| | | @PostMapping("/selectFlowCardCount") |
| | | public Result selectFlowCardCount() { |
| | | return Result.build(200, "查询成功", bigStorageCageDetailsService.selectFlowCardCount()); |
| | | } |
| | | |
| | | @ApiOperation("指定流程卡") |
| | | @PostMapping("/appointFlowCard") |
| | | public Result appointFlowCard(@RequestBody BigStorageCageDetails bigStorageCageDetails) { |
| | |
| | | }else{ |
| | | return Result.build(200, "指定流程卡成功", 1); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation("指定工程") |
| | | @PostMapping("/appointEngineerId") |
| | | public Result appointEngineerId(@RequestBody BigStorageCageDetails bigStorageCageDetails) { |
| | | bigStorageCageDetailsService.appointEngineerId(bigStorageCageDetails.getEngineerId()); |
| | | return Result.build(200, "修改成功", 1); |
| | | } |
| | | |
| | | @ApiOperation("调度时间查询") |
| | | @PostMapping("/scheduleTime") |
| | | public Result scheduleTime() { |
| | | return Result.build(200, "修改成功", bigStorageCageDetailsService.scheduleTime()); |
| | | } |
| | | |
| | | @ApiOperation("取消出片任务") |
| | | @PostMapping("/cancelOutTask") |
| | | public Result cancelOutTask() { |
| | | bigStorageCageDetailsService.cancelOutTask(); |
| | | return Result.build(200, "取消成功", 1); |
| | | } |
| | | } |
| | | |