| | |
| | | if(combMat.getSupplier().equals("1")){ |
| | | List<OrderDetlPakin> orderDetlPakins2 = orderDetlPakinService.selectList(new EntityWrapper<OrderDetlPakin>() |
| | | .eq("matnr", combMat.getMatnr()).eq("box_type3", combMat.getOrderNo()) |
| | | .eq("box_type2","BU-00001")); |
| | | .in("box_type2", "BU-00001", "BU-00002")); |
| | | if (orderDetlPakins2.size() > 0) { |
| | | orderNo1 = orderDetlPakins2.get(0).getOrderNo(); |
| | | } else { |
| | |
| | | List<OrderDetlPakin> orderDetlPakins = orderDetlPakinService.selectList(new EntityWrapper<OrderDetlPakin>() |
| | | .eq("matnr", combMat.getMatnr()).eq("box_type3", combMat.getOrderNo()) |
| | | .eq("standby1", combMat.getStandby1()).eq("standby2", combMat.getStandby2()) |
| | | .eq("standby3", combMat.getStandby3()).eq("box_type2","shyucheng.test")); |
| | | .eq("standby3", combMat.getStandby3())); |
| | | if (orderDetlPakins.size() > 0) { |
| | | orderNo = orderDetlPakins.get(0).getOrderNo(); |
| | | combMat.setBoxType1(orderDetlPakins.get(0).getBoxType1()); |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public void agvLocBarcode(AgvUnlockLoc agvUnlockLoc){ |
| | | LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_no",agvUnlockLoc.getPositionCode())); |
| | | locMast.setBarcode(agvUnlockLoc.getPodcode()); |
| | | if(!locMastService.updateById(locMast)){ |
| | | throw new CoolException(agvUnlockLoc.getPositionCode() + "库位条码添加失败"); |
| | | } |
| | | } |
| | | } |