| | |
| | | throw new CoolException("物料类别获取失败"); |
| | | } |
| | | |
| | | StartupDto dto; |
| | | StartupDto dto=new StartupDto(); |
| | | if (devpNo == 304) { |
| | | dto = commonService.getLocNoBy304(str5.get(0)); |
| | | }if(devpNo == 311){ |
| | | dto = commonService.getLocNoBy311(str5.get(0)); |
| | | } else { |
| | | // dto = commonService.getLocNo(1, 1, devpNo, false, matNos, locTypeDto,0); |
| | | dto = commonService.getLocNoNew(1, devpNo,barcode); |
| | |
| | | } |
| | | // 生成工作档明细 |
| | | List<MatCodeCountDto> matDtos = new ArrayList<>(); |
| | | StartupDto finalDto = dto; |
| | | pltBarcodes.forEach(elem -> { |
| | | matDtos.add(new MatCodeCountDto(elem.getBillNo(), elem.getSeqNo(), elem.getMatNo(), elem.getSupplier(), elem.getQty(),elem.getSource(),elem.getVendor(),elem.getMemo())); |
| | | |
| | |
| | | Wrapper<PltBarcode> wrapper = new EntityWrapper<PltBarcode>().eq("barcode", elem.getBarcode()) |
| | | .eq("bill_no", elem.getBillNo()).eq("seq_no", elem.getSeqNo()).eq("mat_no", elem.getMatNo()); |
| | | PltBarcode pltBarcode = pltBarcodeService.selectOne(wrapper); |
| | | pltBarcode.setLocNo(dto.getLocNo()); |
| | | pltBarcode.setLocNo(finalDto.getLocNo()); |
| | | pltBarcode.setIoStatus(1);//入库中 |
| | | pltBarcodeService.update(pltBarcode,wrapper); |
| | | }); |