gunshi-project-ss/src/main/java/com/gunshi/project/hsz/model/WarningCondition.java

87 lines
1.7 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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;//该预警规则是否满足条件,默认不满足
}