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

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.muchinfo.mtp3pojos.exportconverter.BuyOrSellConverter;
import com.muchinfo.mtp3pojos.exportconverter.IsAuthConverter;
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 = "CommissionZCResult对象", description = "委托单导出 -- 斩仓")
public class CommissionZCResult {

    @ExcelProperty("委托单号")
    @ColumnWidth(20)
    @ApiModelProperty(value = "委托单号")
    private String orderId;

    @ExcelProperty("账户")
    @ColumnWidth(35)
    @ApiModelProperty(value = "账户")
    private String accountNameId;

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

    @ExcelProperty(value = "方向", converter = BuyOrSellConverter.class)
    @ColumnWidth(20)
    @ApiModelProperty(value = "方向")
    private Integer buyOrSell;

    @ExcelProperty("斩仓委托价")
    @ColumnWidth(20)
    @ApiModelProperty(value = "斩仓委托价")
    private BigDecimal orderPrice;

    @ExcelProperty("斩仓数量")
    @ColumnWidth(20)
    @ApiModelProperty(value = "斩仓数量")
    private Integer orderQty;

    @ExcelProperty("斩仓金额")
    @ColumnWidth(20)
    @ApiModelProperty(value = "斩仓金额 operatetype == 2")
    private BigDecimal orderAccount;

    @ExcelProperty("斩仓时间")
    @ColumnWidth(20)
    @ApiModelProperty(value = "斩仓时间")
    private Date orderTime;
}
