package com.ltgk.boat.domain.dto;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ltgk.common.core.page.BasePage;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 渔船绑定船员数据传输对象
 *
 * @author Qi ChengBin
 * @date 2024-12-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "渔船绑定船员数据传输对象", description = "渔船绑定船员数据传输对象")
@Accessors(chain = true)
public class DsBoatBindCrewDTO extends BasePage {


    @ApiModelProperty(value = "渔船绑定船员主键")
    private String id;

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

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

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

    @ApiModelProperty(value = "船员id")
    @NotNull(message = "船员主键不能为空！")
    private String crewId;

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

    @ApiModelProperty(value = "船员名")
    private String crewName;

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

    @ApiModelProperty(value = "船员证号")
    private String certificateCode;

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

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

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

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

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

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

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

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

    @ApiModelProperty(value = "创建时间")
    private String updateBy;

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

    @ApiModelProperty(value = "开始时间")
    private String startTime;

    @ApiModelProperty(value = "结束时间")
    private String endTime;

    @ApiModelProperty(value = "船名")
    private String boatName;

    @ApiModelProperty(value = "船员 json 字符串")
    private String crewJson;

    @ApiModelProperty(value = "船员劳动合同 json 字符串")
    private String laborcontractJson;
}
