Commit 1268f13d by chongfu.liang

买赠计算

parent 4d23a785
......@@ -1140,7 +1140,10 @@ public abstract class AbstractAddGoodsService implements AddGoodsService {
if (CollectionUtils.isEmpty(gifts)) return productBeanList;
GetProductBO getProductBO = new GetProductBO();
getProductBO.setGoodsId(gifts);
getProductBO.setPartnerId(baseRequestDTO.getPartnerId());
getProductBO.setStoreId(baseRequestDTO.getShopId());
getProductBO.setMenuType(baseRequestDTO.getMenuType());
List<ProductBO> productsInfo = productManager.getProductsInfo(getProductBO, baseRequestDTO.getManagerService().getProductService());
return productsInfo;
......
......@@ -1619,7 +1619,10 @@ public class AbstractApportionService implements GetShoppingCartGoodsApportionSe
if (CollectionUtils.isEmpty(gifts)) return productBeanList;
GetProductBO getProductBO = new GetProductBO();
getProductBO.setGoodsId(gifts);
getProductBO.setPartnerId(baseRequestDTO.getPartnerId());
getProductBO.setStoreId(baseRequestDTO.getShopId());
getProductBO.setMenuType(baseRequestDTO.getMenuType());
List<ProductBO> productsInfo = productManager.getProductsInfo(getProductBO, baseRequestDTO.getManagerService().getProductService());
return productsInfo;
......
......@@ -1492,7 +1492,10 @@ public class AbstractListCartGoodsService implements ListCartGoodsService {
if (CollectionUtils.isEmpty(gifts)) return productBeanList;
GetProductBO getProductBO = new GetProductBO();
getProductBO.setGoodsId(gifts);
getProductBO.setPartnerId(baseRequestDTO.getPartnerId());
getProductBO.setStoreId(baseRequestDTO.getShopId());
getProductBO.setMenuType(baseRequestDTO.getMenuType());
List<ProductBO> productsInfo = productManager.getProductsInfo(getProductBO, baseRequestDTO.getManagerService().getProductService());
return productsInfo;
......
......@@ -1072,7 +1072,10 @@ public abstract class AbstractUpdateGoodsQtyService implements UpdateGoodsQtySer
if (CollectionUtils.isEmpty(gifts)) return productBeanList;
GetProductBO getProductBO = new GetProductBO();
getProductBO.setGoodsId(gifts);
getProductBO.setPartnerId(baseRequestDTO.getPartnerId());
getProductBO.setStoreId(baseRequestDTO.getShopId());
getProductBO.setMenuType(baseRequestDTO.getMenuType());
List<ProductBO> productsInfo = productManager.getProductsInfo(getProductBO, baseRequestDTO.getManagerService().getProductService());
return productsInfo;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment