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.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;

/**
 * <p>
 * 船员证书查询对象
 * </p>
 *
 * @author songzh
 * @since 2022-06-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "船员证书查询对象", description = "船员证书查询对象")
public class DsCrewCredentialDTO extends BasePage {

    @ApiModelProperty(value = "船员证书主键")
    @NotNull(message = "船员证书主键不能为空！", groups = {Update.class, Detail.class})
    private String id;

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

    @ApiModelProperty(value = "船员ID")
    @NotNull(message = "船员主键不能为空！", groups = {Add.class, Update.class})
    private String crewId;

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

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

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "证书类型")
    @NotNull(message = "证书类型不能为空！", groups = {Add.class, Update.class})
    private String certificateType;

    @ApiModelProperty(value = "证书类型名称")
    @NotNull(message = "证书类型名称不能为空！", groups = {Add.class, Update.class})
    private String certificateTypeName;

    @ApiModelProperty(value = "类别代码")
    @NotNull(message = "类别代码不能为空！", groups = {Add.class, Update.class})
    private String categoryCode;

    @ApiModelProperty(value = "类别名称")
    @NotNull(message = "类别名称不能为空！", groups = {Add.class, Update.class})
    private String categoryName;

    @ApiModelProperty(value = "证书种类代码")
    @NotNull(message = "证书种类代码不能为空", groups = {Add.class, Update.class})
    private String certificateKindCode;

    @ApiModelProperty(value = "证书种类名称")
    @NotNull(message = "证书种类名称不能为空", groups = {Add.class, Update.class})
    private String certificateKindName;

    @ApiModelProperty(value = "船员证书等级")
    @NotNull(message = "证书等级不能为空！", groups = {Add.class, Update.class})
    private String certificateLevel;

    @ApiModelProperty(value = "船员证书等级名称")
    @NotNull(message = "证书等级名称不能为空！", groups = {Add.class, Update.class})
    private String certificateLevelName;

    @ApiModelProperty(value = "证书职务")
    @NotNull(message = "证书职务不能为空！", groups = {Add.class, Update.class})
    private String certificatePost;

    @ApiModelProperty(value = "证书职务名称")
    @NotNull(message = "证书职务名称不能为空！", groups = {Add.class, Update.class})
    private String certificatePostName;

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

    @ApiModelProperty(value = "船员证书号码/证书编号")
    @NotNull(message = "证书编号不能为空！", groups = {Add.class, Update.class})
    private String certificateCode;

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

    @ApiModelProperty(value = "签发机关")
    @NotNull(message = "签发机关不能为空！", groups = {Add.class, Update.class})
    private String certificateAuthority;

    @ApiModelProperty(value = "签发机关名称")
    @NotNull(message = "签发机关名称不能为空！", groups = {Add.class, Update.class})
    private String certificateAuthorityName;

    @ApiModelProperty(value = "签发官员姓名")
    @NotNull(message = "签发官员姓名不能为空！", groups = {Add.class, Update.class})
    private String certificatePeople;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "签发日期")
    @NotNull(message = "签发日期不能为空！", groups = {Add.class, Update.class})
    private java.sql.Date certificateIssuedDate;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "发证日期")
    private java.sql.Date certificateAwardedDate;

    @ApiModelProperty(value = "截止日期")
    @NotNull(message = "截至日期不能为空！", groups = {Add.class, Update.class})
    private String certificateExpiredDate;

    @ApiModelProperty(value = "证书状态:A-无效(待发证) 0-无效(到期) 1-有效 2-无效(换证) 3-无效(注销)")
    @NotNull(message = "证书状态不能为空！", groups = {Add.class, Update.class})
    private String certificateStatus;

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

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

    @ApiModelProperty(value = "时间戳")
    private String timestamp;

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

    @ApiModelProperty(value = "证书文件")
    private String file;

    @ApiModelProperty(value = "行政区域编码")
//    @NotNull(message = "行政区域编码不能为空！", groups = {Add.class, Update.class})
    private String areaCode;

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

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

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

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

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

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

}
