promotion:优化价格计算的接口,增加 orderPrice 字段

This commit is contained in:
YunaiV
2022-11-06 22:25:02 +08:00
parent 636cc794dd
commit d10f49b6a7
9 changed files with 61 additions and 28 deletions

View File

@ -48,9 +48,17 @@ public class PriceCalculateRespDTO {
* 商品原价(总),单位:分
*
* 基于 {@link OrderItem#getOriginalPrice()} 求和
*
* 对应 taobao 的 trade.total_fee 字段
*/
private Integer originalPrice;
/**
* 订单原价(总),单位:分
*
* 基于 {@link OrderItem#getPayPrice()} 求和
* 和 {@link #originalPrice} 的差异:去除商品级优惠
*/
private Integer orderPrice;
/**
* 订单优惠(总),单位:分
*
@ -82,6 +90,7 @@ public class PriceCalculateRespDTO {
* - {@link #couponPrice}
* - {@link #pointPrice}
* + {@link #deliveryPrice}
* - {@link #discountPrice}
*/
private Integer payPrice;
/**