yangys
2024-03-29 7d18c733d4c4109f2bc8e5b176cfde74c490a207
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
package com.qianwen.core.datascope.model;
 
import java.io.Serializable;
import com.qianwen.core.datascope.constant.DataScopeConstant;
import com.qianwen.core.datascope.enums.DataScopeEnum;
 
/* loaded from: blade-starter-datascope-9.3.0.1-SNAPSHOT.jar:org/springblade/core/datascope/model/DataScopeModel.class */
public class DataScopeModel implements Serializable {
    private static final long serialVersionUID = 1;
    private Boolean searched;
    private String resourceCode;
    private String scopeColumn;
    private Integer scopeType;
    private String scopeField;
    private String scopeValue;
 
    public void setSearched(final Boolean searched) {
        this.searched = searched;
    }
 
    public void setResourceCode(final String resourceCode) {
        this.resourceCode = resourceCode;
    }
 
    public void setScopeColumn(final String scopeColumn) {
        this.scopeColumn = scopeColumn;
    }
 
    public void setScopeType(final Integer scopeType) {
        this.scopeType = scopeType;
    }
 
    public void setScopeField(final String scopeField) {
        this.scopeField = scopeField;
    }
 
    public void setScopeValue(final String scopeValue) {
        this.scopeValue = scopeValue;
    }
 
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof DataScopeModel) {
            DataScopeModel other = (DataScopeModel) o;
            if (other.canEqual(this)) {
                Object this$searched = getSearched();
                Object other$searched = other.getSearched();
                if (this$searched == null) {
                    if (other$searched != null) {
                        return false;
                    }
                } else if (!this$searched.equals(other$searched)) {
                    return false;
                }
                Object this$scopeType = getScopeType();
                Object other$scopeType = other.getScopeType();
                if (this$scopeType == null) {
                    if (other$scopeType != null) {
                        return false;
                    }
                } else if (!this$scopeType.equals(other$scopeType)) {
                    return false;
                }
                Object this$resourceCode = getResourceCode();
                Object other$resourceCode = other.getResourceCode();
                if (this$resourceCode == null) {
                    if (other$resourceCode != null) {
                        return false;
                    }
                } else if (!this$resourceCode.equals(other$resourceCode)) {
                    return false;
                }
                Object this$scopeColumn = getScopeColumn();
                Object other$scopeColumn = other.getScopeColumn();
                if (this$scopeColumn == null) {
                    if (other$scopeColumn != null) {
                        return false;
                    }
                } else if (!this$scopeColumn.equals(other$scopeColumn)) {
                    return false;
                }
                Object this$scopeField = getScopeField();
                Object other$scopeField = other.getScopeField();
                if (this$scopeField == null) {
                    if (other$scopeField != null) {
                        return false;
                    }
                } else if (!this$scopeField.equals(other$scopeField)) {
                    return false;
                }
                Object this$scopeValue = getScopeValue();
                Object other$scopeValue = other.getScopeValue();
                return this$scopeValue == null ? other$scopeValue == null : this$scopeValue.equals(other$scopeValue);
            }
            return false;
        }
        return false;
    }
 
    protected boolean canEqual(final Object other) {
        return other instanceof DataScopeModel;
    }
 
    public int hashCode() {
        Object $searched = getSearched();
        int result = (1 * 59) + ($searched == null ? 43 : $searched.hashCode());
        Object $scopeType = getScopeType();
        int result2 = (result * 59) + ($scopeType == null ? 43 : $scopeType.hashCode());
        Object $resourceCode = getResourceCode();
        int result3 = (result2 * 59) + ($resourceCode == null ? 43 : $resourceCode.hashCode());
        Object $scopeColumn = getScopeColumn();
        int result4 = (result3 * 59) + ($scopeColumn == null ? 43 : $scopeColumn.hashCode());
        Object $scopeField = getScopeField();
        int result5 = (result4 * 59) + ($scopeField == null ? 43 : $scopeField.hashCode());
        Object $scopeValue = getScopeValue();
        return (result5 * 59) + ($scopeValue == null ? 43 : $scopeValue.hashCode());
    }
 
    public String toString() {
        return "DataScopeModel(searched=" + getSearched() + ", resourceCode=" + getResourceCode() + ", scopeColumn=" + getScopeColumn() + ", scopeType=" + getScopeType() + ", scopeField=" + getScopeField() + ", scopeValue=" + getScopeValue() + ")";
    }
 
    public DataScopeModel() {
        this.searched = Boolean.FALSE;
        this.scopeColumn = DataScopeConstant.DEFAULT_COLUMN;
        this.scopeType = Integer.valueOf(DataScopeEnum.ALL.getType());
    }
 
    public DataScopeModel(Boolean searched) {
        this.searched = Boolean.FALSE;
        this.scopeColumn = DataScopeConstant.DEFAULT_COLUMN;
        this.scopeType = Integer.valueOf(DataScopeEnum.ALL.getType());
        this.searched = searched;
    }
 
    public Boolean getSearched() {
        return this.searched;
    }
 
    public String getResourceCode() {
        return this.resourceCode;
    }
 
    public String getScopeColumn() {
        return this.scopeColumn;
    }
 
    public Integer getScopeType() {
        return this.scopeType;
    }
 
    public String getScopeField() {
        return this.scopeField;
    }
 
    public String getScopeValue() {
        return this.scopeValue;
    }
}