Commit fb9618d7 by 周晓航

购物车兼并 配送券

Signed-off-by: 周晓航 <xiaohang.zhou@freemud.com>
parent 91b6c184
...@@ -241,6 +241,7 @@ public class OrderAdapter { ...@@ -241,6 +241,7 @@ public class OrderAdapter {
createOrderDto.setProducts(products); createOrderDto.setProducts(products);
boolean hasDeliveryMonthCard = false; boolean hasDeliveryMonthCard = false;
for (ActivityDiscountsDto activityDiscountsDto : activityDiscountsDtos) { for (ActivityDiscountsDto activityDiscountsDto : activityDiscountsDtos) {
// fisherman 3.0.34 运费券 这里塞进去的
CreateOrderAccountRequest createOrderAccountDto = CreateOrderAccountRequest.builder() CreateOrderAccountRequest createOrderAccountDto = CreateOrderAccountRequest.builder()
.accountId(activityDiscountsDto.getActivityCode()) .accountId(activityDiscountsDto.getActivityCode())
.name(activityDiscountsDto.getActivityName()) .name(activityDiscountsDto.getActivityName())
......
...@@ -22,6 +22,7 @@ public class GetCouponDetailResponseDto { ...@@ -22,6 +22,7 @@ public class GetCouponDetailResponseDto {
private String code; private String code;
private String activeCode; private String activeCode;
private String title; private String title;
//券类型:0商品券,1代金券,3折扣券,4换购券 5.配送券
private Integer type; private Integer type;
private Integer status; private Integer status;
private String create_time; private String create_time;
......
...@@ -436,6 +436,11 @@ public class CreateOrderVo { ...@@ -436,6 +436,11 @@ public class CreateOrderVo {
* 顺序 * 顺序
*/ */
private Integer index; private Integer index;
/**
* 优惠券类型
*/
private Integer couponType;
} }
/** /**
......
...@@ -199,6 +199,11 @@ public class ShoppingCartInfoRequestVo { ...@@ -199,6 +199,11 @@ public class ShoppingCartInfoRequestVo {
* 顺序 * 顺序
*/ */
private Integer index; private Integer index;
/**
* 优惠券类型
*/
private Integer couponType;
} }
/** /**
......
...@@ -604,6 +604,7 @@ public class CheckOrder { ...@@ -604,6 +604,7 @@ public class CheckOrder {
coupon.setCouponCode(couponCode.getCouponCode()); coupon.setCouponCode(couponCode.getCouponCode());
coupon.setActivityCode(activeCode); coupon.setActivityCode(activeCode);
coupon.setIndex(couponCode.getIndex()); coupon.setIndex(couponCode.getIndex());
coupon.setCouponType(getCouponDetailResponseDto.getDetails().get(0).getType());
couponCodes.add(coupon); couponCodes.add(coupon);
}); });
......
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