From f5e6133809c553cfd9fb28ee61019927c547c374 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Wed, 08 Dec 2021 15:58:33 +0800 Subject: [PATCH] 20211208 fish --- src/main/java/com/xcong/excoin/modules/coin/entity/OrderCoinsEntity.java | 22 ++++++++++++++++++---- 1 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/xcong/excoin/modules/coin/entity/OrderCoinsEntity.java b/src/main/java/com/xcong/excoin/modules/coin/entity/OrderCoinsEntity.java index a99e77e..f536c5d 100644 --- a/src/main/java/com/xcong/excoin/modules/coin/entity/OrderCoinsEntity.java +++ b/src/main/java/com/xcong/excoin/modules/coin/entity/OrderCoinsEntity.java @@ -1,7 +1,6 @@ package com.xcong.excoin.modules.coin.entity; import java.math.BigDecimal; -import java.util.Date; import com.baomidou.mybatisplus.annotation.TableName; import com.xcong.excoin.common.system.base.BaseEntity; @@ -30,7 +29,10 @@ /** * 订单类型 1、买入2、卖出 */ - private int orderType; + private Integer orderType; + public static final Integer ORDERTYPE_BUY = 1; + public static final Integer ORDERTYPE_SELL = 2; + /** * 币种 */ @@ -54,7 +56,12 @@ /** * 成交价 */ - private Double dealPrice; + private BigDecimal dealPrice; + + /** + * 市价委托时的委托金额 + */ + private BigDecimal entrustAmount; /** * 成交金额 */ @@ -63,13 +70,20 @@ * 状态 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 String feeAmount; + private BigDecimal feeAmount; } -- Gitblit v1.9.1