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

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.muchinfo.mtp3pojos.exportconverter.BuyOrSellConverter;
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;

@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "TradeSumQueryResult对象", description = "商品成交汇总响应")
public class TradeSumQueryResult {

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

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

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

    @ExcelProperty("所属机构")
    @ColumnWidth(20)
    @ApiModelProperty(value = "所属机构")
    private String parentusername;

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

    @ExcelProperty("商品名称")
    @ColumnWidth(20)
    @ApiModelProperty(value = "商品名称")
    private String goodsname;

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

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

    @ExcelProperty("成交价格")
    @ColumnWidth(20)
    @ApiModelProperty(value = "成交价格")
    private BigDecimal tradepriceavg;

    @ExcelProperty("成交金额")
    @ColumnWidth(20)
    @ApiModelProperty(value = "成交金额")
    private BigDecimal tradeamount;

    @ExcelProperty("手续费")
    @ColumnWidth(20)
    @ApiModelProperty(value = "手续费")
    private BigDecimal totalcharge;

    private Integer buyorsell;
}
