package com.njcn.process.pojo.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * <p>
 * 告警/预警监测点列表
 * </p>
 *
 * @author lxp
 * @since 2023-03-16
 */
@Data
@TableName("ths_over_run_log")
public class ThsOverRunLog {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @ApiModelProperty(name = "id", value = "主键", required = true)
    private String id;

    /**
     * 监测点ID
     */
    @ApiModelProperty(name = "lineIndex", value = "监测点ID", required = true)
    private String lineIndex;

    /**
     * 名称（变电站_监测点_日期_id）
     */
    @ApiModelProperty(name = "name", value = "名称", required = true)
    private String name;

    /**
     * 技术监督Guid
     */
    @ApiModelProperty(name = "supIndex", value = "技术监督Guid", required = true)
    private String supIndex;

    /**
     * 描述
     */
    @ApiModelProperty(name = "description", value = "描述")
    private String description;

    /**
     * 预/告警单
     */
    @ApiModelProperty(name = "alarmTicket", value = "预/告警单")
    private String alarmTicket;

    @TableField(exist = false)
    private String alarmTicketName;

    /**
     * 反馈单
     */
    @ApiModelProperty(name = "feedback", value = "反馈单")
    private String feedback;

    @TableField(exist = false)
    private String feedbackName;
    /**
     * 测试报告
     */
    @ApiModelProperty(name = "testReport", value = "测试报告")
    private String testReport;

    @TableField(exist = false)
    private String ftestReportName;
    /**
     * 整改通知单
     */
    @ApiModelProperty(name = "reviseNotice", value = "整改通知单")
    private String reviseNotice;

    @TableField(exist = false)
    private String reviseNoticeName;
    /**
     * 整改通知反馈单
     */
    @ApiModelProperty(name = "reviseFeedback", value = "整改通知反馈单")
    private String reviseFeedback;

    @TableField(exist = false)
    private String reviseFeedbackName;
    /**
     * 越限时间（yyyy-MM-dd）
     */
    @ApiModelProperty(name = "updateTime", value = "越限时间", required = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    /**
     * 创建时间
     */
    @ApiModelProperty(name = "createTime", value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @ApiModelProperty(name = "companyName", value = "供电公司")
    @TableField(exist = false)
    private String companyName;
    @ApiModelProperty(name = "lineIndexName", value = "监测点名称")
    @TableField(exist = false)
    private String lineIndexName;
    @ApiModelProperty(name = "fileName", value = "文件名")
    @TableField(exist = false)
    private String fileName;
    @ApiModelProperty(name = "overTime", value = "越限次数")
    private Integer overTime;


}
