package com.ltgk.crew.domain.dto;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ltgk.common.annotation.Excel;
import com.ltgk.common.core.page.BasePage;
import com.ltgk.common.validation.groups.Add;
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-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "船员违规记录请求参数对象", description = "船员违规记录请求参数对象")
public class DsCrewIllegalDTO extends BasePage {

    @ApiModelProperty(value = "船员违规记录主键")
    private String id;

    @ApiModelProperty(value = "船员id")
    @NotNull(message = "船员主键信息不能为空！", groups = Add.class)
    private String crewId;

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

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

    @ApiModelProperty(value = "违规类型")
    private String illegalType;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "违规时间")
    private Date illegalTime;

    @ApiModelProperty(value = "违规情况")
    private String illegalSituationInfo;

    @ApiModelProperty(value = "处理情况")
    private String acceptInfo;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "处理时间")
    private Date acceptTime;

    @ApiModelProperty(value = "处理方式")
    private String acceptWay;

    @ApiModelProperty(value = "执法人员")
    private String lawExecutor;

    @ApiModelProperty(value = "附件")
    private String file;

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

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

    @ApiModelProperty(value = "更新者")
    private String updateBy;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间")
    private Date updateAt;

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

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

    @ApiModelProperty(value = "受理状态[番禺项目，表中有字段，实体中没有]")
    private String acceptStatus;

    @ApiModelProperty(value = "受理人[番禺项目，表中有字段，实体中没有]")
    private String acceptPerson;

    @ApiModelProperty(value = "受理人id[番禺项目，表中有字段，实体中没有]")
    private String acceptPersonId;

    @ApiModelProperty(value = "违规原因[番禺项目，表中有字段，实体中没有]")
    private String illegalReason;

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

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

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

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