| | |
| | | LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>() |
| | | .eq("loc_no", wrkMast.getSourceLocNo())); |
| | | |
| | | short staNo = wrkMast.getStaNo().shortValue(); |
| | | if (wrkMast.getStaNo() == 1004) { |
| | | staNo = 2003; |
| | | } |
| | | |
| | | // 下发站点信息 |
| | | staProtocol.setWorkNo(wrkMast.getWrkNo().shortValue()); |
| | | staProtocol.setStaNo(wrkMast.getStaNo().shortValue()); |
| | | staProtocol.setStaNo(staNo); |
| | | staProtocol.setPalletSize(locMast.getLocType2()); |
| | | if (!MessageQueue.offer(SlaveType.Devp, devpId, new Task(2, staProtocol))) { |
| | | continue; |
| | |
| | | |
| | | int outNumber = 13; |
| | | Config config3 = configService.selectOne(new EntityWrapper<Config>() |
| | | .eq("code", "FullboardOutbound")); |
| | | .eq("code", "fullBoardOutboundNumber")); |
| | | if (config3 != null) { |
| | | outNumber = Integer.parseInt(config3.getValue()); |
| | | } |
| | |
| | | continue; |
| | | } |
| | | } |
| | | }else if (wrkMast.getIoType() == 101) { |
| | | List<WrkMast> inWrkMasts = wrkMastService.selectList(new EntityWrapper<WrkMast>() |
| | | .in("wrk_sts", 12, 14) |
| | | ); |
| | | if (!Cools.isEmpty(inWrkMasts) && inWrkMasts.size() >= outNumber) { |
| | | News.error("" + mark + " - 4" + " - 检测到全板出库的任务已经到达上线,工作号={}" + wrkMast.getWrkNo()); |
| | | continue; |
| | | } |
| | | } |
| | | |
| | | // // 入出库模式判断 |