whycxzp
2023-09-09 444cc302d5959d931c48d94ad763acda8d6342b5
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
package com.whyc.pojo;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.whyc.dto.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
 
import java.io.Serializable;
import java.util.Date;
import java.util.List;
 
/**
 * <p>
 * 
 * </p>
 *
 * @author lxw
 * @since 2021-12-10
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName(schema = "db_pwrdev_alarm",value = "tb_pwrdev_alarm")
@ApiModel(value="PwrdevAlarm对象", description="")
public class PwrdevAlarm implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    @TableId(value = "num", type = IdType.AUTO)
    private Long num;
 
    private Long recordId;
 
    @TableField("PowerDeviceId")
    private Long PowerDeviceId;
 
    private Integer almType;
 
    @TableField(exist = false)
    private List<Integer> almTypes;
 
    private Integer almLevel;
 
    @TableField(exist = false)
    private List<Integer> almLevels;
 
    @ApiModelProperty(value = "新增来源,1为设备自发,2为通过告警规则")
    private Integer almSource;
 
    private Integer almIndex;
 
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date almStartTime;
 
    @TableField(exist = false)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date almStartTime1;
 
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date almEndTime;
 
    private Float almValue;
 
    private Integer almIsConfirmed;
 
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date almConfirmedTime;
 
    private Integer almClearedType;
 
    @TableField("usr_Id")
    private Integer usrId;
 
    @TableField(exist = false)
    @ApiModelProperty(value = "故障名称拼接")
    private String alarmName;
 
    @TableField(exist = false)
    @ApiModelProperty(value = "告警类型拼接")
    private String alarmLevels;
    @TableField(exist = false)
    @ApiModelProperty(value = "机房全名")
    private String stationName;
    @TableField(exist = false)
    @ApiModelProperty(value = "机房所在省")
    private String stationName1;
 
    @TableField(exist = false)
    @ApiModelProperty(value = "机房所在市")
    private String stationName2;
    @TableField(exist = false)
    @ApiModelProperty(value = "机房所在区县")
    private String stationName5;
    @TableField(exist = false)
    @ApiModelProperty(value = "机房名称")
    private String stationName3;
    @TableField(exist = false)
    private String stationName4;
    @TableField(exist = false)
    @ApiModelProperty(value = "用户关闭记录时间")
    private Date recordTime;
 
    @TableField(exist = false)
    @ApiModelProperty(value = "机房id")
    private String stationId;
 
    @TableField(exist = false)
    private Page page;
 
 
    @ApiModelProperty(value = "告警重要等级[0:重要;1:紧急]")
    @TableField("alm_severity")
    private Integer almSeverity;
 
}