From 1ff9db0d954efc5d0f8eb9e930af030c37fe36cd Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Tue, 02 Mar 2021 18:15:34 +0800
Subject: [PATCH] Merge branch 'whole_new' of http://120.27.238.55:7000/r/exchange into whole_new

---
 src/main/java/com/xcong/excoin/modules/contract/parameter/vo/OrderListVo.java |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/xcong/excoin/modules/contract/parameter/vo/OrderListVo.java b/src/main/java/com/xcong/excoin/modules/contract/parameter/vo/OrderListVo.java
index 5c5c435..235ab79 100644
--- a/src/main/java/com/xcong/excoin/modules/contract/parameter/vo/OrderListVo.java
+++ b/src/main/java/com/xcong/excoin/modules/contract/parameter/vo/OrderListVo.java
@@ -1,5 +1,6 @@
 package com.xcong.excoin.modules.contract.parameter.vo;
 
+import cn.hutool.core.util.StrUtil;
 import com.fasterxml.jackson.annotation.JsonFormat;
 import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
@@ -35,7 +36,7 @@
     @ApiModelProperty("开仓均价")
     private BigDecimal openingPrice;
 
-    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
+    @JsonFormat(pattern = "MM-dd HH:mm:ss", timezone = "GMT+8")
     @ApiModelProperty("开仓价")
     private Date openingTime;
 
@@ -60,7 +61,7 @@
     @ApiModelProperty("平仓手续费")
     private BigDecimal closingFeeAmount;
 
-    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
+    @JsonFormat(pattern = "MM-dd HH:mm:ss", timezone = "GMT+8")
     @ApiModelProperty("平仓时间")
     private Date closingTime;
 
@@ -76,6 +77,13 @@
     @ApiModelProperty(value = "合约类型 1-普通 2-跟单")
     private Integer contractType;
 
+    @ApiModelProperty(value = "订单编号")
+    private String orderNo;
+
+    public String getOrderNo() {
+        return StrUtil.isNotBlank(orderNo) ? orderNo.substring(orderNo.length() - 6) : "";
+    }
+
     public String getOpeningFeeAmount() {
         return openingFeeAmount == null ? "" : openingFeeAmount.setScale(4, BigDecimal.ROUND_DOWN).toPlainString();
     }

--
Gitblit v1.9.1