| | |
| | | throw new CoolException("单据编号已作业完成"); |
| | | } |
| | | |
| | | List<WaitPakin> waitPakinList = waitPakinService.selectList(new EntityWrapper<WaitPakin>() |
| | | .eq("matnr", elem.getMatnr()) |
| | | .eq("batch", elem.getBatch()) |
| | | .eq("order_no", elem.getOrderNo()) |
| | | .eq("anfme", elem.getAnfme()) |
| | | .eq("standby1", elem.getStandby1()) |
| | | ); |
| | | if (!waitPakinList.isEmpty()) { |
| | | throw new CoolException("该订单物料已经组托!"); |
| | | } |
| | | |
| | | // 订单明细数量校验 |
| | | OrderDetl orderDetl = OrderInAndOutUtil.selectItem(Boolean.TRUE, order.getId(), elem.getMatnr(), elem.getBatch(), elem.getBrand(), elem.getStandby1(), elem.getStandby2(), elem.getStandby3(), |
| | | elem.getBoxType1(), elem.getBoxType2(), elem.getBoxType3()); |
| | |
| | | |
| | | @Override |
| | | public void toAllOut(PalletToAllOutParam param, Long userId) { |
| | | String barcodeSize = param.getBarcode().substring(0, 2); |
| | | String newBarcodeSize = param.getNewBarcode().substring(0, 2); |
| | | if (!barcodeSize.equals(newBarcodeSize)) { |
| | | throw new CoolException("托盘尺寸不一致"); |
| | | } |
| | | |
| | | WrkMast wrkMast = wrkMastService.selectByBarcode(param.getBarcode()); |
| | | if (wrkMast == null) { |
| | | throw new CoolException("工作档不存在"); |