| | |
| | | private MatnrMapper matnrMapper; |
| | | @Autowired |
| | | private ConfigService configService; |
| | | @Autowired |
| | | private CusBarcodeSyncMatnrService cusBarcodeSyncMatnrService; |
| | | |
| | | |
| | | /** |
| | |
| | | if (matnr == null) { |
| | | throw new CoolException("物料信息不存在,物料ID:" + pakinItem1.getMatnrId()); |
| | | } |
| | | cusBarcodeSyncMatnrService.syncFromMatnrCodes(Collections.singletonList(matnr.getCode()), userId); |
| | | matnr = matnrMapper.selectById(pakinItem1.getMatnrId()); |
| | | if (matnr == null) { |
| | | throw new CoolException("物料信息不存在,物料ID:" + pakinItem1.getMatnrId()); |
| | | } |
| | | if (pakinItem1.getReceiptQty() == null || pakinItem1.getReceiptQty().compareTo(0.0) <= 0) { |
| | | throw new CoolException("组托数量不能小于等于零!!"); |
| | | } |