Commit d4cbb189 by chongfu.liang

购物车为空时

parent de9b0fe7
...@@ -474,6 +474,9 @@ public abstract class AbstractAddGoodsService implements AddGoodsService { ...@@ -474,6 +474,9 @@ public abstract class AbstractAddGoodsService implements AddGoodsService {
shoppingCartGoodsBO.setTotalDiscountAmount(shoppingGoodsAmountBO.getTotalDiscountAmount()); shoppingCartGoodsBO.setTotalDiscountAmount(shoppingGoodsAmountBO.getTotalDiscountAmount());
shoppingCartGoodsBO.setFullDiscount(fullReductionBO.getDiscount()); shoppingCartGoodsBO.setFullDiscount(fullReductionBO.getDiscount());
if (distributeBO.getCartGoods() == null){
distributeBO.setCartGoods(new ArrayList<>());
}
distributeBO.getCartGoods().addAll(giftGoods); distributeBO.getCartGoods().addAll(giftGoods);
shoppingCartGoodsBO.setChooseGoods(chooseGoodsBO); shoppingCartGoodsBO.setChooseGoods(chooseGoodsBO);
shoppingCartGoodsBO.setVersion(2); shoppingCartGoodsBO.setVersion(2);
......
...@@ -542,6 +542,9 @@ public class AbstractListCartGoodsService implements ListCartGoodsService { ...@@ -542,6 +542,9 @@ public class AbstractListCartGoodsService implements ListCartGoodsService {
shoppingCartGoodsBO.setTotalDiscountAmount(totalDiscountAmount); shoppingCartGoodsBO.setTotalDiscountAmount(totalDiscountAmount);
shoppingCartGoodsBO.setOriginalTotalAmount(originalTotalAmount); shoppingCartGoodsBO.setOriginalTotalAmount(originalTotalAmount);
shoppingCartGoodsBO.setFullDiscount(fullReductionBO.getDiscount()); shoppingCartGoodsBO.setFullDiscount(fullReductionBO.getDiscount());
if (distributeBO.getCartGoods() == null){
distributeBO.setCartGoods(new ArrayList<>());
}
distributeBO.getCartGoods().addAll(giftGoods); distributeBO.getCartGoods().addAll(giftGoods);
shoppingCartGoodsBO.setChooseGoods(chooseGoodsBO); shoppingCartGoodsBO.setChooseGoods(chooseGoodsBO);
shoppingCartGoodsBO.setVersion(2); shoppingCartGoodsBO.setVersion(2);
......
...@@ -439,6 +439,9 @@ public abstract class AbstractUpdateGoodsQtyService implements UpdateGoodsQtySer ...@@ -439,6 +439,9 @@ public abstract class AbstractUpdateGoodsQtyService implements UpdateGoodsQtySer
shoppingCartGoodsBO.setTotalDiscountAmount(shoppingGoodsAmountBO.getTotalDiscountAmount()); shoppingCartGoodsBO.setTotalDiscountAmount(shoppingGoodsAmountBO.getTotalDiscountAmount());
shoppingCartGoodsBO.setFullDiscount(fullReductionBO.getDiscount()); shoppingCartGoodsBO.setFullDiscount(fullReductionBO.getDiscount());
if (distributeBO.getCartGoods() == null){
distributeBO.setCartGoods(new ArrayList<>());
}
distributeBO.getCartGoods().addAll(giftGoods); distributeBO.getCartGoods().addAll(giftGoods);
shoppingCartGoodsBO.setChooseGoods(chooseGoodsBO); shoppingCartGoodsBO.setChooseGoods(chooseGoodsBO);
shoppingCartGoodsBO.setVersion(2); shoppingCartGoodsBO.setVersion(2);
......
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