Commit 4ed82c8a by 查志伟

多个赠品金额展示拆分

parent 59c982fc
...@@ -254,6 +254,7 @@ public class BuyAndGiftsPromotionService implements IPromotionService { ...@@ -254,6 +254,7 @@ public class BuyAndGiftsPromotionService implements IPromotionService {
if (CollectionUtils.isNotEmpty(cartGoods.getExtra()) && cartGoods.getQty() > 1) { if (CollectionUtils.isNotEmpty(cartGoods.getExtra()) && cartGoods.getQty() > 1) {
int qty = cartGoods.getQty(); int qty = cartGoods.getQty();
cartGoods.setQty(1); //设置数量为1 cartGoods.setQty(1); //设置数量为1
cartGoods.setOriginalAmount(cartGoods.getOriginalPrice()); //金额直接使用单个商品的金额
for (int i=1; i<qty; i++) { for (int i=1; i<qty; i++) {
CartGoods newRow = new CartGoods(); CartGoods newRow = new CartGoods();
BeanUtils.copyProperties(cartGoods, newRow); BeanUtils.copyProperties(cartGoods, newRow);
......
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