| | |
| | | package com.mes.temperingglass.controller; |
| | | |
| | | import com.mes.damage.entity.Damage; |
| | | import com.mes.damage.service.DamageService; |
| | | import com.mes.glassinfo.entity.GlassInfo; |
| | | import com.mes.glassinfo.entity.LoadGlassInfo; |
| | | import com.mes.temperingglass.eneity.request.DamageRequest; |
| | | import com.mes.temperingglass.entity.TemperingGlassInfo; |
| | | import com.mes.temperingglass.service.TemperingGlassInfoService; |
| | | import com.mes.utils.Result; |
| | |
| | | |
| | | @ApiOperation("//钢化破损拿走放回") |
| | | @PostMapping("/updateTemperingState") //钢化后显示出炉的版图信息 |
| | | public Result <Integer> updateTemperingState(@RequestBody Damage damage) { |
| | | public Result<List<LoadGlassInfo>> updateTemperingState(@RequestBody DamageRequest damage) { |
| | | TemperingGlassInfo temperingGlassInfo=new TemperingGlassInfo(); |
| | | temperingGlassInfo.setState(damage.getStatus()); |
| | | temperingGlassInfo.setState(damage.getState()); |
| | | temperingGlassInfo.setGlassId(damage.getGlassId()); |
| | | int result=temperingGlassInfoService.updateTemperingState(temperingGlassInfo); |
| | | if (damage.getStatus() > 5) { |
| | | if (damage.getState() > 5) { |
| | | damageService.autoSubmitReport(damage.getGlassId(), damage.getLine() |
| | | , damage.getWorkingProcedure(), "钢化炉", damage.getStatus()); |
| | | , damage.getWorkingProcedure(), "钢化炉", damage.getState()); |
| | | } |
| | | return Result.build(200, "破损成功", result); |
| | | GlassInfo glassInfo = new GlassInfo(); |
| | | glassInfo.setEngineerId(damage.getEngineerId()); |
| | | glassInfo.setTemperingLayoutId(damage.getTemperingLayoutId()); |
| | | List<LoadGlassInfo> glass = temperingGlassInfoService.selectTemperingGlass(glassInfo); |
| | | return Result.build(200, "破损成功", glass); |
| | | } |
| | | |
| | | @ApiOperation("//查询当前工程号所有的炉号") |