| | |
| | | return false;//出库站点不可出 |
| | | } |
| | | |
| | | Integer liftNo = basDevp.getLiftNo();//搜索出库提升机是否存在入库任务,如存在禁止出库 |
| | | List<WrkMast> liftWrkMasts = wrkMastMapper.selectInWrkMastByLiftNo(liftNo); |
| | | if (!liftWrkMasts.isEmpty()) { |
| | | return false;//存在入库任务,禁止出库 |
| | | } |
| | | |
| | | //获取源站 |
| | | LiftStaProtocol liftStaProtocol = NyLiftUtils.getLiftStaByLev(basDevp.getLiftNo(), Utils.getLev(wrkMast.getSourceLocNo())); |
| | | if (liftStaProtocol == null) { |
| | |
| | | |
| | | if (!sourceBasDevp.getInEnable().equals("Y")) { |
| | | return false;//站点不可入 |
| | | } |
| | | |
| | | //判断提升机整个三楼是否都处于入库模式 |
| | | Integer outInModel1 = Utils.getOutInModelByLift(sourceBasDevp.getLiftNo(), 1); |
| | | Integer outInModel2 = Utils.getOutInModelByLift(sourceBasDevp.getLiftNo(), 5); |
| | | Integer outInModel3 = Utils.getOutInModelByLift(sourceBasDevp.getLiftNo(), 8); |
| | | if (outInModel1 == null || outInModel2 == null || outInModel3 == null) { |
| | | return false;//不存在出入库模式 |
| | | } |
| | | |
| | | if (outInModel1 == 2 || outInModel2 == 2 && outInModel3 == 2) { |
| | | return false;//只要有一个处于出库模式,禁止入库 |
| | | } |
| | | |
| | | LiftThread liftThread = (LiftThread) SlaveConnection.get(SlaveType.Lift, sourceBasDevp.getLiftNo()); |
| | |
| | | String barcode = barcodeThread.getBarcode(); |
| | | if(!Cools.isEmpty(barcode)) { |
| | | //通知AGV取货 |
| | | agvRestockCall("CS-301-001-01@3", barcode); |
| | | agvRestockCall("301-1", barcode); |
| | | log.info("通知AGV取货,条码号:" + barcode); |
| | | } |
| | | } |
| | |
| | | String barcode = barcodeThread.getBarcode(); |
| | | if(!Cools.isEmpty(barcode)) { |
| | | //通知AGV取货 |
| | | agvRestockCall("CS-302-001-01@3", barcode); |
| | | agvRestockCall("302-1", barcode); |
| | | log.info("通知AGV取货,条码号:" + barcode); |
| | | } |
| | | } |