| | |
| | | int i=0; |
| | | for (StockOutParam.LocDetl locDetl : locDetls) { |
| | | i++; |
| | | Mat mat = matService.selectByMatnr(locDetl.getMatnr()); |
| | | if (Cools.isEmpty(mat)) { |
| | | throw new CoolException(locDetl.getMatnr() + "物料编码检索失败,请先添加商品"); |
| | | } |
| | | // Mat mat = matService.selectByMatnr(locDetl.getMatnr()); |
| | | // if (Cools.isEmpty(mat)) { |
| | | // throw new CoolException(locDetl.getMatnr() + "物料编码检索失败,请先添加商品"); |
| | | // } |
| | | OrderDetlGift orderDetl = new OrderDetlGift(); |
| | | orderDetl.sync(mat); |
| | | // orderDetl.sync(mat); |
| | | orderDetl.setSuppCode(String.valueOf(i)); // 行号 |
| | | orderDetl.setManu(locDetl.getLocNo()); //库位号 |
| | | orderDetl.setBatch(locDetl.getBatch()); //木箱编码 |