Commit ed3908bd by 周晓航

新增 新算价 加价购,买赠等支持 pos编码记录

Signed-off-by: 周晓航 <xiaohang.zhou@freemud.com>
parent 24b1024c
...@@ -81,6 +81,7 @@ public class BuyAndGiftsPromotionService implements IPromotionService { ...@@ -81,6 +81,7 @@ public class BuyAndGiftsPromotionService implements IPromotionService {
ProductBean product = firstProduct.get(); ProductBean product = firstProduct.get();
CartGoods cartGoods = new CartGoods(); CartGoods cartGoods = new CartGoods();
cartGoods.setGoodsId(sendGoods.getGoodsId()); cartGoods.setGoodsId(sendGoods.getGoodsId());
cartGoods.setLinkedId(product.getLinkedId());
cartGoods.setGoodsType(1); cartGoods.setGoodsType(1);
cartGoods.setSpuId(Objects.equals(product.getIsSkuProduct(), 1) ? product.getSpecProductId() : sendGoods.getGoodsId()); cartGoods.setSpuId(Objects.equals(product.getIsSkuProduct(), 1) ? product.getSpecProductId() : sendGoods.getGoodsId());
cartGoods.setSkuId(sendGoods.getGoodsId()); cartGoods.setSkuId(sendGoods.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