package com.ltgk.crew.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ltgk.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 出港船员报备信息对象 ds_crew_out_check
 *
 * @author Qi ChengBin
 * @date 2024-12-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("ds_crew_out_check")
@ApiModel(value = "出港船员报备信息对象", description = "出港船员报备信息表")
public class DsCrewOutCheck extends Model<DsCrewOutCheck> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "出港船员报备信息主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @Excel(name = "出港信息id")
    @ApiModelProperty(value = "出港信息id")
    @TableField(value = "out_port_id")
    private String outPortId;

    @ApiModelProperty(value = "港口ID")
    @TableField(value = "port_id")
    private String portId;

    @ApiModelProperty(value = "港口名称")
    @TableField(value = "port_name")
    private String portName;

    @Excel(name = "船员id")
    @ApiModelProperty(value = "船员id")
    @TableField(value = "crew_id")
    private String crewId;

    @Excel(name = "船员姓名")
    @ApiModelProperty(value = "船员姓名")
    @TableField(value = "crew_name")
    private String crewName;

    @Excel(name = "身份证号")
    @ApiModelProperty(value = "身份证号")
    @TableField(value = "id_card")
    private String idCard;

    @Excel(name = "联系电话")
    @ApiModelProperty(value = "联系电话")
    @TableField(value = "tel")
    private String tel;

    @Excel(name = "证书编号")
    @ApiModelProperty(value = "证书编号")
    @TableField(value = "certificate_number")
    private String certificateNumber;

    @Excel(name = "职位")
    @ApiModelProperty(value = "职位")
    @TableField(value = "position")
    private String position;

    @Excel(name = "家庭住址")
    @ApiModelProperty(value = "家庭住址")
    @TableField(value = "address")
    private String address;

    @ApiModelProperty(value = "预计出港时间")
    @TableField(value = "out_time")
    private Date outTime;

    @ApiModelProperty(value = "实际出港时间")
    @TableField(value = "actual_out_time")
    private Date actualOutTime;

    @Excel(name = "0-未审核；1-通过；2-拒绝")
    @ApiModelProperty(value = "0-未审核；1-通过；2-拒绝")
    @TableField(value = "status")
    private Integer status;

    @Excel(name = "拒绝原因")
    @ApiModelProperty(value = "拒绝原因")
    @TableField(value = "reason")
    private String reason;

    @Excel(name = "身份证图片")
    @ApiModelProperty(value = "身份证图片")
    @TableField(value = "id_card_pic")
    private String idCardPic;

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

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_at")
    private Date createAt;

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

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "编辑时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_at")
    private Date updateAt;

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

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

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

    @ApiModelProperty(value = "出港港口名称")
    @TableField(value = "out_port_name")
    private String outPortName;

    @ApiModelProperty(value = "船员出港检查url地址")
    @TableField(value = "check_url")
    private String checkUrl;
}
