package com.xcong.excoin.modules.yunding.entity;
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.xcong.excoin.common.entity.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-代理订单
|
*/
|
|
private Integer type;
|
|
/**
|
* 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;
|
|
/**
|
* 购买日期
|
*/
|
|
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
private Date buyTime;
|
|
/**
|
* 生效日期
|
*/
|
|
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
private Date workTime;
|
|
/**
|
* 终止日期
|
*/
|
|
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
private Date endTime;
|
|
@TableField(exist = false)
|
private String account;
|
|
@TableField(exist = false)
|
private String phone;
|
@TableField(exist = false)
|
private String inviteId;
|
@TableField(exist = false)
|
private String name;
|
@TableField(exist = false)
|
private String proUnit;
|
|
|
|
}
|