package com.ltgk.crew.domain.dto;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ltgk.common.core.page.BasePage;
import com.ltgk.common.validation.groups.Add;
import com.ltgk.common.validation.groups.Detail;
import com.ltgk.common.validation.groups.GetBoatCrewMessageGroup;
import com.ltgk.common.validation.groups.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

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

/**
 * 船员信息数据传输对象
 *
 * @author Qi ChengBin
 * @date 2024-12-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "船员信息数据传输对象", description = "船员信息数据传输对象")
public class DsBoatCrewDTO extends BasePage {

    @ApiModelProperty(value = "船员档案信息主键")
    @NotNull(message = "船员档案信息主键不可为空", groups = {Update.class, Detail.class})
    private String id;

    @ApiModelProperty(value = "流水号")
    private String waterCode;

    @ApiModelProperty(value = "船员姓名")
    @NotNull(message = "船员姓名不可为空！", groups = {Add.class, Update.class, GetBoatCrewMessageGroup.class})
    private String crewName;

    @ApiModelProperty(value = "船员姓名拼音")
    private String crewNamePy;

    @ApiModelProperty(value = "身份证号")
    @NotNull(message = "身份证号不可为空！", groups = {Add.class, Update.class})
    private String idCardNo;

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

    @ApiModelProperty(value = "性别:1-男;2-女")
    private String sex;

    @ApiModelProperty(value = "电话")
    @NotNull(message = "联系电话不可为空！", groups = {Add.class, Update.class})
    private String phone;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "出生日期")
    private Date birthday;

    @ApiModelProperty(value = "民族")
    private String nation;

    @ApiModelProperty(value = "年龄")
    private Integer age;

    @ApiModelProperty(value = "文化程度")
    private String education;

    @ApiModelProperty(value = "户籍省份")
    private String residenceProvince;

    @ApiModelProperty(value = "户籍城市")
    private String residenceCity;

    @ApiModelProperty(value = "户籍区县")
    private String residenceDistrict;

    @ApiModelProperty(value = "户籍地址")
    private String residence;

    @ApiModelProperty(value = "现住址")
    private String address;

    @ApiModelProperty(value = "证书类型")
    private String certificateType;

    @ApiModelProperty(value = "证书类型名称")
    private String certificateTypeName;

    @ApiModelProperty(value = "类别代码")
    private String categoryCode;

    @ApiModelProperty(value = "类别名称")
    private String categoryName;

    @ApiModelProperty(value = "证书种类代码")
    private String certificateKindCode;

    @ApiModelProperty(value = "证书种类名称")
    private String certificateKindName;

    @ApiModelProperty(value = "船员证书等级")
    private String certificateLevel;

    @ApiModelProperty(value = "船员证书等级名称")
    private String certificateLevelName;

    @ApiModelProperty(value = "证书职务")
    private String certificatePost;

    @ApiModelProperty(value = "证书职务名称")
    private String certificatePostName;

    @ApiModelProperty(value = "适用船舶")
    private String applyBoat;

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

    @ApiModelProperty(value = "船上职务ID")
    private String boatDutyId;

    @ApiModelProperty(value = "船上职务")
    @NotNull(message = "船上职务不可为空！", groups = {Add.class, Update.class})
    private String boatDutyName;

    @ApiModelProperty(value = "签发机关")
    private String certificateAuthority;

    @ApiModelProperty(value = "签发机关名称")
    private String certificateAuthorityName;

    @ApiModelProperty(value = "签发官员姓名")
    private String certificatePeople;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "签发日期")
    private Date certificateIssuedDate;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "截止日期")
    private Date certificateExpiredDate;

    @ApiModelProperty(value = "证书状态:A-无效(待发证) 0-无效(到期) 1-有效 2-无效(换证) 3-无效(注销)")
    private String certificateStatus;

    @ApiModelProperty(value = "证书照片")
    private String certificatePic;

    @ApiModelProperty(value = "档案号码")
    private String archivesCode;

    @ApiModelProperty(value = "多职务标志(其它证书流水号，分号隔开)")
    private String manyPositionsFlag;

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

    @ApiModelProperty(value = "操作时间")
    private String operateTime;

    @ApiModelProperty(value = "紧急联系人")
    private String urgentMan;

    @ApiModelProperty(value = "紧急联系电话")
    private String urgentPhone;

    @ApiModelProperty(value = "当前服务船舶")
    private String boatId;

    @ApiModelProperty(value = "当前服务船舶")
    private String boatName;

    @ApiModelProperty(value = "曾服务船舶")
    private String onceBoat;

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

    @ApiModelProperty(value = "行政区域名称")
    @NotNull(message = "行政区域名称不可为空", groups = {Add.class, Update.class})
    private String areaName;

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

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

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

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

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

