package com.ltgk.catches.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

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

/**
 * 限额捕捞预警
 */
@ApiModel(description = "限额捕捞预警")
@Data
@TableName(value = "tc_fish_limit_early")
@Accessors(chain = true)
public class TcFishLimitEarly implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @TableField(value = "early_type")
    @ApiModelProperty(value = "预警级别  1:渔船限额预警  2:整体预警  3:整体单一鱼获预警")
    private Integer earlyType;

    @TableField(value = "log_date")
    @ApiModelProperty(value = "预警捕捞日期")
    private Date logDate;

    @TableField(value = "boat_id")
    @ApiModelProperty(value = "预警触发船只id")
    private String boatId;

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

    @TableField(value = "boat_name")
    @ApiModelProperty(value = "预警触发船只名称")
    private String boatName;

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

    @TableField(value = "set_id")
    @ApiModelProperty(value = "预警触发限额设置id")
    private String setId;

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

    @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;

    @TableField(value = "early_weight")
    @ApiModelProperty(value = "预警数量 吨")
    private BigDecimal earlyWeight;

    @TableField(value = "handle_person")
    @ApiModelProperty(value = "预警处理人员")
    private String handlePerson;

    @TableField(value = "handle_phone")
    @ApiModelProperty(value = "预警处理人员手机号")
    private String handlePhone;

    @TableField(value = "handle_date")
    @ApiModelProperty(value = "预警处理时间")
    private Date handleDate;

    @TableField(value = "handle_desc")
    @ApiModelProperty(value = "核实情况")
    private String handleDesc;

    @TableField(value = "handle_result")
    @ApiModelProperty(value = "处理结果")
    private String handleResult;

    @TableField(value = "rationale")
    @ApiModelProperty(value = "原由")
    private String rationale;

    @TableField(value = "be_handle")
    @ApiModelProperty(value = "是否处理 0 - 未处理，1 - 已处理")
    private Integer beHandle;
}