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
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.core.tool.utils.DateUtil;
import com.qianwen.smartman.modules.dmpLog.enums.LogTypeEnum;
 
@ApiModel("dmp日志详情")
public class DmpLogDetailVO {
    public String traceId;
    @ApiModelProperty("日志类型")
    public Integer type;
    @ApiModelProperty("日志类型名称")
    private String typeStr;
    @ApiModelProperty("采集时间")
    public Long ts;
    @ApiModelProperty("消息内容")
    public String message;
 
    public void setTraceId(final String traceId) {
        this.traceId = traceId;
    }
 
    public void setType(final Integer type) {
        this.type = type;
    }
 
    public void setTypeStr(final String typeStr) {
        this.typeStr = typeStr;
    }
 
    public void setTs(final Long ts) {
        this.ts = ts;
    }
 
    public void setMessage(final String message) {
        this.message = message;
    }
 
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof DmpLogDetailVO) {
            DmpLogDetailVO other = (DmpLogDetailVO) 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$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$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$message = getMessage();
                Object other$message = other.getMessage();
                return this$message == null ? other$message == null : this$message.equals(other$message);
            }
            return false;
        }
        return false;
    }
 
    protected boolean canEqual(final Object other) {
        return other instanceof DmpLogDetailVO;
    }
 
    public int hashCode() {
        Object $type = getType();
        int result = (1 * 59) + ($type == null ? 43 : $type.hashCode());
        Object $ts = getTs();
        int result2 = (result * 59) + ($ts == null ? 43 : $ts.hashCode());
        Object $traceId = getTraceId();
        int result3 = (result2 * 59) + ($traceId == null ? 43 : $traceId.hashCode());
        Object $typeStr = getTypeStr();
        int result4 = (result3 * 59) + ($typeStr == null ? 43 : $typeStr.hashCode());
        Object $message = getMessage();
        return (result4 * 59) + ($message == null ? 43 : $message.hashCode());
    }
 
    public String toString() {
        return "DmpLogDetailVO(traceId=" + getTraceId() + ", type=" + getType() + ", typeStr=" + getTypeStr() + ", ts=" + getTs() + ", message=" + getMessage() + ")";
    }
 
    public String getTraceId() {
        return this.traceId;
    }
 
    public Integer getType() {
        return this.type;
    }
 
    public String getTypeStr() {
        LogTypeEnum logType;
        if (this.type != null && (logType = LogTypeEnum.getValue(this.type)) != null) {
            return logType.getName();
        }
        return null;
    }
 
    public String getMessage() {
        return this.message;
    }
 
    public String getTs() {
        if (this.ts != null) {
            return DateUtil.format(new Date(this.ts.longValue()), DateConstant.PATTERN_DATE_TIME);
        }
        return null;
    }
}