package com.ltgk.crew.domain.dto;


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 lombok.experimental.Accessors;

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

/**
 * 在渔船进出港审核时新增船员时进行渔船跟船员绑定的数据传输参数
 *
 * @author Qi ChengBin
 * @date 2025/01/03 17:13:54
 */
@Data
@Accessors(chain = true)
@TableName("ds_boat_bind_crew")
@ApiModel(value = "在渔船进出港审核时新增船员时进行渔船跟船员绑定的数据传输参数", description = "在渔船进出港审核时新增船员时进行渔船跟船员绑定的数据传输参数")
public class AddDsCrewCheckAndBindBoatReq implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "船名号1")
    @TableField(value = "boat_name1")
    private String boatName1;

    @ApiModelProperty(value = "船名号2")
    @TableField(value = "boat_name2")
    private String boatName2;

    @ApiModelProperty(value = "渔船所有人电话")
    @TableField(value = "owner_phone")
    private String ownerPhone;

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

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "绑定时间")
    @TableField(value = "bind_time")
    private Date bindTime;

    @ApiModelProperty(value = "船员名")
    @TableField(value = "crew_name", condition = SqlCondition.LIKE)
    private String crewName;

    @ApiModelProperty(value = "身份证号")
    @TableField(value = "crew_idcard")
    private String crewIdcard;

    @ApiModelProperty(value = "船员手机号")
    @TableField(value = "crew_phone")
    private String crewPhone;

    @ApiModelProperty(value = "船员职务")
    @TableField(value = "crew_position")
    private String crewPosition;

    @ApiModelProperty(value = "参保情况")
    @TableField(value = "crew_insured")
    private String crewInsured;

    @ApiModelProperty(value = "船东船长账号")
    @TableField(value = "owner_username")
    private String ownerUsername;

    @ApiModelProperty(value = "是否参保")
    @TableField(value = "insured")
    private String insured;

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

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

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

    @ApiModelProperty(value = "修改者")
    @TableField(value = "update_by")
    private String updateBy;

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