| | |
| | | }else if (Cools.isEmpty(matList.getWeight()) || matList.getWeight().equals(0D)){ |
| | | throw new CoolException("规格:"+matList.getMatnr()+"、参数:净重 weight为空"); |
| | | }else if (Cools.isEmpty(matList.getRoughWeight()) || matList.getRoughWeight().equals(0D)){ |
| | | throw new CoolException("规格:"+matList.getMatnr()+"、参数:毛重 roughWeight"); |
| | | throw new CoolException("规格:"+matList.getMatnr()+"、参数:毛重 roughWeight为空"); |
| | | }else if (Cools.isEmpty(matList.getRollExtent()) || matList.getRollExtent().equals(0D)){ |
| | | throw new CoolException("规格:"+matList.getMatnr()+"、参数:卷长度 rollExtent"); |
| | | throw new CoolException("规格:"+matList.getMatnr()+"、参数:卷长度 rollExtent为空"); |
| | | } |
| | | // else if (Cools.isEmpty(matList.getJoint()) || matList.getJoint()==0){ |
| | | // throw new CoolException("规格:"+matList.getMatnr()+"、参数:接头数 joint"); |
| | |
| | | throw new CoolException("参数:物料明细 matLists为空"); |
| | | } |
| | | |
| | | // if (Cools.isEmpty(param.getBarcode())){ |
| | | // throw new CoolException("参数:托盘码 barcode为空"); |
| | | // } |
| | | // WrkMast wrkMastMatrix = wrkMastService.selectByBarcode(param.getBarcode()); |
| | | // if (Cools.isEmpty(wrkMastMatrix)){ |
| | | // throw new CoolException("参数:托盘码查询工作档失败:"+param.getBarcode()); |
| | | // } |
| | | // if (!wrkMastMatrix.getSheetNo().equals("1")){ |
| | | // throw new CoolException("参数:此任务未上报禁止完成:"+param.getBarcode()); |
| | | // } |
| | | if (Cools.isEmpty(param.getBarcode())){ |
| | | throw new CoolException("参数:托盘码 barcode为空"); |
| | | } |
| | | WrkMast wrkMastMatrix = wrkMastService.selectByBarcode(param.getBarcode()); |
| | | if (Cools.isEmpty(wrkMastMatrix)){ |
| | | throw new CoolException("参数:托盘码查询工作档失败:"+param.getBarcode()); |
| | | } |
| | | if (!wrkMastMatrix.getSheetNo().equals("1")){ |
| | | throw new CoolException("参数:此任务未上报禁止完成:"+param.getBarcode()); |
| | | } |
| | | |
| | | ArrayList<WrkDetl> wrkDetlsNew = new ArrayList<>(); |
| | | ArrayList<WrkDetlSingle> wrkDetlsOld = new ArrayList<>(); |