package com.njcn.harmonic.pojo.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.github.jeffreyning.mybatisplus.anno.MppMultiId;
import com.njcn.db.bo.BaseEntity;
import lombok.Getter;
import lombok.Setter;

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

/**
 * <p>
 * 监测点每日稳态指标超标天数统计表
 * </p>
 *
 * @author xy
 * @since 2024-06-17
 */
@Getter
@Setter
@TableName("supervision_line_warning")
public class PmsLineWarning extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String id;

    /**
     * 告警时间
     */
    @MppMultiId(value = "alarm_time")
    private LocalDate alarmTime;

    /**
     * 责任部门id
     */
    private String deptId;

    /**
     * 监测点id
     */
    @MppMultiId(value = "line_id")
    private String lineId;

    /**
     * 指标类型(字典id)
     */
    @MppMultiId(value = "target_type")
    private String targetType;

    /**
     * 越限天数
     */
    private Integer overLimitDay;

    /**
     * 是否发送单子（0:未发 1:已发）
     */
    private Integer initiateWarningFlag;

    /**
     * 当前流程(0:无告警 1:预警 2:告警)
     */
    private Integer step;

    /**
     * 预警阈值
     */
    private Integer alertThreshold;

    /**
     * 告警阈值
     */
    private Integer alarmThreshold;

    /**
     * 阈值来源(0:系统生成 1:界面)
     */
    private Integer thresholdResource;

    /**
     * 预告警单id
     */
    private String leafletId;
}
