Authored by wujiexiang

Merge branch 'dev-coupon-recommend' into test6.9.6

@@ -33,4 +33,15 @@ public class CouponConstants { @@ -33,4 +33,15 @@ public class CouponConstants {
33 * 券使用 33 * 券使用
34 */ 34 */
35 public static final String COUPON_USE_DESC_FORMAT = "已选{0}张"; 35 public static final String COUPON_USE_DESC_FORMAT = "已选{0}张";
  36 +
  37 +
  38 + /**
  39 + * 支持用券
  40 + */
  41 + public static final String USE_COUPON_SUPPORT = "Y";
  42 +
  43 + /**
  44 + * 不支持用券
  45 + */
  46 + public static final String USE_COUPON_NOTSUPPORT = "N";
36 } 47 }
@@ -59,7 +59,9 @@ public class ShoppingController { @@ -59,7 +59,9 @@ public class ShoppingController {
59 .apiVersion(apiVersion) 59 .apiVersion(apiVersion)
60 .appVersion(appVersion).build(); 60 .appVersion(appVersion).build();
61 logger.info("in ufo.order.payment, req {}", req); 61 logger.info("in ufo.order.payment, req {}", req);
62 - PaymentResponse paymentResponse = buyerOrderService.payment(req); 62 + PaymentResponse paymentResponse = buyerOrderService.payment(req);
  63 + //支持用券标记
  64 + paymentResponse.getRecommendedCouponInfo().setUseSupport(activityTypeEnum.isCouponFlag() ? CouponConstants.USE_COUPON_SUPPORT : CouponConstants.USE_COUPON_NOTSUPPORT);
63 return new ApiResponse.ApiResponseBuilder().code(200).data(paymentResponse).message("结算成功").build(); 65 return new ApiResponse.ApiResponseBuilder().code(200).data(paymentResponse).message("结算成功").build();
64 } 66 }
65 67
@@ -34,4 +34,11 @@ public class RecommendedCouponInfo { @@ -34,4 +34,11 @@ public class RecommendedCouponInfo {
34 * 描述 34 * 描述
35 */ 35 */
36 private String desc; 36 private String desc;
  37 +
  38 + /**
  39 + * 是否支持用券 Y支持,其他不支持
  40 + * since 6.9.6
  41 + */
  42 + @JSONField(name = "is_use_support")
  43 + private String useSupport;
37 } 44 }