yangys
2024-05-07 1251cce20deab6e388b1e2ff8cdddd2896db162b
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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
package com.qianwen.smartman.modules.dmpLog.vo;
 
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import com.qianwen.smartman.common.constant.DateConstant;
import com.qianwen.smartman.common.enums.WorkstationParamStateEnum;
import com.qianwen.core.tool.utils.DateUtil;
import com.qianwen.smartman.modules.dmpLog.enums.LogTypeEnum;
 
@ApiModel("dmp日志")
public class DmpLogVo {
    private String traceId;
    @ApiModelProperty("类型")
    private Integer type;
    @ApiModelProperty("设备编号")
    private String machineCode;
    @ApiModelProperty("设备名称")
    private String machineName;
    @ApiModelProperty("采集项")
    private String affectedVariable;
    @ApiModelProperty("采集值")
    private String variableValue;
    @ApiModelProperty("状态")
    private Integer status;
    @ApiModelProperty("类型名称")
    private String typeStr;
    @ApiModelProperty("状态名称")
    private String statusStr;
    private Long ts;
 
    public void setTraceId(final String traceId) {
        this.traceId = traceId;
    }
 
    public void setType(final Integer type) {
        this.type = type;
    }
 
    public void setMachineCode(final String machineCode) {
        this.machineCode = machineCode;
    }
 
    public void setMachineName(final String machineName) {
        this.machineName = machineName;
    }
 
    public void setAffectedVariable(final String affectedVariable) {
        this.affectedVariable = affectedVariable;
    }
 
    public void setVariableValue(final String variableValue) {
        this.variableValue = variableValue;
    }
 
    public void setStatus(final Integer status) {
        this.status = status;
    }
 
    public void setTypeStr(final String typeStr) {
        this.typeStr = typeStr;
    }
 
    public void setStatusStr(final String statusStr) {
        this.statusStr = statusStr;
    }
 
    public void setTs(final Long ts) {
        this.ts = ts;
    }
 
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof DmpLogVo) {
            DmpLogVo other = (DmpLogVo) o;
            if (other.canEqual(this)) {
                Object this$type = getType();
                Object other$type = other.getType();
                if (this$type == null) {
                    if (other$type != null) {
                        return false;
                    }
                } else if (!this$type.equals(other$type)) {
                    return false;
                }
                Object this$status = getStatus();
                Object other$status = other.getStatus();
                if (this$status == null) {
                    if (other$status != null) {
                        return false;
                    }
                } else if (!this$status.equals(other$status)) {
                    return false;
                }
                Object this$ts = getTs();
                Object other$ts = other.getTs();
                if (this$ts == null) {
                    if (other$ts != null) {
                        return false;
                    }
                } else if (!this$ts.equals(other$ts)) {
                    return false;
                }
                Object this$traceId = getTraceId();
                Object other$traceId = other.getTraceId();
                if (this$traceId == null) {
                    if (other$traceId != null) {
                        return false;
                    }
                } else if (!this$traceId.equals(other$traceId)) {
                    return false;
                }
                Object this$machineCode = getMachineCode();
                Object other$machineCode = other.getMachineCode();
                if (this$machineCode == null) {
                    if (other$machineCode != null) {
                        return false;
                    }
                } else if (!this$machineCode.equals(other$machineCode)) {
                    return false;
                }
                Object this$machineName = getMachineName();
                Object other$machineName = other.getMachineName();
                if (this$machineName == null) {
                    if (other$machineName != null) {
                        return false;
                    }
                } else if (!this$machineName.equals(other$machineName)) {
                    return false;
                }
                Object this$affectedVariable = getAffectedVariable();
                Object other$affectedVariable = other.getAffectedVariable();
                if (this$affectedVariable == null) {
                    if (other$affectedVariable != null) {
                        return false;
                    }
                } else if (!this$affectedVariable.equals(other$affectedVariable)) {
                    return false;
                }
                Object this$variableValue = getVariableValue();
                Object other$variableValue = other.getVariableValue();
                if (this$variableValue == null) {
                    if (other$variableValue != null) {
                        return false;
                    }
                } else if (!this$variableValue.equals(other$variableValue)) {
                    return false;
                }
                Object this$typeStr = getTypeStr();
                Object other$typeStr = other.getTypeStr();
                if (this$typeStr == null) {
                    if (other$typeStr != null) {
                        return false;
                    }
                } else if (!this$typeStr.equals(other$typeStr)) {
                    return false;
                }
                Object this$statusStr = getStatusStr();
                Object other$statusStr = other.getStatusStr();
                return this$statusStr == null ? other$statusStr == null : this$statusStr.equals(other$statusStr);
            }
            return false;
        }
        return false;
    }
 
    protected boolean canEqual(final Object other) {
        return other instanceof DmpLogVo;
    }
 
    public int hashCode() {
        Object $type = getType();
        int result = (1 * 59) + ($type == null ? 43 : $type.hashCode());
        Object $status = getStatus();
        int result2 = (result * 59) + ($status == null ? 43 : $status.hashCode());
        Object $ts = getTs();
        int result3 = (result2 * 59) + ($ts == null ? 43 : $ts.hashCode());
        Object $traceId = getTraceId();
        int result4 = (result3 * 59) + ($traceId == null ? 43 : $traceId.hashCode());
        Object $machineCode = getMachineCode();
        int result5 = (result4 * 59) + ($machineCode == null ? 43 : $machineCode.hashCode());
        Object $machineName = getMachineName();
        int result6 = (result5 * 59) + ($machineName == null ? 43 : $machineName.hashCode());
        Object $affectedVariable = getAffectedVariable();
        int result7 = (result6 * 59) + ($affectedVariable == null ? 43 : $affectedVariable.hashCode());
        Object $variableValue = getVariableValue();
        int result8 = (result7 * 59) + ($variableValue == null ? 43 : $variableValue.hashCode());
        Object $typeStr = getTypeStr();
        int result9 = (result8 * 59) + ($typeStr == null ? 43 : $typeStr.hashCode());
        Object $statusStr = getStatusStr();
        return (result9 * 59) + ($statusStr == null ? 43 : $statusStr.hashCode());
    }
 
    public String toString() {
        return "DmpLogVo(traceId=" + getTraceId() + ", type=" + getType() + ", machineCode=" + getMachineCode() + ", machineName=" + getMachineName() + ", affectedVariable=" + getAffectedVariable() + ", variableValue=" + getVariableValue() + ", status=" + getStatus() + ", typeStr=" + getTypeStr() + ", statusStr=" + getStatusStr() + ", ts=" + getTs() + ")";
    }
 
    public String getTraceId() {
        return this.traceId;
    }
 
    public Integer getType() {
        return this.type;
    }
 
    public String getMachineCode() {
        return this.machineCode;
    }
 
    public String getMachineName() {
        return this.machineName;
    }
 
    public String getAffectedVariable() {
        return this.affectedVariable;
    }
 
    public String getVariableValue() {
        return this.variableValue;
    }
 
    public Integer getStatus() {
        return this.status;
    }
 
    public String getTypeStr() {
        LogTypeEnum logType;
        if (this.type != null && (logType = LogTypeEnum.getValue(this.type)) != null) {
            return logType.getName();
        }
        return null;
    }
 
    public String getStatusStr() {
        WorkstationParamStateEnum stateEnum;
        if (this.status != null && (stateEnum = WorkstationParamStateEnum.of(this.status)) != null) {
            return stateEnum.getDescription();
        }
        return null;
    }
 
    public String getTs() {
        if (this.ts != null) {
            return DateUtil.format(new Date(this.ts.longValue()), DateConstant.PATTERN_DATE_TIME);
        }
        return null;
    }
}