Commit 5fbe8c52 by 查志伟

修复买一赠一多规格多次加不同规格赠品显示问题

parent 14764a42
...@@ -95,6 +95,7 @@ public class PlatformActiveServiceImpl implements ActiveService { ...@@ -95,6 +95,7 @@ public class PlatformActiveServiceImpl implements ActiveService {
.get(); .get();
CartGoods cartGood = new CartGoods(); CartGoods cartGood = new CartGoods();
cartGood.setGoodsId(goods.getGoodsId()); cartGood.setGoodsId(goods.getGoodsId());
cartGood.setOriginalGoodsUid(goods.getOriginalGoodsUid());
cartGood.setGoodsType(1); cartGood.setGoodsType(1);
cartGood.setSpuId(Objects.equals(product.getIsSkuProduct(), 1) ? product.getSpecProductId() : goods.getGoodsId()); cartGood.setSpuId(Objects.equals(product.getIsSkuProduct(), 1) ? product.getSpecProductId() : goods.getGoodsId());
cartGood.setSkuId(goods.getGoodsId()); cartGood.setSkuId(goods.getGoodsId());
......
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