From 6c2e9ba62c418185361179e7014862c481f34e17 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Wed, 09 Mar 2022 14:22:09 +0800 Subject: [PATCH] conflect merge --- src/main/java/com/xcong/excoin/modules/otc/vo/EntrustListVo.java | 63 +++++++++++++++++++++++++++++++ 1 files changed, 63 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/xcong/excoin/modules/otc/vo/EntrustListVo.java b/src/main/java/com/xcong/excoin/modules/otc/vo/EntrustListVo.java new file mode 100644 index 0000000..153079a --- /dev/null +++ b/src/main/java/com/xcong/excoin/modules/otc/vo/EntrustListVo.java @@ -0,0 +1,63 @@ +package com.xcong.excoin.modules.otc.vo; + + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.math.BigDecimal; + +@Data +@ApiModel(value = "EntrustListVo", description = "委托单列表接口返回参数类") +public class EntrustListVo { + + @ApiModelProperty(value = "订单ID") + private Long id; + + @ApiModelProperty(value = "市商ID") + private Long mbId; + + @ApiModelProperty(value = "单价") + private BigDecimal unitPrice; + + @ApiModelProperty(value = "市商昵称") + private String nickname; + + @ApiModelProperty(value = "数量") + private BigDecimal amount; + + @ApiModelProperty(value = "限额 最小值") + private BigDecimal min; + + @ApiModelProperty(value = "限额 最大值") + private BigDecimal max; + + @ApiModelProperty(value = "订单数量") + private Integer orderCnt; + + @ApiModelProperty(value = "完成率") + private BigDecimal finishRatio; + + @ApiModelProperty(value = "支付方式 1-支付宝 2-微信 3-银行卡") + private String payType; + + public BigDecimal getUnitPrice() { + return unitPrice.setScale(2, BigDecimal.ROUND_DOWN); + } + + public BigDecimal getAmount() { + return amount.setScale(2, BigDecimal.ROUND_DOWN); + } + + public BigDecimal getMin() { + return min.setScale(2, BigDecimal.ROUND_DOWN); + } + + public BigDecimal getMax() { + return max.setScale(2, BigDecimal.ROUND_DOWN); + } + + public BigDecimal getFinishRatio() { + return finishRatio.multiply(BigDecimal.valueOf(100)).setScale(2, BigDecimal.ROUND_DOWN); + } +} -- Gitblit v1.9.1