| package com.xcong.excoin.modules.otc.entity; | 
|   | 
| import com.baomidou.mybatisplus.annotation.TableField; | 
| import com.baomidou.mybatisplus.annotation.TableName; | 
| import com.xcong.excoin.common.entity.BaseEntity; | 
| import lombok.Data; | 
|   | 
| import java.math.BigDecimal; | 
| import java.util.Date; | 
|   | 
| //交易订单 | 
| @Data | 
| @TableName("otc_order") | 
| public class OtcOrderEntity extends BaseEntity { | 
|   | 
|     //会员ID | 
|     private long memberId; | 
|   | 
|     //订单编号 | 
|     private String orderNo; | 
|   | 
|     //单价 | 
|     private BigDecimal unitPrice; | 
|   | 
|     //交易数量 | 
|     private BigDecimal coinAmount; | 
|   | 
|     //交易总额 | 
|     private BigDecimal totalAmount; | 
|   | 
|     //订单状态 1-已提交未付款2-已付款3-已完成4-已取消 | 
|     private Integer status; | 
|     public static final Integer STATUS_ONE = 1; | 
|     public static final Integer STATUS_TWO = 2; | 
|     public static final Integer STATUS_THREE = 3; | 
|     public static final Integer STATUS_FOUR = 4; | 
|   | 
|     //委托单类型 B-买S-卖 | 
|     private String orderType; | 
|     public static final String ORDERTYPE_B = "B"; | 
|     public static final String ORDERTYPE_S = "S"; | 
|   | 
|     //付款时间 | 
|     private Date payTime; | 
|   | 
|     //完成时间 | 
|     private Date finishTime; | 
|   | 
|     //委托单ID | 
|     private long entrustOrderId; | 
|   | 
|     //市商ID | 
|     private long mbId; | 
|   | 
|     //支付市商ID | 
|     private long payMbId; | 
|   | 
|     //付款人姓名 | 
|     private String payName; | 
|   | 
|     @TableField(exist = false) | 
|     private String account; | 
|   | 
|     @TableField(exist = false) | 
|     private String phone; | 
|   | 
|     @TableField(exist = false) | 
|     private String inviteId; | 
|   | 
|     @TableField(exist = false) | 
|     private String realName; | 
|   | 
|     @TableField(exist = false) | 
|     private String nickname; | 
|   | 
|   | 
| } |