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 org.springframework.format.annotation.DateTimeFormat;

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

/**
 * 船员培训记录查询参数
 *
 * @author Qi ChengBin
 * @date 2024/12/10 15:42:26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "船员培训记录查询参数对象")
public class DsCrewTrainRecordDTO extends BasePage {
    @ApiModelProperty(value = "主键")
    @NotNull(message = "船员培训记录主键不能为空！", groups = {Update.class, Detail.class})
    private String id;

    @ApiModelProperty(value = "培训课程ID")
    @NotNull(message = "培训课程ID不能为空！", groups = {Update.class, Add.class})
    private String trainId;

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

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

    @ApiModelProperty(value = "联系方式")
    private String crewPhone;

    @ApiModelProperty(value = "得分")
    private Integer scores;

    @ApiModelProperty(value = "完成情况：0未通过，1已通过")
    private String trainSituation;

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

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

    @ApiModelProperty(value = "编辑人")
    private String updateBy;

    @ApiModelProperty(value = "编辑日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateAt;

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

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

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

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

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

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