package com.ltgk.catches.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

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

/**
 * 限额捕捞 整体限额配置
 */
@ApiModel(description = "限额捕捞 整体限额配置")
@Data
@TableName(value = "tc_fish_limit_set")
public class TcFishLimitSet implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;

    @TableField(value = "title", condition = SqlCondition.LIKE)
    @ApiModelProperty(value = "标题")
    private String title;

    @TableField(value = "aquatic_dict_id")
    @ApiModelProperty(value = "水产字典表id")
    private String aquaticDictId;

    @TableField(value = "aquatic_dict_code", condition = SqlCondition.LIKE)
    @ApiModelProperty(value = "水产字典编号")
    private String aquaticDictCode;

    @TableField(value = "aquatic_dict_name", condition = SqlCondition.LIKE)
    @ApiModelProperty(value = "水产字典名称")
    private String aquaticDictName;

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

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

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

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

    @TableField(value = "create_at")
    @ApiModelProperty(value = "创建时间")
    private Date createAt;

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

    @TableField(value = "update_at")
    @ApiModelProperty(value = "更新时间")
    private Date updateAt;

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

    @ApiModelProperty(value = "限额数量 KG")
    @TableField(value = "fish_limit")
    private Double fishLimit;

    @TableField(value = "start_date")
    @ApiModelProperty(value = "限额开始日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startDate;

    @TableField(value = "end_date")
    @ApiModelProperty(value = "限额结束日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;
}