Commit d181a0ee by 刘鹏飞

Merge remote-tracking branch 'origin/feature/coco-payGift-刘鹏飞' into feature/coco-payGift-刘鹏飞

parents f70985fb 6dc4876b
...@@ -48,6 +48,8 @@ public class ShoppingCartInfoRequestVo extends BaseRequestVo { ...@@ -48,6 +48,8 @@ public class ShoppingCartInfoRequestVo extends BaseRequestVo {
* 优惠券code * 优惠券code
*/ */
private String couponCode; private String couponCode;
private List<String> couponCodes;
/** /**
* 优惠券对应的活动号 * 优惠券对应的活动号
*/ */
......
...@@ -578,6 +578,16 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService { ...@@ -578,6 +578,16 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
coupon.setActivityCode(activityCode); coupon.setActivityCode(activityCode);
coupons.add(coupon); coupons.add(coupon);
} }
if (shoppingCartInfoRequestVo.getCouponCodes() != null) {
shoppingCartInfoRequestVo.getCouponCodes().forEach(s->{
CalculationSharingDiscountRequestDto.CalculationDiscountCoupon coupon = new CalculationSharingDiscountRequestDto.CalculationDiscountCoupon();
coupon.setCode(s);
coupons.add(coupon);
});
}
List<ShoppingCartInfoRequestVo.SendGoods> sendGoodsList = shoppingCartInfoRequestVo.getSendGoods(); List<ShoppingCartInfoRequestVo.SendGoods> sendGoodsList = shoppingCartInfoRequestVo.getSendGoods();
List<ShoppingCartInfoRequestVo.SendGoods> sendGoods = new ArrayList<>(); List<ShoppingCartInfoRequestVo.SendGoods> sendGoods = new ArrayList<>();
if (CollectionUtils.isNotEmpty(sendGoodsList)) { if (CollectionUtils.isNotEmpty(sendGoodsList)) {
......
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