| | |
| | | throw new CoolException(param.getBarcode() + "数据正在进行入库"); |
| | | } |
| | | |
| | | if(param.getBarcode().length()!=8){ |
| | | throw new CoolException("条码长度不是8位===>>" + param.getBarcode()); |
| | | } |
| | | // if(param.getBarcode().length()!=8){ |
| | | // throw new CoolException("条码长度不是8位===>>" + param.getBarcode()); |
| | | // } |
| | | if (param.getCombMats().size()>1){ |
| | | throw new CoolException("不允许混料===>>" + param.getBarcode()); |
| | | } |
| | | Mat mat1 = matService.selectByMatnr(param.getCombMats().get(0).getMatnr()); |
| | | if(!Cools.isEmpty(mat1)){ |
| | | param.getCombMats().get(0).setBatch(mat1.getMatnr()); |
| | | param.getCombMats().get(0).setAnfme(mat1.getPrice()); |
| | | } |
| | | if(Cools.isEmpty(param.getCombMats().get(0).getBatch())){ |
| | | throw new CoolException("批号(唯一码)不能为空===>>" + param.getBarcode()); |
| | | } |
| | | |
| | | int countLoc = locDetlService.selectCount(new EntityWrapper<LocDetl>().eq("zpallet",param.getBarcode())); |
| | | int countWrk = wrkDetlService.selectCount(new EntityWrapper<WrkDetl>().eq("zpallet",param.getBarcode())); |