From 6cdfe1d568d06bc63bb513ce0ef1df6aac3c7c3d Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Sat, 20 Feb 2021 15:32:12 +0800 Subject: [PATCH] fix --- src/main/java/com/xcong/excoin/modules/contract/parameter/vo/HoldOrderListVo.java | 21 +++++++++++++++------ 1 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/xcong/excoin/modules/contract/parameter/vo/HoldOrderListVo.java b/src/main/java/com/xcong/excoin/modules/contract/parameter/vo/HoldOrderListVo.java index 31eff3f..e06bff3 100644 --- a/src/main/java/com/xcong/excoin/modules/contract/parameter/vo/HoldOrderListVo.java +++ b/src/main/java/com/xcong/excoin/modules/contract/parameter/vo/HoldOrderListVo.java @@ -1,5 +1,6 @@ package com.xcong.excoin.modules.contract.parameter.vo; +import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.Api; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -59,18 +60,26 @@ private BigDecimal canReduceMaxBond; @ApiModelProperty(value = "开仓时间") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private Date createTime; - public BigDecimal getOpeningPrice() { - return openingPrice.setScale(4, BigDecimal.ROUND_DOWN); + @ApiModelProperty(value = "交易类型 1-市价 2-限价") + private Integer tradeType; + + public String getOpeningPrice() { + return openingPrice.setScale(4, BigDecimal.ROUND_DOWN).toPlainString(); } - public BigDecimal getBondAmount() { - return bondAmount.setScale(4, BigDecimal.ROUND_DOWN); + public String getBondAmount() { + return bondAmount.setScale(4, BigDecimal.ROUND_DOWN).toPlainString(); } - public BigDecimal getForceClosingPrice() { - return forceClosingPrice.setScale(4, BigDecimal.ROUND_DOWN); + public String getForceClosingPrice() { + return forceClosingPrice.setScale(4, BigDecimal.ROUND_DOWN).toPlainString(); + } + + public String getProfitOrLoss() { + return profitOrLoss.setScale(4, BigDecimal.ROUND_DOWN).toPlainString(); } public BigDecimal getCanAddMaxBond() { -- Gitblit v1.9.1