| | |
| | | |
| | | @Override |
| | | @Transactional |
| | | public void adjustNew(MobileAdjustParam param, Boolean re, Long userId) { |
| | | public void adjustNew(MobileAdjustParam param, Boolean re, Long userId,MatBarcode matBarcode) { |
| | | WrkMast wrkMast = wrkMastService.selectOne(new EntityWrapper<WrkMast>().eq("barcode", param.getBarcode())); |
| | | if (Cools.isEmpty(wrkMast)) { |
| | | throw new CoolException("托盘码:" + param.getBarcode() + " 无有效工作档"); |
| | |
| | | detl.sync(wrkDetl); |
| | | detl.setWrkNo(wrkMast.getWrkNo()); |
| | | detl.setZpallet(wrkMast.getBarcode()); |
| | | detl.setModel(matBarcode.getModel() == null?"":matBarcode.getModel()); |
| | | detl.setSpecs(matBarcode.getSpecs() == null?"":matBarcode.getSpecs()); |
| | | wrkDetlService.insert(detl); |
| | | recordRecordLog = recordRecordLog + "\n" + "新增一条明细:" + "\t商品编号:" + wrkDetl.getMatnr() + "\t批号:" + wrkDetl.getBatch() + "\t数量:" + wrkDetl.getAnfme(); |
| | | adjDetl.setOriQty(0.0); |