| | |
| | | throw new CoolException(param.getBarcode() + "数据已经在库"); |
| | | } |
| | | |
| | | //判断托盘是否已经在工作档 |
| | | if (wrkMastService.selectCount(new EntityWrapper<WrkMast>() |
| | | .eq("barcode", param.getBarcode())) > 0) { |
| | | throw new CoolException(param.getBarcode() + "数据已经在任务档中"); |
| | | } |
| | | |
| | | //判断是否存在料箱码 => 存在料箱码则要求提交上来的物料list必须全部都有料箱码 |
| | | boolean hasContainerCode = false; |
| | | int containerCodeCount = 0;//料箱码数量 |
| | | for (CombParam.CombMat combMat : param.getCombMats()) { |
| | | if (combMat.getContainerCode() != null) { |
| | | if(!Cools.isEmpty(combMat.getContainerCode())){ |
| | | //if (combMat.getContainerCode() != null) { |
| | | hasContainerCode = true; |
| | | containerCodeCount++; |
| | | continue; |