Commit 2f659b46 by yu.sun

Merge branch 'feature-yu.sun-autoSelect-20201025' into qa

parents faebbe11 c9c5d0a8
...@@ -367,7 +367,6 @@ public class CouponDiscountCalculation { ...@@ -367,7 +367,6 @@ public class CouponDiscountCalculation {
res.setStoreId(requestVo.getStoreId()); res.setStoreId(requestVo.getStoreId());
res.setChannelIdList(commonService.getOrgCodes(requestVo.getPartnerId(), requestVo.getStoreId())); res.setChannelIdList(commonService.getOrgCodes(requestVo.getPartnerId(), requestVo.getStoreId()));
res.setCouponCodes(couponCodes); res.setCouponCodes(couponCodes);
List<CartGoods> productList = new ArrayList<>();
List<CouponProductVo> calculAmountProductList = new ArrayList<>(); List<CouponProductVo> calculAmountProductList = new ArrayList<>();
if (CollectionUtils.isNotEmpty(cartGoods)) { if (CollectionUtils.isNotEmpty(cartGoods)) {
cartGoods.forEach(cartGood -> { cartGoods.forEach(cartGood -> {
...@@ -405,7 +404,7 @@ public class CouponDiscountCalculation { ...@@ -405,7 +404,7 @@ public class CouponDiscountCalculation {
// }); // });
// } // }
}); });
res.setProductList(productList); res.setProductList(cartGoods);
Long totalAmount = createProductRequest(cartGoods, calculAmountProductList); Long totalAmount = createProductRequest(cartGoods, calculAmountProductList);
res.setTotalAmount(Integer.valueOf(totalAmount.toString())); res.setTotalAmount(Integer.valueOf(totalAmount.toString()));
resList.add(res); resList.add(res);
......
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