| | |
| | | |
| | | |
| | | import com.mes.utils.Result; |
| | | import com.mes.workstation.entity.GlassInfo; |
| | | import com.mes.workstation.entity.UpWorkSequence; |
| | | import com.mes.workstation.entity.UpWorkstation; |
| | | import com.mes.workstation.service.UpWorkstationService; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | private UpWorkstationService upWorkstationService; |
| | | @ApiOperation("显示工位上的玻璃信息") |
| | | @GetMapping("/list") //查询现在上片机的玻璃信息 |
| | | @ResponseBody |
| | | public Result<List<UpWorkstation>> list() { |
| | | List<UpWorkstation> glass = upWorkstationService.list(); |
| | | log.info("显示工位上的玻璃信息:{}", glass); |
| | |
| | | return Result.build(200, "", upwork); |
| | | } |
| | | |
| | | @ApiOperation("开始上片任务") |
| | | @PostMapping("/selectPriority") //调用上片任务 |
| | | @ResponseBody |
| | | public void selectPriority() { |
| | | UpWorkSequence work=upWorkstationService.selectPriority(); |
| | | log.info("显示可上的玻璃信息:{}", work); |
| | | // @ApiOperation("开始上片任务") |
| | | // @PostMapping("/selectPriority") //调用上片任务 |
| | | // @ResponseBody |
| | | // public void selectPriority() { |
| | | // UpWorkSequence work=upWorkstationService.selectPriority(); |
| | | // log.info("显示可上的玻璃信息:{}", work); |
| | | // |
| | | // } |
| | | |
| | | |
| | | @ApiOperation("修改上片mes联动请求字") |
| | | @PostMapping("/updateMesInkageLoad") |
| | | @ResponseBody |
| | | public Result<String> updateMesInkageLoad(@RequestBody short inKageWord) { |
| | | String result = upWorkstationService.updateMesInkageLoad(inKageWord); |
| | | return Result.success(result); |
| | | } |
| | | |
| | | } |