Commit fb9b4d84 by chongfu.liang

老算价赠品

parent a42c6415
...@@ -95,6 +95,8 @@ public class ShoppingCartConvertAdapter { ...@@ -95,6 +95,8 @@ public class ShoppingCartConvertAdapter {
// 设置基础信息 // 设置基础信息
ShoppingCartGoodsDto.CartGoodsDetailDto cartGoodsDetailDto = new ShoppingCartGoodsDto.CartGoodsDetailDto(); ShoppingCartGoodsDto.CartGoodsDetailDto cartGoodsDetailDto = new ShoppingCartGoodsDto.CartGoodsDetailDto();
cartGoodsDetailDto.setCartGoodsUid(cartGoods.getCartGoodsUid()); cartGoodsDetailDto.setCartGoodsUid(cartGoods.getCartGoodsUid());
cartGoodsDetailDto.setOriginalGoodsUid(cartGoods.getOriginalGoodsUid());
cartGoodsDetailDto.setIsSendGoods((cartGoods.getIsSendGoods() !=null && cartGoods.getIsSendGoods()) ? true : false );
cartGoodsDetailDto.setTaxId(cartGoods.getTaxId()); cartGoodsDetailDto.setTaxId(cartGoods.getTaxId());
cartGoodsDetailDto.setTax(cartGoods.getTax()); cartGoodsDetailDto.setTax(cartGoods.getTax());
cartGoodsDetailDto.setSpuId(cartGoods.getSpuId()); cartGoodsDetailDto.setSpuId(cartGoods.getSpuId());
......
...@@ -264,6 +264,7 @@ public class BuySendPromotionService implements IPromotionService { ...@@ -264,6 +264,7 @@ public class BuySendPromotionService implements IPromotionService {
} }
String s = currentSubName(cartGood); String s = currentSubName(cartGood);
CartGoods newCartGoods = shoppingCartConvertAdapter.convent2CartGoods(cartGood, sendGoods.getNowPrice()); CartGoods newCartGoods = shoppingCartConvertAdapter.convent2CartGoods(cartGood, sendGoods.getNowPrice());
newCartGoods.setCartGoodsUid(UUID.randomUUID().toString());
newCartGoods.setOriginalGoodsUid(sendGoods.getOriginalGoodsUid()); newCartGoods.setOriginalGoodsUid(sendGoods.getOriginalGoodsUid());
newCartGoods.setClassificationId(cartGood.getClassificationId()); newCartGoods.setClassificationId(cartGood.getClassificationId());
newCartGoods.setClassificationName(cartGood.getClassificationName()); newCartGoods.setClassificationName(cartGood.getClassificationName());
...@@ -271,6 +272,7 @@ public class BuySendPromotionService implements IPromotionService { ...@@ -271,6 +272,7 @@ public class BuySendPromotionService implements IPromotionService {
//赠品不允许有加料 //赠品不允许有加料
newCartGoods.setProductMaterialList(new ArrayList()); newCartGoods.setProductMaterialList(new ArrayList());
newCartGoods.setSubName(s); newCartGoods.setSubName(s);
newCartGoods.setIsSendGoods(true);
newCartGoodsList.add(newCartGoods); newCartGoodsList.add(newCartGoods);
} }
......
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