| | |
| | | i++; |
| | | //配盘出库单使用,下发需要出的空板任务 |
| | | if (orderPakout.getDocType() == 11) { |
| | | if (size<5&&i==size){ |
| | | if (i==size){ |
| | | for (;j<=orderPakout.getPayType();j++){ |
| | | String bar=""; |
| | | if(!Cools.isEmpty(orderPakout.getShipCode())&&orderPakout.getShipCode().equals("A01")){ |
| | | bar = "A01"; |
| | | } |
| | | //具体待定 |
| | | // if(!Cools.isEmpty(orderPakout.getShipCode())&&orderPakout.getShipCode().equals("A01")){ |
| | | // bar = "A01"; |
| | | // } |
| | | LocMast locMast = new LocMast(); |
| | | if(Cools.isEmpty(bar)){ |
| | | locMast=locMastService.selectOne(new EntityWrapper<LocMast>() |
| | |
| | | EmptyPlateOutParam emptyPlateOutParam = new EmptyPlateOutParam(); |
| | | emptyPlateOutParam.setOutSite(303); |
| | | emptyPlateOutParam.setLocNos(new ArrayList<String>(){{add(locNo);}}); |
| | | WrkMast wrkMast = workService.emptyPlateOut(emptyPlateOutParam,ioPri); |
| | | String agvSta = ""; |
| | | if(locMast.getLocType3()==2){ |
| | | |
| | | }else { |
| | | agvSta = orderPakout.getCstmrName();//agv目标站点位置 |
| | | } |
| | | WrkMast wrkMast = workService.emptyPlateOut(emptyPlateOutParam,ioPri,agvSta); |
| | | ioPri--; |
| | | |
| | | } |
| | | }else if(i == 5){ |
| | | }else if(i == 4){ |
| | | String bar=""; |
| | | if(!Cools.isEmpty(orderPakout.getShipCode())&&orderPakout.getShipCode().equals("A01")){ |
| | | bar = "A01"; |
| | |
| | | EmptyPlateOutParam emptyPlateOutParam = new EmptyPlateOutParam(); |
| | | emptyPlateOutParam.setOutSite(303); |
| | | emptyPlateOutParam.setLocNos(new ArrayList<String>(){{add(locNo);}}); |
| | | WrkMast wrkMast = workService.emptyPlateOut(emptyPlateOutParam,ioPri); |
| | | String agvSta = ""; |
| | | if(locMast.getLocType3()==2){ |
| | | |
| | | }else { |
| | | agvSta = orderPakout.getCstmrName();//agv目标站点位置 |
| | | } |
| | | WrkMast wrkMast = workService.emptyPlateOut(emptyPlateOutParam,ioPri,agvSta); |
| | | ioPri--; |
| | | } |
| | | } |