Commit 96fc2523482b0a04f9e59425c8cb663499b8db7e
1 parent
cfd0f367
mall:新增价格计算的接口
Showing
2 changed files
with
24 additions
and
13 deletions
yudao-module-mall/yudao-module-market-api/src/main/java/cn/iocoder/yudao/module/market/api/price/dto/PriceCalculateRespDTO.java
| ... | ... | @@ -66,8 +66,8 @@ public class PriceCalculateRespDTO { |
| 66 | 66 | * + {@link #deliveryPrice} |
| 67 | 67 | * - {@link #skuPromotionPrice} |
| 68 | 68 | * - {@link #orderPromotionPrice} |
| 69 | - * - {@link #couponPrice} // TODO 芋艿:需要再考虑一下它 | |
| 70 | 69 | */ |
| 70 | + // * - {@link #couponPrice} // TODO 芋艿:靠营销表记录 | |
| 71 | 71 | private Integer payPrice; |
| 72 | 72 | |
| 73 | 73 | // ========== 营销基本信息 ========== |
| ... | ... | @@ -75,10 +75,12 @@ public class PriceCalculateRespDTO { |
| 75 | 75 | * 优惠劵编号 |
| 76 | 76 | */ |
| 77 | 77 | private Long couponId; |
| 78 | - /** | |
| 79 | - * 优惠劵减免金额,单位:分 | |
| 80 | - */ | |
| 81 | - private Integer couponPrice; | |
| 78 | +// /** | |
| 79 | +// * 优惠劵减免金额,单位:分 | |
| 80 | +// * | |
| 81 | +// * // TODO 芋艿:靠营销表记录 | |
| 82 | +// */ | |
| 83 | +// private Integer couponPrice; | |
| 82 | 84 | |
| 83 | 85 | } |
| 84 | 86 | |
| ... | ... | @@ -162,8 +164,17 @@ public class PriceCalculateRespDTO { |
| 162 | 164 | * 计算时的优惠(总),单位:分 |
| 163 | 165 | */ |
| 164 | 166 | private Integer totalPromotionPrice; |
| 165 | - // TODO 芋艿:是否匹配,match ;不匹配的原因 | |
| 166 | - // TODO 芋艿:描述 | |
| 167 | + /** | |
| 168 | + * 是否满足优惠条件 | |
| 169 | + */ | |
| 170 | + private Boolean meet; | |
| 171 | + /** | |
| 172 | + * 满足条件的提示 | |
| 173 | + * | |
| 174 | + * 如果 {@link #meet} = true 满足,则提示“圣诞价:省 150.00 元” | |
| 175 | + * 如果 {@link #meet} = false 不满足,则提示“购满 85 元,可减 40 元” | |
| 176 | + */ | |
| 177 | + private String meetTip; | |
| 167 | 178 | |
| 168 | 179 | /** |
| 169 | 180 | * 匹配的商品 SKU | ... | ... |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/dal/dataobject/order/TradeOrderDO.java
| ... | ... | @@ -148,9 +148,9 @@ public class TradeOrderDO extends BaseDO { |
| 148 | 148 | * + {@link #deliveryPrice} |
| 149 | 149 | * - {@link #skuPromotionPrice} |
| 150 | 150 | * - {@link #orderPromotionPrice} |
| 151 | - * - {@link #couponPrice} | |
| 152 | 151 | */ |
| 153 | 152 | // niu - pay_money;taobao - payment(主订单实付金额) | trade.total_fee(主订单应付金额,参考使用); |
| 153 | +// * - {@link #couponPrice} // TODO 芋艿:靠营销表记录 | |
| 154 | 154 | private Integer payPrice; |
| 155 | 155 | /** |
| 156 | 156 | * 支付订单编号 |
| ... | ... | @@ -247,11 +247,11 @@ public class TradeOrderDO extends BaseDO { |
| 247 | 247 | * 优惠劵编号 |
| 248 | 248 | */ |
| 249 | 249 | private Long couponId; |
| 250 | - /** | |
| 251 | - * 优惠劵减免金额,单位:分 | |
| 252 | - */ | |
| 253 | - // niu - coupon_money; | |
| 254 | - private Integer couponPrice; | |
| 250 | +// /** | |
| 251 | +// * 优惠劵减免金额,单位:分 // TODO 芋艿:靠营销表记录 | |
| 252 | +// */ | |
| 253 | +// // niu - coupon_money; | |
| 254 | +// private Integer couponPrice; | |
| 255 | 255 | // /** |
| 256 | 256 | // * 积分抵扣的金额,单位:分 |
| 257 | 257 | // */ | ... | ... |