| | |
| | | |
| | | @RequestMapping("/open/toOutSta") |
| | | public R toOutSta(@RequestBody ToOutStaParam param) { |
| | | log.info("toOutSta:{}",param); |
| | | Integer sourceStaNo = param.getSourceStaNo(); |
| | | SiemensDevpThread siemensDevpThread = (SiemensDevpThread) SlaveConnection.get(SlaveType.Devp, 1); |
| | | if(siemensDevpThread == null) { |
| | |
| | | |
| | | staProtocol.setWorkNo(param.getWrkNo().shortValue()); |
| | | staProtocol.setStaNo(param.getStaNo().shortValue()); |
| | | staProtocol.setPalletSize((short) 1); |
| | | boolean result = MessageQueue.offer(SlaveType.Devp, 1, new Task(2, staProtocol)); |
| | | log.info("发生成功:{}",result); |
| | | return R.ok().add(result); |
| | | } |
| | | |