package com.ltgk.catches.domain.dto;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ltgk.common.core.page.BasePage;
import com.ltgk.common.validation.groups.Detail;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 水产交易记录数据传输对象
 *
 * @author Qi ChengBin
 * @date 2025-01-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tp_aquatic_product_deal")
@ApiModel(value = "水产交易记录数据传输对象", description = "水产交易记录数据传输对象")
public class TpAquaticProductDealReq extends BasePage {

    @ApiModelProperty(value = "水产交易记录主键")
    @NotNull(message = "请输入要删除的水产交易记录ID", groups = {Detail.class})
    private String id;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "交易时间")
    private Date dealTime;

    @ApiModelProperty(value = "交易地点")
    private String dealLocation;

    @ApiModelProperty(value = "交易金额")
    private BigDecimal dealSum;

    @ApiModelProperty(value = "交易数量")
    private BigDecimal dealNum;

    @ApiModelProperty(value = "交易单价")
    private BigDecimal dealUnit;

    @ApiModelProperty(value = "卖家")
    private String seller;

    @ApiModelProperty(value = "卖家联系方式")
    private String sellerTel;

    @ApiModelProperty(value = "买家")
    private String buyer;

    @ApiModelProperty(value = "买家联系方式")
    private String buyerTel;

    @ApiModelProperty(value = "产品名称")
    private String productName;

    @ApiModelProperty(value = "产品规格")
    private String productType;

    @TableLogic(delval = "1", value = "0")
    @ApiModelProperty(value = "删除标志: 0-未删除, 1-已删除")
    private Integer delFlag;

    @ApiModelProperty(value = "行政区域编码")
    private String areaCode;

    @ApiModelProperty(value = "行政区域名称")
    private String areaName;

    @ApiModelProperty(value = "创建者")
    private String createBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private Date createAt;

    @ApiModelProperty(value = "更新者")
    private String updateBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间")
    private Date updateAt;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "开始时间")
    private String beginTime;

    @ApiModelProperty(value = "结束时间")
    private String endTime;
}
