wzy
2020-06-03 c356816bb9969fc5cde71b670461d9ddf7534e8f
src/main/java/com/xcong/excoin/modules/contract/entity/ContractOrderEntity.java
@@ -14,8 +14,45 @@
 * @date 2020-05-27
 **/
@Data
@TableName("contract_order_entity")
@TableName("contract_order")
public class ContractOrderEntity extends BaseEntity {
    /**
     * 交易类型 市价
     */
    public static final int TRADE_TYPE_MARK_PRICE = 1;
    /**
     * 交易类型 限价
     */
    public static final int TRADE_TYPE_LIMIT_PRICE = 2;
    /**
     * 订单类型 撤单
     */
    public static final int ORDER_TYPE_CANCEL = -1;
    /**
     * 订单类型 开多
     */
    public static final int ORDER_TYPE_OPEN_MORE = 1;
    /**
     * 订单类型 开空
     */
    public static final int ORDER_TYPE_OPEN_LESS = 2;
    /**
     * 订单类型 平多
     */
    public static final int ORDER_TYPE_CLOSE_MORE = 3;
    /**
     * 订单类型 平空
     */
    public static final int ORDER_TYPE_CLOSE_LESS = 4;
    /**
     * 会员Id
@@ -30,7 +67,7 @@
    /**
     * 仓位类型 1-逐仓 2-全仓
     */
    private int potionType;
    private int positionType;
    /**
     * 交易类型 1-市价 2-限价
@@ -38,7 +75,7 @@
    private int tradeType;
    /**
     * 订单类型 - 0撤单,1开多,2开空,3平多,4平空,5委托开多,6委托开空,7委托平多,8委托平空,9爆仓平多,10爆仓平空
     * 订单类型 - 0撤单,1开多,2开空,3平多,4平空
     */
    private int orderType;
@@ -65,7 +102,7 @@
    /**
     * 币种规格
     */
    private Long symbolSku;
    private BigDecimal symbolSku;
    /**
     * 平仓价
@@ -83,6 +120,11 @@
    private Date closingTime;
    /**
     * 平仓类型 2平多3平空4爆仓平多5爆仓平空6止盈平多7止盈平空8止损平多9止损平空
     */
    private int closingType;
    /**
     * 杠杆倍率
     */
    private int leverRatio;