package com.ltgk.boat.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * <p>
 * 船舶违规记录表
 * </p>
 *
 * @author songzh
 * @since 2022-06-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ds_boat_illegal")
@ApiModel(value = "DsBoatIllegal对象", description = "船舶违规记录表")
public class DsBoatIllegal extends Model<DsBoatIllegal> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @JsonProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "船舶ID")
    @JsonProperty("boatId")
    @TableField("boat_id")
    private String boatId;

    @ApiModelProperty(value = "船名号")
    @JsonProperty("boatName")
    @TableField(value = "boat_name", condition = SqlCondition.LIKE)
    private String boatName;

    @ApiModelProperty(value = "违规类型")
    @JsonProperty("illegalType")
    @TableField("illegal_type")
    private String illegalType;

    @ApiModelProperty(value = "违规扣分")
    @JsonProperty("illegalScore")
    @TableField("illegal_score")
    private Integer illegalScore;

    @ApiModelProperty(value = "违规时间")
    @JsonProperty("illegalTime")
    @TableField("illegal_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date illegalTime;

    @ApiModelProperty(value = "违规情况")
    @JsonProperty("illegalSituationInfo")
    @TableField("illegal_situation_info")
    private String illegalSituationInfo;

    @ApiModelProperty(value = "执法人员")
    @JsonProperty("lawExecutor")
    @TableField("law_executor")
    private String lawExecutor;


    @ApiModelProperty(value = "处理方式（罚款、没收违规工具）")
    @JsonProperty("acceptWay")
    @TableField("accept_way")
    private String acceptWay;

    @ApiModelProperty(value = "处理情况")
    @JsonProperty("acceptInfo")
    @TableField("accept_info")
    private String acceptInfo;

    @ApiModelProperty(value = "处理时间")
    @JsonProperty("acceptTime")
    @TableField("accept_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date acceptTime;


    @ApiModelProperty(value = "附件（图片）")
    @JsonProperty("file")
    @TableField("file")
    private String file;

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

    @ApiModelProperty(value = "创建日期")
    @JsonProperty("createAt")
    @TableField("create_at")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createAt;

    @ApiModelProperty(value = "编辑人")
    @JsonProperty("updateBy")
    @TableField("update_by")
    private String updateBy;

    @ApiModelProperty(value = "编辑日期")
    @JsonProperty("updateAt")
    @TableField("update_at")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateAt;

    @ApiModelProperty(value = "删除标志")
    @JsonProperty("delFlag")
    @TableField("del_flag")
    private Integer delFlag;

    @ApiModelProperty(value = "备注")
    @JsonProperty("remark")
    @TableField("remark")
    private String remark;
    /**
     * 扣分值
     */
    @ApiModelProperty(value = "扣分值", hidden = true)
    @JsonProperty("integralValue")
    @TableField(exist = false)
    private Integer integralValue;

}
