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

67 lines
1.2 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;
/**
* 预警指标类型
*/
@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;
}