67 lines
1.2 KiB
Java
67 lines
1.2 KiB
Java
|
|
package com.gunshi.project.hsz.model;
|
|||
|
|
|
|||
|
|
import com.baomidou.mybatisplus.annotation.*;
|
|||
|
|
import lombok.Data;
|
|||
|
|
import java.math.BigDecimal;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 预警规则-预警指标表
|
|||
|
|
*/
|
|||
|
|
@Data
|
|||
|
|
@TableName("warning_condition")
|
|||
|
|
public class WarningCondition {
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 主键ID
|
|||
|
|
*/
|
|||
|
|
@TableId(type = IdType.AUTO)
|
|||
|
|
private Long id;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 规则ID
|
|||
|
|
*/
|
|||
|
|
@TableField("rule_id")
|
|||
|
|
private Long ruleId;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 条件排序字段
|
|||
|
|
*/
|
|||
|
|
@TableField("_order")
|
|||
|
|
private Integer order;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 预警指标类型
|
|||
|
|
*/
|
|||
|
|
@TableField("indicator_type")
|
|||
|
|
private String indicatorType;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 测点编码
|
|||
|
|
*/
|
|||
|
|
@TableField("stcd")
|
|||
|
|
private String stcd;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 比较运算符
|
|||
|
|
*/
|
|||
|
|
@TableField("_operator")
|
|||
|
|
private String operator;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 阈值
|
|||
|
|
*/
|
|||
|
|
@TableField("threshold_value")
|
|||
|
|
private BigDecimal thresholdValue;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 时长/时段(小时)
|
|||
|
|
*/
|
|||
|
|
@TableField("duration_hours")
|
|||
|
|
private Integer durationHours;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 与前一个条件的关系:AND-且,OR-或(最后一个条件为空)
|
|||
|
|
*/
|
|||
|
|
@TableField("relation_type")
|
|||
|
|
private String relationType;
|
|||
|
|
}
|