package com.muchinfo.mtp3pojos.vo.query.order;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "TerOrderQueryResult对象", description = "终止单查询响应")
public class TerOrderQueryResult {

    @ExcelProperty("订单号")
    @ColumnWidth(20)
    @ApiModelProperty(value = "订单号")
    private String opentradeid;

    @ExcelProperty("登录账号")
    @ColumnWidth(20)
    @ApiModelProperty(value = "登录账号")
    private String loginid;

    @ExcelProperty("用户")
    @ColumnWidth(20)
    @ApiModelProperty(value = "用户")
    private String currentname;

    @ExcelProperty("商品/代码")
    @ColumnWidth(20)
    @ApiModelProperty(value = "商品/代码")
    private String goodsfullname;

    @ExcelProperty("订单方向")
    @ColumnWidth(20)
    @ApiModelProperty(value = "订单方向")
    private String buyorselldisplay;

    @ExcelProperty("订单数量")
    @ColumnWidth(20)
    @ApiModelProperty(value = "订单数量")
    private String opennum;

    @ExcelProperty("订单价格")
    @ColumnWidth(20)
    @ApiModelProperty(value = "订单价格")
    private BigDecimal openprice;

    @ExcelProperty("终止数量")
    @ColumnWidth(20)
    @ApiModelProperty(value = "终止数量")
    private String closenum;

    @ExcelProperty("终止价格")
    @ColumnWidth(20)
    @ApiModelProperty(value = "终止价格")
    private BigDecimal closeprice;

    @ExcelProperty("终止盈亏")
    @ColumnWidth(20)
    @ApiModelProperty(value = "终止盈亏")
    private BigDecimal closepl;

    @ExcelProperty("释放占用资金")
    @ColumnWidth(20)
    @ApiModelProperty(value = "释放占用资金")
    private BigDecimal repayeddeposit;

    @ExcelProperty("终止类型")
    @ColumnWidth(20)
    @ApiModelProperty(value = "终止类型")
    private String tradetypedisplay;

    @ExcelProperty("订单时间")
    @ColumnWidth(20)
    @ApiModelProperty(value = "订单时间")
    private Date tradetime;

    @ExcelProperty("终止时间")
    @ColumnWidth(20)
    @ApiModelProperty(value = "终止时间")
    private Date closetime;

    @ExcelProperty("终止单号")
    @ColumnWidth(20)
    @ApiModelProperty(value = "终止单号")
    private String closeid;

    private String goodscode;

    private Integer buyorsell;
}
