mall:新增价格计算的接口

This commit is contained in:
YunaiV
2022-08-16 09:17:46 +08:00
parent cfd0f3679f
commit 96fc252348
2 changed files with 24 additions and 13 deletions

View File

@ -66,8 +66,8 @@ public class PriceCalculateRespDTO {
* + {@link #deliveryPrice} * + {@link #deliveryPrice}
* - {@link #skuPromotionPrice} * - {@link #skuPromotionPrice}
* - {@link #orderPromotionPrice} * - {@link #orderPromotionPrice}
* - {@link #couponPrice} // TODO 芋艿:需要再考虑一下它
*/ */
// * - {@link #couponPrice} // TODO 芋艿:靠营销表记录
private Integer payPrice; private Integer payPrice;
// ========== 营销基本信息 ========== // ========== 营销基本信息 ==========
@ -75,10 +75,12 @@ public class PriceCalculateRespDTO {
* 优惠劵编号 * 优惠劵编号
*/ */
private Long couponId; private Long couponId;
/** // /**
* 优惠劵减免金额,单位:分 // * 优惠劵减免金额,单位:分
*/ // *
private Integer couponPrice; // * // TODO 芋艿:靠营销表记录
// */
// private Integer couponPrice;
} }
@ -162,8 +164,17 @@ public class PriceCalculateRespDTO {
* 计算时的优惠(总),单位:分 * 计算时的优惠(总),单位:分
*/ */
private Integer totalPromotionPrice; private Integer totalPromotionPrice;
// TODO 芋艿是否匹配match ;不匹配的原因 /**
// TODO 芋艿:描述 * 是否满足优惠条件
*/
private Boolean meet;
/**
* 满足条件的提示
*
* 如果 {@link #meet} = true 满足,则提示“圣诞价:省 150.00 元”
* 如果 {@link #meet} = false 不满足,则提示“购满 85 元,可减 40 元”
*/
private String meetTip;
/** /**
* 匹配的商品 SKU * 匹配的商品 SKU

View File

@ -148,9 +148,9 @@ public class TradeOrderDO extends BaseDO {
* + {@link #deliveryPrice} * + {@link #deliveryPrice}
* - {@link #skuPromotionPrice} * - {@link #skuPromotionPrice}
* - {@link #orderPromotionPrice} * - {@link #orderPromotionPrice}
* - {@link #couponPrice}
*/ */
// niu - pay_moneytaobao - payment主订单实付金额 | trade.total_fee主订单应付金额参考使用 // niu - pay_moneytaobao - payment主订单实付金额 | trade.total_fee主订单应付金额参考使用
// * - {@link #couponPrice} // TODO 芋艿:靠营销表记录
private Integer payPrice; private Integer payPrice;
/** /**
* 支付订单编号 * 支付订单编号
@ -247,11 +247,11 @@ public class TradeOrderDO extends BaseDO {
* 优惠劵编号 * 优惠劵编号
*/ */
private Long couponId; private Long couponId;
/** // /**
* 优惠劵减免金额,单位:分 // * 优惠劵减免金额,单位:分 // TODO 芋艿:靠营销表记录
*/ // */
// niu - coupon_money // // niu - coupon_money
private Integer couponPrice; // private Integer couponPrice;
// /** // /**
// * 积分抵扣的金额,单位:分 // * 积分抵扣的金额,单位:分
// */ // */