package com.ltgk.catches.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ltgk.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

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

/**
 * @author songzh
 */

/**
 * 水产交易记录导出视图
 *
 * @author Qi ChengBin
 * @date 2025-01-07
 */
@Data
public class TpAquaticProductDealVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Excel(name = "产品名称", sort = 0)
    private String productName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "交易时间", sort = 1, width = 30, height = 20, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date dealTime;

    @ApiModelProperty(name = "交易地点")
    @Excel(name = "交易地点", sort = 2, width = 30, height = 20)
    private String dealLocation;

    @Excel(name = "交易金额（元）", sort = 3, width = 30, height = 20)
    private BigDecimal dealSum;

    @Excel(name = "交易数量（千克）", sort = 4, width = 30, height = 20)
    private BigDecimal dealNum;

    @Excel(name = "交易单价（千克/元）", sort = 5, width = 30, height = 20)
    private BigDecimal dealUnit;

    @Excel(name = "卖家", sort = 6, width = 30, height = 20)
    private String seller;

    @Excel(name = "卖家联系方式", sort = 7, width = 30, height = 20)
    private String sellerTel;

    @Excel(name = "买家", sort = 8, width = 30, height = 20)
    private String buyer;

    @Excel(name = "买家联系方式", sort = 9, width = 30, height = 20)
    private String buyerTel;

    @Excel(name = "备注", sort = 10, width = 30, height = 20)
    private String remark;
}
