|  |  | 
 |  |  |         if(param.getCombMats().size()>1){ | 
 |  |  |             throw new CoolException("请提取一个商品,或者刷新重新组托!"); | 
 |  |  |         } | 
 |  |  |         // 判断是否有相同条码的数据 | 
 |  |  | //        if (waitPakinService.selectCount(new EntityWrapper<WaitPakin>(). | 
 |  |  | //                eq("zpallet", param.getBarcode()).eq("io_status", "N")) > 0) { | 
 |  |  | //            throw new CoolException(param.getBarcode() + "数据正在进行入库"); | 
 |  |  | //        } | 
 |  |  |         param.getCombMats().forEach(elem -> { | 
 |  |  |             // 判断是否有相同条码的数据 | 
 |  |  |             if (waitPakinService.selectCount(new EntityWrapper<WaitPakin>(). | 
 |  |  |                     eq("zpallet", param.getBarcode()) | 
 |  |  |                     .eq("io_status", "N") | 
 |  |  |                     .eq("matnr",elem.getMatnr()).eq("batch",elem.getBatch())) > 0) { | 
 |  |  |                 throw new CoolException(param.getBarcode() + "已有相同数据"); | 
 |  |  |             } | 
 |  |  |         }); | 
 |  |  |  | 
 |  |  |         if(param.getBarcode().length()!=9){ | 
 |  |  |             throw new CoolException("条码长度不是9位===>>" + param.getBarcode()); | 
 |  |  | 
 |  |  |             // 生成入库通知档 | 
 |  |  |             List<DetlDto> detlDtos = new ArrayList<>(); | 
 |  |  |             param.getCombMats().forEach(elem -> { | 
 |  |  |  | 
 |  |  |                 // 判断是否有相同条码的数据 | 
 |  |  |                 if (waitPakinService.selectCount(new EntityWrapper<WaitPakin>(). | 
 |  |  |                         eq("zpallet", param.getBarcode()) | 
 |  |  |                         .eq("io_status", "N") | 
 |  |  |                         .eq("matnr",elem.getMatnr()).eq("batch",elem.getBatch())) > 0) { | 
 |  |  |                     throw new CoolException(param.getBarcode() + "已有相同数据"); | 
 |  |  |                 } | 
 |  |  |  | 
 |  |  |                 DetlDto detlDto = new DetlDto(elem.getMatnr(), elem.getBatch(), elem.getAnfme()); | 
 |  |  |                 if (DetlDto.has(detlDtos, detlDto)) { | 
 |  |  |                     DetlDto one = DetlDto.find(detlDtos, detlDto.getMatnr(), detlDto.getBatch()); |