whycxzp
2021-07-26 8c189b243bfbbacb2ab1ce79f4e1ff22708f125a
src/main/java/com/whyc/pojo/AlarmRule.java
@@ -1,5 +1,6 @@
package com.whyc.pojo;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@@ -10,15 +11,39 @@
@ApiModel
public class AlarmRule {
    @TableId
    private Integer id;
    /**
     * 主要设备:
     *  101-电源,102-主流配电板,103-受势电机,104测功电机
     * 辅助设备:
     *  201-进线屏,205-直流调速柜,206-振动测试系统,207-AFE变频驱动柜,
     *  208-升压变压器,209-油站,210-水站,211-UPS
     * 环境设备:
     *  301-水质监测,302-漏水监测,303-绝缘监测
     */
    @ApiModelProperty("主要设备:\n" +
            " 101-电源,102-主流配电板,103-受势电机,104测功电机\n" +
            "辅助设备:\n" +
            " 201-进线屏,205-直流调速柜,206-振动测试系统,207-AFE变频驱动柜,\n" +
            " 208-升压变压器,209-油站,210-水站,211-UPS\n" +
            "环境设备:\n" +
            " 301-水质监测,302-漏水监测,303-绝缘监测")
    private Integer deviceFlag;
    @ApiModelProperty("设备字段")
    private String field;
    @ApiModelProperty("设备字段")
    private String name;
    @ApiModelProperty("告警名称")
    private String name;
    @ApiModelProperty("故障描述")
    private String description;
    @ApiModelProperty("阈值标识:under对应1,over对应2")
    private Integer thresholdFlag;
    @ApiModelProperty("告警阈值")
    private Float threshold;
    private Float thresholdValue;
    @ApiModelProperty("阈值单位")
    private String unit;
    @ApiModelProperty("告警阈值时间")
    private Integer thresholdDuration;
    @ApiModelProperty("告警级别")
    private Integer level;
    @ApiModelProperty("启用状态")
@@ -56,12 +81,44 @@
        this.description = description;
    }
    public Float getThreshold() {
        return threshold;
    public Integer getDeviceFlag() {
        return deviceFlag;
    }
    public void setThreshold(Float threshold) {
        this.threshold = threshold;
    public void setDeviceFlag(Integer deviceFlag) {
        this.deviceFlag = deviceFlag;
    }
    public Integer getThresholdFlag() {
        return thresholdFlag;
    }
    public void setThresholdFlag(Integer thresholdFlag) {
        this.thresholdFlag = thresholdFlag;
    }
    public Float getThresholdValue() {
        return thresholdValue;
    }
    public void setThresholdValue(Float thresholdValue) {
        this.thresholdValue = thresholdValue;
    }
    public String getUnit() {
        return unit;
    }
    public void setUnit(String unit) {
        this.unit = unit;
    }
    public Integer getThresholdDuration() {
        return thresholdDuration;
    }
    public void setThresholdDuration(Integer thresholdDuration) {
        this.thresholdDuration = thresholdDuration;
    }
    public Integer getLevel() {