lxw
2023-05-25 f3c27fb78447449a950ba73c5e72ceda64ad8a12
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
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 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;
 
@Data
@ApiModel(value="Battalarm实时告警对象", description="")
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName(schema = "db_alarm",value = "tb_battalarm_data")
public class BattalarmData implements Serializable {
    private static final long serialVersionUID = 1L;
 
    @TableId(value = "num", type = IdType.AUTO)
    private Long num;
 
    @TableField("BattGroupId")
    private Integer battGroupId;
 
    @TableField("MonNum")
    private Integer monNum;
 
    @ApiModelProperty(value = "记录id")
    @TableField("Record_Id")
    private Long recordId;
 
    @TableField("alm_id")
    @ApiModelProperty(value = "告警id")
    private Integer almId;
 
    @TableField("alm_signal_id")
    @ApiModelProperty(value = "奇数为上限警告,偶数为下限警告")
    private Integer almSignalId;
 
    @TableField(exist = false)
    @ApiModelProperty(value = "almSignalId对应的告警名称")
    private String almSignalIdName;
 
    @TableField("alm_level")
    @ApiModelProperty(value = "等级")
    private Integer almLevel;
 
    @TableField(exist = false)
    @ApiModelProperty(value = "almLevel对应的等级名称")
    private String almLevelName;
 
    @TableField("alm_start_time")
    @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;
 
    @TableField("alm_end_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date almEndTime;
 
    @TableField("alm_value")
    @ApiModelProperty(value = "警报值")
    private Float almValue;
 
    @TableField("alm_is_confirmed")
    @ApiModelProperty(value = "是否被确定")
    private int almIsConfirmed;
 
    @TableField("alm_confirmed_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "确定时间")
    private Date almConfirmedTime;
 
    @TableField("alm_cleared_type")
    @ApiModelProperty(value = "警报类型")
    private Integer almClearedType;
 
 
    @ApiModelProperty(value = "用户id")
    @TableField("usr_Id")
    private Integer usrId;
    @TableField(exist = false)
    private int msgSended;
 
    private Integer workFlag;
 
    private Integer msgFlag;
 
    @TableField(exist = false)
    private String alarmType;
 
    @TableField(exist = false)
    private String alarmName;
    @TableField(exist = false)
    private String stationName;
    @TableField(exist = false)
    private String stationName3;
    @TableField(exist = false)
    @ApiModelProperty("用户记录时间")
    private Date recordTime;
 
    @TableField(exist = false)
    private String battgroupname;
 
}