package com.yeshi.fanli.entity.dy;
|
|
import org.springframework.data.annotation.Id;
|
import org.springframework.data.mongodb.core.mapping.Document;
|
|
import java.util.Date;
|
|
/**
|
* @author hxh
|
* @title: DYOrder
|
* @description: 抖音订单
|
* @date 2022/9/30 16:00
|
*/
|
@Document(collection = "dy_order")
|
public class DYOrder {
|
//支付成功
|
public final static String FLOW_POINT_PAY_SUCCESS = "PAY_SUCC";
|
//退款
|
public final static String FLOW_POINT_REFUND = "REFUND";
|
//结算。此状态代表商家确定会结算佣⾦
|
public final static String FLOW_POINT_SETTLE = "SETTLE";
|
//确认收货
|
public final static String FLOW_POINT_CONFIRM = "CONFIRM";
|
|
|
//正常状态
|
public final static int AFTER_SALE_STATUS_NORMAL = 0;
|
//退款
|
public final static int AFTER_SALE_STATUS_REFUND = 2;
|
|
|
/**
|
* order_id : 4984002890650177191
|
* app_id : 5171164
|
* product_id : 3549871967593209780
|
* product_name : 心相印抽纸茶语丝享3层100抽5包家用纸巾面巾纸餐巾纸卫生纸
|
* product_img : https://p9-aio.ecombdimg.com/obj/ecom-shop-material/v1_uudYARcp_71167039980691622430814_a91754ba6c808f9cc7e6a553a8bc3268_sx_306764_www800-800
|
* total_pay_amount : 970
|
* pay_success_time : 2022-09-30 15:47:40
|
* refund_time :
|
* pay_goods_amount : 990
|
* estimated_commission : 0
|
* split_rate : 0
|
* after_sales_status : 1
|
* flow_point : PAY_SUCC
|
* external_info : 12313
|
* settle_time :
|
* confirm_time :
|
* estimated_tech_service_fee : 0
|
*/
|
/**
|
* 订单id
|
**/
|
@Id
|
private String id;
|
|
|
private String order_id;
|
/**
|
* 应⽤id
|
**/
|
private String app_id;
|
/**
|
* 商品id
|
**/
|
private String product_id;
|
/**
|
* 商品名称
|
**/
|
private String product_name;
|
/**
|
* 商品封面
|
**/
|
private String product_img;
|
/**
|
* 总付款⾦额,单位分
|
**/
|
private Integer total_pay_amount;
|
/**
|
* ⽀付成功时间 yyyy-MM-dd HH:mm:ss
|
**/
|
private String pay_success_time;
|
/**
|
* 退款时间 yyyy-MM-dd HH:mm:ss
|
**/
|
private String refund_time;
|
/**
|
* 预估结算⾦额,单位分。如果有⽀付优惠,
|
* pay_goods_amount会略⼤于total_pay_amount
|
**/
|
private Integer pay_goods_amount;
|
/**
|
* 预估佣⾦收⼊,单位分
|
**/
|
private Integer estimated_commission;
|
/**
|
* 推⼴费率,10代表推⼴费率为0.10
|
**/
|
private Integer split_rate;
|
/**
|
* 售后状态,1-空,2-产⽣退款
|
**/
|
private Integer after_sales_status;
|
/**
|
* PAY_SUCC:⽀付完成
|
* REFUND:退款
|
* SETTLE:结算。此状态代表商家确定会结算佣⾦
|
* CONFIRM: 确认收货
|
**/
|
private String flow_point;
|
/**
|
* 开发者在转链时⾃⼰上传的external_inf
|
**/
|
private String external_info;
|
/**
|
* 结算时间
|
**/
|
private String settle_time;
|
/**
|
* 确认收货时间
|
**/
|
private String confirm_time;
|
/**
|
* 预估技术服务费,为pay_goods_amount*0.1。此字段
|
* 当前不准,仅供参考。
|
**/
|
private Integer estimated_tech_service_fee;
|
|
private Date createTime;
|
private Date updateTime;
|
|
public String getOrder_id() {
|
return order_id;
|
}
|
|
public void setOrder_id(String order_id) {
|
this.order_id = order_id;
|
}
|
|
public String getApp_id() {
|
return app_id;
|
}
|
|
public void setApp_id(String app_id) {
|
this.app_id = app_id;
|
}
|
|
public String getProduct_id() {
|
return product_id;
|
}
|
|
public void setProduct_id(String product_id) {
|
this.product_id = product_id;
|
}
|
|
public String getProduct_name() {
|
return product_name;
|
}
|
|
public void setProduct_name(String product_name) {
|
this.product_name = product_name;
|
}
|
|
public String getProduct_img() {
|
return product_img;
|
}
|
|
public void setProduct_img(String product_img) {
|
this.product_img = product_img;
|
}
|
|
public Integer getTotal_pay_amount() {
|
return total_pay_amount;
|
}
|
|
public void setTotal_pay_amount(Integer total_pay_amount) {
|
this.total_pay_amount = total_pay_amount;
|
}
|
|
public String getPay_success_time() {
|
return pay_success_time;
|
}
|
|
public void setPay_success_time(String pay_success_time) {
|
this.pay_success_time = pay_success_time;
|
}
|
|
public String getRefund_time() {
|
return refund_time;
|
}
|
|
public void setRefund_time(String refund_time) {
|
this.refund_time = refund_time;
|
}
|
|
public Integer getPay_goods_amount() {
|
return pay_goods_amount;
|
}
|
|
public void setPay_goods_amount(Integer pay_goods_amount) {
|
this.pay_goods_amount = pay_goods_amount;
|
}
|
|
public Integer getEstimated_commission() {
|
return estimated_commission;
|
}
|
|
public void setEstimated_commission(Integer estimated_commission) {
|
this.estimated_commission = estimated_commission;
|
}
|
|
public Integer getSplit_rate() {
|
return split_rate;
|
}
|
|
public void setSplit_rate(Integer split_rate) {
|
this.split_rate = split_rate;
|
}
|
|
public Integer getAfter_sales_status() {
|
return after_sales_status;
|
}
|
|
public void setAfter_sales_status(Integer after_sales_status) {
|
this.after_sales_status = after_sales_status;
|
}
|
|
public String getFlow_point() {
|
return flow_point;
|
}
|
|
public void setFlow_point(String flow_point) {
|
this.flow_point = flow_point;
|
}
|
|
public String getExternal_info() {
|
return external_info;
|
}
|
|
public void setExternal_info(String external_info) {
|
this.external_info = external_info;
|
}
|
|
public String getSettle_time() {
|
return settle_time;
|
}
|
|
public void setSettle_time(String settle_time) {
|
this.settle_time = settle_time;
|
}
|
|
public String getConfirm_time() {
|
return confirm_time;
|
}
|
|
public void setConfirm_time(String confirm_time) {
|
this.confirm_time = confirm_time;
|
}
|
|
public Integer getEstimated_tech_service_fee() {
|
return estimated_tech_service_fee;
|
}
|
|
public void setEstimated_tech_service_fee(Integer estimated_tech_service_fee) {
|
this.estimated_tech_service_fee = estimated_tech_service_fee;
|
}
|
|
public Date getCreateTime() {
|
return createTime;
|
}
|
|
public void setCreateTime(Date createTime) {
|
this.createTime = createTime;
|
}
|
|
public Date getUpdateTime() {
|
return updateTime;
|
}
|
|
public void setUpdateTime(Date updateTime) {
|
this.updateTime = updateTime;
|
}
|
|
public String getId() {
|
return id;
|
}
|
|
public void setId(String id) {
|
this.id = id;
|
}
|
|
public String toId() {
|
return order_id + "-" + product_id;
|
}
|
}
|