|
@@ -184,23 +184,40 @@ public class ProductInvoiceServiceImpl implements IProductInvoiceService
|
|
|
// List<ProductInvoiceVO.SaleProductInfo> saleProductInfoList = saleProductsMapper.selectSaleProductsInfo(saleOrderNo);
|
|
|
List<ProductInvoiceVO.SaleProductInfo> saleProductInfoList = saleProductsMapper.selectSaleProductsInfo1(saleOrderNo);
|
|
|
|
|
|
+ for (ProductInvoiceVO.SaleProductInfo saleProductInfo : saleProductInfoList){
|
|
|
+ //查询库存信息
|
|
|
+ if(saleProductInfo.getLotNum() != null){
|
|
|
+ ProductInventory productInventory1 = new ProductInventory();
|
|
|
+ productInventory1.setProductId(saleProductInfo.getProductId());
|
|
|
+ productInventory1.setLotNum(saleProductInfo.getLotNum());
|
|
|
+ productInventory1.setProductColour(saleProductInfo.getProductColor());
|
|
|
+
|
|
|
+ ProductInventory productInventory = productInventoryMapper.selectProductInventoryInfo(productInventory1);
|
|
|
+
|
|
|
+ if(productInventory != null){
|
|
|
+ saleProductInfo.setLevels(productInventory.getLevels());
|
|
|
+ saleProductInfo.setQrCode(productInventory.getQrCode());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
if(productInvoice != null){
|
|
|
for (ProductInvoiceVO.SaleProductInfo saleProductInfo : saleProductInfoList){
|
|
|
|
|
|
//查询库存信息
|
|
|
- if(saleProductInfo.getLotNum() != null){
|
|
|
- ProductInventory productInventory1 = new ProductInventory();
|
|
|
- productInventory1.setProductId(saleProductInfo.getProductId());
|
|
|
- productInventory1.setLotNum(saleProductInfo.getLotNum());
|
|
|
- productInventory1.setProductColour(saleProductInfo.getProductColor());
|
|
|
-
|
|
|
- ProductInventory productInventory = productInventoryMapper.selectProductInventoryInfo(productInventory1);
|
|
|
-
|
|
|
- if(productInventory != null){
|
|
|
- saleProductInfo.setLevels(productInventory.getLevels());
|
|
|
- saleProductInfo.setQrCode(productInventory.getQrCode());
|
|
|
- }
|
|
|
- }
|
|
|
+// if(saleProductInfo.getLotNum() != null){
|
|
|
+// ProductInventory productInventory1 = new ProductInventory();
|
|
|
+// productInventory1.setProductId(saleProductInfo.getProductId());
|
|
|
+// productInventory1.setLotNum(saleProductInfo.getLotNum());
|
|
|
+// productInventory1.setProductColour(saleProductInfo.getProductColor());
|
|
|
+//
|
|
|
+// ProductInventory productInventory = productInventoryMapper.selectProductInventoryInfo(productInventory1);
|
|
|
+//
|
|
|
+// if(productInventory != null){
|
|
|
+// saleProductInfo.setLevels(productInventory.getLevels());
|
|
|
+// saleProductInfo.setQrCode(productInventory.getQrCode());
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
|
|
|
//获取已出库箱数和重量
|