| | |
| | | // 为订单下的每一个产品生成发货台账记录 (显示单个产品) |
| | | List<SalesLedgerProduct> products = salesLedgerProductMapper.selectList(new LambdaQueryWrapper<SalesLedgerProduct>() |
| | | .eq(SalesLedgerProduct::getSalesLedgerId, salesLedger.getId())); |
| | | |
| | | |
| | | if (CollectionUtils.isNotEmpty(products)) { |
| | | for (SalesLedgerProduct product : products) { |
| | | ShippingInfo si = new ShippingInfo(); |
| | |
| | | si.setSalesLedgerProductId(product.getId()); |
| | | si.setShippingNo(shNo); |
| | | si.setStatus("待审核"); |
| | | si.setType(req.getType()); // 来源/类型 |
| | | si.setType(req.getType()); |
| | | shippingInfoService.save(si); |
| | | } |
| | | } |