87 lines
1.7 KiB
Java
87 lines
1.7 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;
|
||
|
||
/**
|
||
* 预警指标类型
|
||
* 实时水位 REAL_WATER_LEVEL
|
||
* 预报洪峰流量 PEAK_FLOW
|
||
* 降雨量 RAINFALL
|
||
* 蓄水量 WATER_STORAGE
|
||
* 预报降雨量 FORECAST_RAINFALL
|
||
*/
|
||
@TableField("indicator_type")
|
||
private String indicatorType;
|
||
|
||
/**
|
||
* 预警类型:FLOOD-洪水预警,DROUGHT-干旱预警
|
||
*/
|
||
@TableField("warning_type")
|
||
private String warningType;
|
||
|
||
/**
|
||
* 测点编码
|
||
*/
|
||
@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;
|
||
|
||
@TableField("warning_level")
|
||
private Integer warningLevel;
|
||
|
||
@TableField("year")
|
||
private String year;
|
||
|
||
@TableField(exist = false)
|
||
private Boolean isEnjoy = false;//该预警规则是否满足条件,默认不满足
|
||
} |