| | |
| | | return map; |
| | | } |
| | | int workNoType = WorkNoType.PAKOUT.type; |
| | | // 出库到2,3号堆垛机,需要通过任务号区分大小托盘,任务号3001-6000为小托盘,即8~12列 |
| | | if (param.getIoType() == 2 && (locMast.getCrnNo() == 3 || locMast.getCrnNo() == 2) && locMast.getBay1() > 7){ |
| | | // 2,3号堆垛机出库,需要通过条码区分大小托盘,16开头小托盘,18开头大托盘,任务号3001-6000为小托盘 |
| | | if (param.getIoType() == 2 && (locMast.getCrnNo() == 3 || locMast.getCrnNo() == 2) && locMast.getBarcode().startsWith("16")){ |
| | | workNoType = WorkNoType.PICK.type; |
| | | } |
| | | int workNo1 = commonService.getWorkNo(workNoType);//获取入库工作号 |
| | |
| | | } else { |
| | | staProtocol = staProtocol.clone(); |
| | | } |
| | | staProtocol.setWorkNo((short) commonService.getWorkNo(WorkNoType.PICK.type)); |
| | | staProtocol.setWorkNo((short) commonService.getWorkNo(param.getFlag())); |
| | | staProtocol.setStaNo(param.getTargetSite().shortValue()); |
| | | basDevpService.updateById(basDevp); |
| | | boolean result = MessageQueue.offer(SlaveType.Devp, 2, new Task(2, staProtocol)); |