package com.xcong.excoin.modules.yunding.entity;
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.xcong.excoin.common.system.base.BaseEntity;
|
import lombok.Data;
|
|
import java.math.BigDecimal;
|
import java.util.Date;
|
|
|
//yd_order订单表
|
@Data
|
@TableName("yd_order")
|
public class YdOrderEntity extends BaseEntity {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 会员ID
|
*/
|
|
private Long memberId;
|
|
/**
|
* 产品ID
|
*/
|
|
private Long productId;
|
|
/**
|
* 购买数量
|
*/
|
|
private Integer quantity;
|
/**
|
* 返利状态 1:待返利 2:已返利
|
*/
|
|
private Integer returnState;
|
|
public static final int RETURN_STATE_READY = 1;
|
public static final int RETURN_STATE_DONE = 2;
|
/**
|
* 返利类型 1:USDT 2:XCH
|
*/
|
|
private Integer returnType;
|
|
/**
|
* 总金额
|
*/
|
|
private BigDecimal amount;
|
|
/**
|
* 累计收益
|
*/
|
|
private BigDecimal totalProfit;
|
|
/**
|
* 今日收益
|
*/
|
|
private BigDecimal todayProfit;
|
|
/**
|
* 1:待生效 2:生效中 3:已终止
|
*/
|
|
private Integer state;
|
public static final int ORDER_STATE_READY = 1;
|
public static final int ORDER_STATE_WORK = 2;
|
public static final int ORDER_STATE_END = 3;
|
|
/**
|
* 购买日期
|
*/
|
|
private Date buyTime;
|
|
/**
|
* 生效日期
|
*/
|
|
private Date workTime;
|
|
/**
|
* 终止日期
|
*/
|
|
private Date endTime;
|
|
|
@TableField(exist = false)
|
private YdProductEntity ydProductEntity;
|
|
private Integer type;
|
public static final Integer AGENT_ORDER = 2;
|
public static final Integer PRODUCT_ORDER = 1;
|
|
|
}
|