| | |
| | | import com.mes.bigstorage.service.BigStorageCageDetailsService; |
| | | import com.mes.bigstorage.service.BigStorageCageService; |
| | | import com.mes.common.config.Const; |
| | | import com.mes.glassinfo.entity.GlassInfo; |
| | | import com.mes.utils.RedisUtil; |
| | | import com.mes.utils.Result; |
| | | import io.swagger.annotations.Api; |
| | |
| | | |
| | | @ApiOperation("指定钢化工程") |
| | | @PostMapping("/appointTemperingEngineerId") |
| | | public Result appointTemperingEngineerId(@RequestBody BigStorageCageDetails bigStorageCageDetails) { |
| | | boolean result = bigStorageCageDetailsService.appointTemperingEngineerId(bigStorageCageDetails.getEngineerId()); |
| | | public Result appointTemperingEngineerId(String engineerId) { |
| | | boolean result = bigStorageCageDetailsService.appointTemperingEngineerId(engineerId); |
| | | if (result == true) { |
| | | return Result.build(200, "指定钢化成功", 1); |
| | | } else { |
| | | return Result.build(200, "已存在钢化任务,请等待钢化完成再指定钢化", 1); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation("取消当前钢化") |
| | | @PostMapping("/cancelTemperingTask") |
| | | public Result<Boolean> cancelTemperingTask() { |
| | | boolean result = bigStorageCageDetailsService.cancelTemperingTask(); |
| | | if (result == true) { |
| | | return Result.build(200, "指定钢化成功", result); |
| | | } else { |
| | | return Result.build(200, "已存在钢化任务,请等待钢化完成再指定钢化", result); |
| | | } |
| | | } |
| | | |
| | |
| | | public Result<List<BigStorageCageDetails>> queryRealGlassInfo(@RequestBody BigStorageQueryVO bigStorageQueryVO) { |
| | | return Result.build(200, "查询成功", bigStorageCageDetailsService.queryRealGlassInfo(bigStorageQueryVO)); |
| | | } |
| | | |
| | | @ApiOperation("缺片数量查询") |
| | | @PostMapping("/queryLackGlassInfo") |
| | | public Result<List<GlassInfoLackDTO>> queryLackGlassInfo(@RequestBody BigStorageQueryVO bigStorageQueryVO) { |
| | |
| | | return Result.build(200, "指定流程卡成功", 1); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation("大理片笼报破损") |
| | | @PostMapping("/bigStorageGlassDamageByGlassId") |
| | | public Result<String> bigStorageGlassDamageByGlassId(@RequestBody Map<String, String> map) { |
| | | String glassId=map.get("glassId"); |
| | | String glassId = map.get("glassId"); |
| | | return Result.build(200, "报破损成功", bigStorageCageDetailsService.bigStorageGlassDamageByGlassId(glassId)); |
| | | } |
| | | } |