y_ys79
2024-01-05 e5840972b6b17ec03bfc1069a9cacfe0cef189c6
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
package com.qianwen.mdc.domain;
 
import java.io.Serializable;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
 
@TableName("mdc_alarm_prompt")
public class MdcAlarmPrompt implements Serializable {
    /**
     * primary key
     */
    @TableId(type=IdType.AUTO)
    private Long id;
 
    /**
     * machine type id
     */
   // @Column(name = "type_id")
    private Integer typeId;
 
    /**
     * alarm number
     */
    //@Column(name = "alarm_no")
    private String alarmNo;
 
    /**
     * alarm message
     */
    //@Column(name = "alarm_msg")
    private String alarmMsg;
 
    /**
     * content
     */
    private String content;
 
    private static final long serialVersionUID = 1L;
 
    /**
     * 获取primary key
     *
     * @return id - primary key
     */
    public Long getId() {
        return id;
    }
 
    /**
     * 设置primary key
     *
     * @param id primary key
     */
    public void setId(Long id) {
        this.id = id;
    }
 
    /**
     * 获取machine type id
     *
     * @return type_id - machine type id
     */
    public Integer getTypeId() {
        return typeId;
    }
 
    /**
     * 设置machine type id
     *
     * @param typeId machine type id
     */
    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }
 
    /**
     * 获取alarm number
     *
     * @return alarm_no - alarm number
     */
    public String getAlarmNo() {
        return alarmNo;
    }
 
    /**
     * 设置alarm number
     *
     * @param alarmNo alarm number
     */
    public void setAlarmNo(String alarmNo) {
        this.alarmNo = alarmNo;
    }
 
    /**
     * 获取alarm message
     *
     * @return alarm_msg - alarm message
     */
    public String getAlarmMsg() {
        return alarmMsg;
    }
 
    /**
     * 设置alarm message
     *
     * @param alarmMsg alarm message
     */
    public void setAlarmMsg(String alarmMsg) {
        this.alarmMsg = alarmMsg;
    }
 
    /**
     * 获取content
     *
     * @return content - content
     */
    public String getContent() {
        return content;
    }
 
    /**
     * 设置content
     *
     * @param content content
     */
    public void setContent(String content) {
        this.content = content;
    }
 
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", typeId=").append(typeId);
        sb.append(", alarmNo=").append(alarmNo);
        sb.append(", alarmMsg=").append(alarmMsg);
        sb.append(", content=").append(content);
        sb.append("]");
        return sb.toString();
    }
 
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MdcAlarmPrompt other = (MdcAlarmPrompt) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTypeId() == null ? other.getTypeId() == null : this.getTypeId().equals(other.getTypeId()))
            && (this.getAlarmNo() == null ? other.getAlarmNo() == null : this.getAlarmNo().equals(other.getAlarmNo()))
            && (this.getAlarmMsg() == null ? other.getAlarmMsg() == null : this.getAlarmMsg().equals(other.getAlarmMsg()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()));
    }
 
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTypeId() == null) ? 0 : getTypeId().hashCode());
        result = prime * result + ((getAlarmNo() == null) ? 0 : getAlarmNo().hashCode());
        result = prime * result + ((getAlarmMsg() == null) ? 0 : getAlarmMsg().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        return result;
    }
}