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

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.ListTypeConverter;
import com.muchinfo.mtp3pojos.exportconverter.WrTradeOrderStatusConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "WarehouseCommissionResult对象", description = "仓单类--委托单查询响应")
public class WarehouseCommissionResult {

    @ExcelProperty("资金账户")
    @ColumnWidth(20)
    @ApiModelProperty(value = "资金账户")
    private Long accountid;

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

    @ExcelProperty("会员或交易商")
    @ColumnWidth(20)
    @ApiModelProperty(value = "会员或交易商")
    private String userid;

    @ExcelProperty("市场")
    @ColumnWidth(20)
    @ApiModelProperty(value = "市场")
    private String marketname;

    @ExcelProperty(value = "委托类型", converter = ListTypeConverter.class)
    @ColumnWidth(20)
    @ApiModelProperty(value = "委托类型")
    private Integer wrtradetype;

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

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

    @ExcelProperty("属性")
    @ColumnWidth(20)
    @ApiModelProperty(value = "属性")
    private String wrfactortypename;

    @ExcelProperty("委托数量")
    @ColumnWidth(20)
    @ApiModelProperty(value = "委托数量 ")
    private String orderqtyname;

    @ExcelProperty("成交数量")
    @ColumnWidth(20)
    @ApiModelProperty(value = "成交数量 ")
    private String tradeqtyname;

    @ExcelProperty(value = "状态", converter = WrTradeOrderStatusConverter.class)
    @ColumnWidth(20)
    @ApiModelProperty(value = "状态 code WRTradeOrderStatus")
    private Integer wrtradeorderstatus;

    @ExcelProperty("有效时间")
    @ColumnWidth(20)
    @ApiModelProperty(value = "有效时间")
    private Date validtime;

    @ExcelProperty("委托时间")
    @ColumnWidth(20)
    @ApiModelProperty(value = "委托时间")
    private Date ordertime;

    @ExcelProperty("交易日")
    @ColumnWidth(20)
    @ApiModelProperty(value = "交易日")
    private String tradedate;

    private Integer ishis;

    private String wrstandardcode;
}
