zainali5120
2020-07-16 c119feb821bdb1e6ef407f55056173f752c01c32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
package com.xcong.excoin.modules.coin.entity;
 
import java.math.BigDecimal;
 
import com.baomidou.mybatisplus.annotation.TableName;
import com.xcong.excoin.common.system.base.BaseEntity;
 
import lombok.Data;
 
/**
 * 币币订单表
 */
@Data
@TableName("coins_order")
public class OrderCoinsEntity extends BaseEntity{
    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    
    /**
     * 会员ID
     */
    private Long memberId;
    /**
     * 订单编号
     */
    private String orderNo;
    /**
     * 订单类型 1、买入2、卖出
     */
    private Integer orderType;
    public static final Integer ORDERTYPE_BUY = 1;
    public static final Integer ORDERTYPE_SELL = 2;
    
    /**
     * 币种
     */
    private String symbol;
    /**
     * 市场价
     */
    private BigDecimal markPrice;
    /**
     * 委托量
     */
    private BigDecimal entrustCnt;
    /**
     * 委托价
     */
    private BigDecimal entrustPrice;
    /**
     * 成交量
     */
    private BigDecimal dealCnt;
    /**
     * 成交价
     */
    private BigDecimal dealPrice;
    /**
     * 成交金额
     */
    private BigDecimal dealAmount;
    /**
     * 状态 1:委托中2:撤单3:已成交
     */
    private Integer orderStatus;
    public static final Integer ORDERSTATUS_DODING = 1;
    public static final Integer ORDERSTATUS_CANCEL = 2;
    public static final Integer ORDERSTATUS_DONE = 3;
    
    /**
     * 交易类型 1:市价2:限价
     */
    private Integer tradeType;
    public static final Integer TRADETYPE_MARKETPRICE = 1;
    public static final Integer TRADETYPE_FIXEDPRICE = 2;
    
    /**
     * 手续费
     */
    private BigDecimal feeAmount;
    
}