package com.hdkj.lt.bf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@TableName("fhzg_se_voltage_event")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FhzgSeVoltageEvent implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    private Long id;
    private String deviceId;
    private String deviceName;
    private String deviceType;
    private String alarmLevel;
    private String alarmType;
    private String feederId;
    private String feederName;
    private String subsId;
    private String countyId;
    private String countyName;
    private String mvtransId;
    private String consumerId;
    private BigDecimal threshold;
    private LocalDateTime firstOverTime;
    private LocalDateTime triggerTime;
    private BigDecimal triggerValue;
    private BigDecimal voltageRangeMax;
    private BigDecimal voltageRangeMin;
    private Integer overUpperMvtrans;
    private Integer overLowerMvtrans;
    @TableField("`last_value`")
    private BigDecimal lastValue;
    private Integer status;
    private LocalDateTime recoverTime;
    /** 重构方案状态：0未触发 1生成中 2有方案 3无方案 -1调用失败 */
    private Integer reconStatus;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}