package com.ltgk.port.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.Detail;
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 2025-01-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "渔港设施设备报修管理查询参数对象", description = "渔港设施设备报修管理查询参数对象")
public class PortEquRepairReq extends BasePage {

    @ApiModelProperty(value = "渔港设施设备报修管理主键")
    @NotNull(message = "id 不能为空！", groups = Detail.class)
    private String id;

    @ApiModelProperty(value = "渔港id")
    private String portId;

    @ApiModelProperty(value = "渔港名称")
    private String portName;

    @ApiModelProperty(value = "设备id")
    private String equId;

    @ApiModelProperty(value = "设备编码")
    private String equCode;

    @ApiModelProperty(value = "设备名称")
    private String equName;

    @ApiModelProperty(value = "详细位置")
    private String addr;

    @ApiModelProperty(value = "设备损坏原因")
    private String damageReason;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "设备损坏时间")
    private Date damageTime;

    @ApiModelProperty(value = "提报人id")
    private String reportUserId;

    @ApiModelProperty(value = "提报人名称")
    private String reportUserName;

    @ApiModelProperty(value = "维修人员id")
    private String repairUserId;

    @ApiModelProperty(value = "维修人员名称")
    private String repairUserName;

    @ApiModelProperty(value = "维修情况")
    private String repairSituation;

    @ApiModelProperty(value = "维修进展")
    private String repairProgress;

    @ApiModelProperty(value = "维修结果")
    private String repairResults;

    @ApiModelProperty(value = "确认人id")
    private String confirmUserId;

    @ApiModelProperty(value = "确认人名称")
    private String confirmUserName;

    @ApiModelProperty(value = "状态【0-已提报，1-已维修，2-确认通过，3-确认未通过】")
    private Integer repairState;

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

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

    @ApiModelProperty(value = "行政区域名称")
    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;

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

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

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