package com.njcn.supervision.pojo.vo.device;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.njcn.db.bo.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 终端周期检测表
 * </p>
 *
 * @author xy
 * @since 2024-06-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class CheckDeviceVo extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    private String id;

    @ApiModelProperty("部门")
    private String dept;

    @ApiModelProperty("变电站")
    private String substation;

    @ApiModelProperty("装置id")
    private String deviceId;

    @ApiModelProperty("装置名称")
    private String deviceName;

    @ApiModelProperty("本次定检时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate thisTimeCheck;

    @ApiModelProperty("下次定检时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate nextTimeCheck;

    @ApiModelProperty("逾期天数")
    private Integer overdueDay;

    @ApiModelProperty("装置定检报告路径")
    private String checkFilePath;

    @ApiModelProperty("流程实例的编号")
    private String processInstanceId;

    @ApiModelProperty("历史流程实例")
    private String historyInstanceId;

    @ApiModelProperty("状态 1:审批中；2：审批通过；3：审批不通过；4：已取消")
    private Integer status;

    @ApiModelProperty("描述")
    private String description;
}
