| | |
| | | log.info("等待中的玻璃信息{}",glass); |
| | | return Result.build(200, "", glass); |
| | | } |
| | | // @ApiOperation("查询进炉中的钢化等片中的版图信息,状态全为1的为已到。") |
| | | // @GetMapping("/selectIntoGlass") // 查询进炉中的钢化等片中的版图信息,状态全为1的为已到。 |
| | | // public Result <List<TemperingGlassInfo>> selectIntoGlass() { |
| | | // List<TemperingGlassInfo> glass = temperingAgoService.selectIntoGlass(); |
| | | // log.info("进炉中的玻璃版图信息{}",glass); |
| | | // return Result.build(200, "", glass); |
| | | // } |
| | | |
| | | @ApiOperation("//钢化后显示出炉的版图信息。") |
| | | @GetMapping("/selectOutGlass") //钢化后显示出炉的版图信息 |
| | | public Result <List<TemperingGlassInfo>> selectOutGlass() { |
| | |
| | | @ApiOperation("//钢化破损拿走放回") |
| | | @PostMapping("/updateTemperingState") //钢化后显示出炉的版图信息 |
| | | public Result <Integer> updateTemperingState(@RequestBody Damage damage) { |
| | | if(damage.getStatus()>5) { |
| | | damageService.insertDamage(damage); |
| | | } |
| | | TemperingGlassInfo temperingGlassInfo=new TemperingGlassInfo(); |
| | | temperingGlassInfo.setState(damage.getStatus()); |
| | | temperingGlassInfo.setGlassId(damage.getGlassId()); |
| | | int result=temperingGlassInfoService.updateTemperingState(temperingGlassInfo); |
| | | // if(damage.getStatus()>5) { |
| | | // damage.setType(damage.getStatus()); |
| | | // damage.setStatus(1); |
| | | // damageService.insertDamage(damage); |
| | | // } |
| | | return Result.build(200, "破损成功", result); |
| | | } |
| | | @ApiOperation("//整版拿走") |
| | | @PostMapping("/updateTemperingStateAll") //钢化后显示出炉的版图信息 |
| | | public Result <Boolean> updateTemperingStateAll(@RequestBody TemperingGlassInfo glassinfo) { |
| | | |
| | | boolean result=temperingGlassInfoService.updateTemperingStateAll(glassinfo); |
| | | return Result.build(200, "破损成功", result); |
| | | } |
| | | |
| | | } |