From 0d3edcd5bef12358829d18adbe6d8e75d96548f0 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Tue, 21 Jul 2020 13:30:31 +0800 Subject: [PATCH] 202020721 代码提交 --- src/main/java/com/xcong/excoin/modules/trademanage/entity/ContractHoldOrderEntity.java | 366 ++++++++++++++++++++++++++------------------------- 1 files changed, 188 insertions(+), 178 deletions(-) diff --git a/src/main/java/com/xcong/excoin/modules/trademanage/entity/ContractHoldOrderEntity.java b/src/main/java/com/xcong/excoin/modules/trademanage/entity/ContractHoldOrderEntity.java index dec05f7..84bed69 100644 --- a/src/main/java/com/xcong/excoin/modules/trademanage/entity/ContractHoldOrderEntity.java +++ b/src/main/java/com/xcong/excoin/modules/trademanage/entity/ContractHoldOrderEntity.java @@ -1,178 +1,188 @@ -package com.xcong.excoin.modules.trademanage.entity; - -import java.math.BigDecimal; - -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableName; -import com.xcong.excoin.common.entity.BaseEntity; - -import lombok.Data; - -/** - * 合约持仓订单表 - * - * @author wzy - * @date 2020-05-27 - **/ -@Data -@TableName("contract_hold_order") -public class ContractHoldOrderEntity extends BaseEntity { - - /** - * - */ - private static final long serialVersionUID = 1L; - /** - * 是否可平仓 1-是 - */ - public static final int ORDER_CAN_CLOSING_Y = 1; - /** - * 是否可平仓 0-否 - */ - public static final int ORDER_CAN_CLOSING_N = 0; - - /** - * 开多 - */ - public static final int OPENING_TYPE_MORE = 1; - - /** - * 开空 - */ - public static final int OPENING_TYPE_LESS = 2; - - /** - * 交易类型 市价 - */ - public static final int TRADE_TYPE_MARK = 1; - - /** - * 交易类型 限价 - */ - public static final int TRADE_TYPE_LIMIT = 2; - - /** - * 会员Id - */ - private Long memberId; - - /** - * 订单编号 - */ - private String orderNo; - - /** - * 仓位类型 1-逐仓 2-全仓 - */ - private int positionType; - - /** - * 交易类型 1-市价 2-限价 - */ - private int tradeType; - - /** - * 币种 - */ - private String symbol; - - /** - * 手数 - */ - private int symbolCnt; - - /** - * 可平张数(仅全仓模式) - */ - private int symbolCntSale; - - /** - * 币种规格 - */ - private BigDecimal symbolSku; - - /** - * 开仓价 - */ - private BigDecimal openingPrice; - - /** - * 开仓类型 1-开多 2-开空 - */ - private int openingType; - - /** - * 开仓手续费 - */ - private BigDecimal openingFeeAmount; - - /** - * 保证金 - */ - private BigDecimal bondAmount; - - /** - * 杠杆倍率 - */ - private int leverRatio; - - /** - * 市场价 - */ - private BigDecimal markPrice; - - /** - * 止损价 - */ - private BigDecimal stopLossPrice; - - /** - * 止盈价 - */ - private BigDecimal stopProfitPrice; - - /** - * 预付款金额 - */ - private BigDecimal prePaymentAmount; - - /** - * 预估强平价 - */ - private BigDecimal forceClosingPrice; - - private int operateNo; - - /** - * 是否可平仓 0-否 1-是 - */ - private int isCanClosing; - - /** - * 批次号 队列平仓时使用,避免重复 - */ - public String batchNo; - - /** - * 手机号(包含国际手机号) - */ - @TableField(exist = false) - private String phone; - /** - * 邮箱 - */ - @TableField(exist = false) - private String email; - @TableField(exist = false) - private String account; - /** - * 邀请码 - */ - @TableField(exist = false) - private String inviteId; - /** - * 系统盈亏 - */ - @TableField(exist = false) - private BigDecimal rewardRatio; -} +package com.xcong.excoin.modules.trademanage.entity; + +import java.math.BigDecimal; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableName; +import com.xcong.excoin.common.entity.BaseEntity; + +import lombok.Data; + +/** + * 合约持仓订单表 + * + * @author wzy + * @date 2020-05-27 + **/ +@Data +@TableName("contract_hold_order") +public class ContractHoldOrderEntity extends BaseEntity { + + /** + * + */ + private static final long serialVersionUID = 1L; + /** + * 是否可平仓 1-是 + */ + public static final int ORDER_CAN_CLOSING_Y = 1; + /** + * 是否可平仓 0-否 + */ + public static final int ORDER_CAN_CLOSING_N = 0; + + /** + * 开多 + */ + public static final int OPENING_TYPE_MORE = 1; + + /** + * 开空 + */ + public static final int OPENING_TYPE_LESS = 2; + + /** + * 交易类型 市价 + */ + public static final int TRADE_TYPE_MARK = 1; + + /** + * 交易类型 限价 + */ + public static final int TRADE_TYPE_LIMIT = 2; + + /** + * 会员Id + */ + private Long memberId; + + /** + * 订单编号 + */ + private String orderNo; + + /** + * 仓位类型 1-逐仓 2-全仓 + */ + private int positionType; + + /** + * 交易类型 1-市价 2-限价 + */ + private int tradeType; + + /** + * 币种 + */ + private String symbol; + + /** + * 手数 + */ + private int symbolCnt; + + /** + * 可平张数(仅全仓模式) + */ + private int symbolCntSale; + + /** + * 币种规格 + */ + private BigDecimal symbolSku; + + /** + * 开仓价 + */ + private BigDecimal openingPrice; + + /** + * 开仓类型 1-开多 2-开空 + */ + private int openingType; + + /** + * 开仓手续费 + */ + private BigDecimal openingFeeAmount; + + /** + * 保证金 + */ + private BigDecimal bondAmount; + + /** + * 杠杆倍率 + */ + private int leverRatio; + + /** + * 市场价 + */ + private BigDecimal markPrice; + + /** + * 止损价 + */ + private BigDecimal stopLossPrice; + + /** + * 止盈价 + */ + private BigDecimal stopProfitPrice; + + /** + * 预付款金额 + */ + private BigDecimal prePaymentAmount; + + /** + * 预估强平价 + */ + private BigDecimal forceClosingPrice; + + private int operateNo; + + /** + * 是否可平仓 0-否 1-是 + */ + private int isCanClosing; + + /** + * 批次号 队列平仓时使用,避免重复 + */ + public String batchNo; + + /** + * 手机号(包含国际手机号) + */ + @TableField(exist = false) + private String phone; + /** + * 邮箱 + */ + @TableField(exist = false) + private String email; + @TableField(exist = false) + private String account; + /** + * 邀请码 + */ + @TableField(exist = false) + private String inviteId; + /** + * 系统盈亏 + */ + @TableField(exist = false) + private BigDecimal rewardRatio; + /** + * 姓名 + */ + @TableField(exist = false) + private String realName; + /** + * 账号类型 + */ + @TableField(exist = false) + private int accountType; +} -- Gitblit v1.9.1