| | |
| | | } |
| | | |
| | | //对于已经组托过的 模具+托盘 不允许再次组托 |
| | | Integer waitPakinCount = waitPakinService.selectByBarcodeAndMatnr(matBarcode.getMatnr(), matBarcode.getZpallet()); |
| | | Integer waitPakinCount = waitPakinService.selectByBarcodeAndMatnr(matBarcode.getMatnr()); |
| | | if (waitPakinCount >= 1){ |
| | | throw new CoolException("该模具已经组托,商品模具名称:" + matBarcode.getMatnr() + "托盘码:" + matBarcode.getZpallet()); |
| | | throw new CoolException("该模具已经组托,商品模具名称:" + matBarcode.getMatnr()); |
| | | } |
| | | WaitPakin waitPakin1 = new WaitPakin(); |
| | | waitPakin1.sync(mat); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public Integer selectByBarcodeAndMatnr(String matnr, String zpallet) { |
| | | return this.baseMapper.selectByBarcodeAndMatnr(matnr, zpallet); |
| | | public Integer selectByBarcodeAndMatnr(String matnr) { |
| | | return this.baseMapper.selectByBarcodeAndMatnr(matnr); |
| | | } |
| | | } |