| | |
| | | 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; |
| | |
| | | return Result.build(200, "删除成功", bigStorageCageService.querybigStorageCageDetail()); |
| | | } |
| | | |
| | | @ApiOperation("理片笼任务破损0/拿走1") |
| | | @ApiOperation("理片笼笼内玻璃破损0/拿走1") |
| | | @PostMapping("/damageBigStorageCageDetails") |
| | | public Result damageBigStorageCageDetails(@RequestBody BigStorageCageDetails bigStorageCageDetails, int status) { |
| | | bigStorageCageDetailsService.damageBigStorageCageDetails(bigStorageCageDetails.getGlassId(), status); |
| | |
| | | |
| | | @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 { |
| | |
| | | } |
| | | } |
| | | |
| | | @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); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation("钢化/非钢化查询:0 非钢化 1:钢化") |
| | | @PostMapping("/selectTemperingGlass") |
| | | public Result<List<TemperingGlassCountDTO>> selectTemperingGlass(int isTempering) { |
| | | return Result.build(200, "查询成功", bigStorageCageDetailsService.selectTemperingGlass(isTempering)); |
| | | } |
| | | |
| | | @ApiOperation("笼内实际数量查询") |
| | | @PostMapping("/queryRealGlassInfo") |
| | | public Result<List<BigStorageCageDetails>> queryRealGlassInfo(@RequestBody BigStorageQueryVO bigStorageQueryVO) { |
| | | return Result.build(200, "查询成功", bigStorageCageDetailsService.queryRealGlassInfo(bigStorageQueryVO)); |
| | | } |
| | | |
| | | @ApiOperation("缺片数量查询") |
| | |
| | | return Result.build(200, "指定流程卡成功", 1); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation("大理片笼报破损") |
| | | @PostMapping("/bigStorageGlassDamageByGlassId") |
| | | public Result<String> bigStorageGlassDamageByGlassId(String glassId) { |
| | | public Result<String> bigStorageGlassDamageByGlassId(@RequestBody Map<String, String> map) { |
| | | String glassId = map.get("glassId"); |
| | | return Result.build(200, "报破损成功", bigStorageCageDetailsService.bigStorageGlassDamageByGlassId(glassId)); |
| | | } |
| | | } |