| | |
| | | throw new CoolException(BaseRes.PARAM); |
| | | } |
| | | // 判断是否有相同条码的数据 |
| | | // if (waitPakinService.selectCount(new EntityWrapper<WaitPakin>(). |
| | | // eq("zpallet", param.getBarcode()).eq("io_status", "N")) > 0) { |
| | | // throw new CoolException(param.getBarcode() + "数据正在进行入库"); |
| | | // } |
| | | if (waitPakinService.selectCount(new EntityWrapper<WaitPakin>(). |
| | | eq("zpallet", param.getBarcode()).eq("io_status", "N")) > 0) { |
| | | throw new CoolException(param.getBarcode() + "数据正在进行入库"); |
| | | eq("zpallet", param.getBarcode())) > 0) { |
| | | throw new CoolException(param.getBarcode() + "组托数据已存在"); |
| | | } |
| | | |
| | | // todo: 不下线重新入库 |
| | |
| | | param.getCombMats().forEach(elem -> { |
| | | DetlDto detlDto = new DetlDto(elem.getMatnr(), elem.getBatch(), elem.getAnfme(), elem.getMemo(), elem.getCstmr()); |
| | | |
| | | if (Cools.isEmpty(detlDto.getBatch())){ |
| | | String batch = DateUtils.convert(new Date(),DateUtils.yyyyMMdd); |
| | | detlDto.setBatch(batch); |
| | | } |
| | | // if (Cools.isEmpty(detlDto.getBatch())){ |
| | | // String batch = DateUtils.convert(new Date(),DateUtils.yyyyMMdd); |
| | | // detlDto.setBatch(batch); |
| | | // } |
| | | |
| | | if (DetlDto.has(detlDtos, detlDto)) { |
| | | DetlDto one = DetlDto.find(detlDtos, detlDto.getMatnr(), detlDto.getBatch()); |