whycxzp
2021-07-26 8c189b243bfbbacb2ab1ce79f4e1ff22708f125a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
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;
import org.apache.ibatis.type.Alias;
 
@Alias("AlarmRule")
@TableName(schema = "`db_3.5mw_web`",value ="tb_alarm_rule" )
@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 description;
    @ApiModelProperty("阈值标识:under对应1,over对应2")
    private Integer thresholdFlag;
    @ApiModelProperty("告警阈值")
    private Float thresholdValue;
    @ApiModelProperty("阈值单位")
    private String unit;
    @ApiModelProperty("告警阈值时间")
    private Integer thresholdDuration;
    @ApiModelProperty("告警级别")
    private Integer level;
    @ApiModelProperty("启用状态")
    private Integer status;
 
    public Integer getId() {
        return id;
    }
 
    public void setId(Integer id) {
        this.id = id;
    }
 
    public String getField() {
        return field;
    }
 
    public void setField(String field) {
        this.field = field;
    }
 
    public String getName() {
        return name;
    }
 
    public void setName(String name) {
        this.name = name;
    }
 
    public String getDescription() {
        return description;
    }
 
    public void setDescription(String description) {
        this.description = description;
    }
 
    public Integer getDeviceFlag() {
        return deviceFlag;
    }
 
    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() {
        return level;
    }
 
    public void setLevel(Integer level) {
        this.level = level;
    }
 
    public Integer getStatus() {
        return status;
    }
 
    public void setStatus(Integer status) {
        this.status = status;
    }
}