package com.xcong.excoin.modules.otc.vo; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.math.BigDecimal; import java.util.List; @Data @ApiModel(value = "MarketBussinessInfoVo", description = "获取市商信息接口返回参数类") public class MarketBussinessInfoVo { @ApiModelProperty(value = "id") private Long id; @ApiModelProperty(value = "会员ID") private Long memberId; @ApiModelProperty(value = "昵称") private String nikename; @ApiModelProperty(value = "审核状态", example = "1-待审核2-审核通过3-审核拒绝") private Integer status; @ApiModelProperty(value = "服务人数") private Integer buyCnt; @ApiModelProperty(value = "总单数") private Integer totalOrderCnt; @ApiModelProperty(value = "完成率") private BigDecimal finishRatio; @ApiModelProperty(value = "平均付款时间") private Integer avgPayTime; @ApiModelProperty(value = "平均放币时间") private Integer avgCoinTime; @ApiModelProperty(value = "卖单") private List sales; @ApiModelProperty(value = "买单") private List buys; public BigDecimal getFinishRatio() { return finishRatio.multiply(BigDecimal.valueOf(100)).setScale(2, BigDecimal.ROUND_DOWN); } }