调整 price 接口,参考 taobao 的技术文档

pull/2/head
YunaiV 2022-10-28 23:49:15 +08:00
parent 3b506006dd
commit a88eda340b
1 changed files with 46 additions and 39 deletions

View File

@ -9,6 +9,18 @@ import java.util.List;
/** /**
* Response DTO * Response DTO
* *
* taobao
* 1. <a href="https://developer.alibaba.com/docs/doc.htm?treeId=1&articleId=1029&docType=1"></a>
* 2. <a href="https://open.taobao.com/docV3.htm?docId=108471&docType=1"></a>
*
* <a href="https://img.alicdn.com/top/i1/LB1mALAi4HI8KJjy1zbXXaxdpXa"></a>
*
* 1. trade.payment = 198.005
* 2. : 29.00 : 150.00 2: 5.00
*
* 1. 1 108 29 79 1.99
* 2. 2 269 150 119 3.01
*
* @author * @author
*/ */
@Data @Data
@ -36,32 +48,29 @@ public class PriceCalculateRespDTO {
* *
* *
* {@link OrderItem#getOriginalPrice()} * {@link OrderItem#getOriginalPrice()}
* taobao trade.total_fee
*/ */
private Integer originalPrice; private Integer originalPrice;
/** /**
* *
* *
* {@link OrderItem#getActivityPrice()} * 200 10 80
*
* taobao order.discount_fee
*/ */
private Integer activityPrice; private Integer discountPrice;
/** /**
* *
* *
* {@link OrderItem#getCouponPrice()} * taobao trade.coupon_fee
*/ */
private Integer couponPrice; private Integer couponPrice;
/** /**
* *
* *
* {@link OrderItem#getPointPrice()} * taobao trade.point_fee
*/ */
private Integer pointPrice; private Integer pointPrice;
/**
*
*
* {@link OrderItem#getMemberPrice()}
*/
private Integer memberPrice;
/** /**
* *
*/ */
@ -70,6 +79,8 @@ public class PriceCalculateRespDTO {
* *
* *
* = {@link OrderItem#getPayPrice()} * = {@link OrderItem#getPayPrice()}
* - {@link #couponPrice}
* - {@link #pointPrice}
* + {@link #deliveryPrice} * + {@link #deliveryPrice}
*/ */
private Integer payPrice; private Integer payPrice;
@ -107,44 +118,40 @@ public class PriceCalculateRespDTO {
* *
* *
* ProductSkuDO price * ProductSkuDO price
* taobao order.price
*/ */
private Integer originalUnitPrice; private Integer originalUnitPrice;
/** /**
* *
* *
* * 8 50
*/
private Integer activityPrice;
/**
*
* *
* SKU {@link #payPrice} * taobao order.discount_fee
*/ */
private Integer couponPrice; private Integer discountPrice;
/** /**
* *
*/
private Integer pointPrice;
/**
*
*/
private Integer memberPrice;
/**
*
* *
* = {@link #originalPrice} * = {@link #originalPrice}
* - {@link #activityPrice} * - {@link #discountPrice}
* - {@link #couponPrice} *
* - {@link #pointPrice} * taobao order.payment
* - {@link #memberPrice}
*/ */
private Integer payPrice; private Integer payPrice;
/** /**
* *
* {@link Order#discountPrice}{@link Order#couponPrice}
* *
* = {@link #payPrice} / {@link #getCount()} * taobao order.part_mjz_discount
*/ */
private Integer payUnitPrice; private Integer orderPartPrice;
/**
*
*
* taobao divide_order_fee
*/
private Integer orderDividePrice;
} }
@ -179,11 +186,11 @@ public class PriceCalculateRespDTO {
/** /**
* *
*/ */
private Integer totalOriginalPrice; private Integer beforePrice;
/** /**
* *
*/ */
private Integer totalPromotionPrice; private Integer afterPrice;
/** /**
* SKU * SKU
*/ */
@ -218,11 +225,11 @@ public class PriceCalculateRespDTO {
/** /**
* *
*/ */
private Integer totalOriginalPrice; private Integer beforePrice;
/** /**
* *
*/ */
private Integer totalPromotionPrice; private Integer afterPrice;
} }