yangys
2024-04-04 ed4a5236bab800094be4a8378f5098eebe3de6ac
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
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
package com.qianwen.smartman.modules.system.entity;
 
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
 
@ApiModel(value = "BasCodeRuleEntry", description = "编码规则明细")
@TableName("blade_bas_coderule_entry")
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/system/entity/BasCodeRuleEntry.class */
public class BasCodeRuleEntry implements Serializable {
    private static final long serialVersionUID = 1;
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("主键")
    private Long id;
    @ApiModelProperty("编码规则id")
    private Long ruleId;
    @ApiModelProperty("序号")
    private Integer seq;
    @ApiModelProperty("元素类型")
    private Integer elementType;
    @ApiModelProperty("元素来源")
    private String elementSource;
    @ApiModelProperty("来源属性")
    private Integer sourceProperty;
    @ApiModelProperty("长度")
    private Integer length;
    @ApiModelProperty("格式")
    private String format;
    @ApiModelProperty("设置值")
    private String elementValue;
    @ApiModelProperty("起始值")
    private Integer seed;
    @ApiModelProperty("步长")
    private Integer incrementStep;
    @ApiModelProperty("分隔符")
    private String separatorChar;
    @ApiModelProperty("替代符")
    private String reChar;
    @ApiModelProperty("补位符")
    private String addChar;
    @ApiModelProperty("右侧截断")
    private Boolean cutStyle;
    @ApiModelProperty("右侧填充")
    private Boolean addStyle;
    @ApiModelProperty("编码依据")
    private Boolean codeOnlyBy;
    @ApiModelProperty("编码元素")
    private Boolean codeElement;
 
    public void setId(final Long id) {
        this.id = id;
    }
 
    public void setRuleId(final Long ruleId) {
        this.ruleId = ruleId;
    }
 
    public void setSeq(final Integer seq) {
        this.seq = seq;
    }
 
    public void setElementType(final Integer elementType) {
        this.elementType = elementType;
    }
 
    public void setElementSource(final String elementSource) {
        this.elementSource = elementSource;
    }
 
    public void setSourceProperty(final Integer sourceProperty) {
        this.sourceProperty = sourceProperty;
    }
 
    public void setLength(final Integer length) {
        this.length = length;
    }
 
    public void setFormat(final String format) {
        this.format = format;
    }
 
    public void setElementValue(final String elementValue) {
        this.elementValue = elementValue;
    }
 
    public void setSeed(final Integer seed) {
        this.seed = seed;
    }
 
    public void setIncrementStep(final Integer incrementStep) {
        this.incrementStep = incrementStep;
    }
 
    public void setSeparatorChar(final String separatorChar) {
        this.separatorChar = separatorChar;
    }
 
    public void setReChar(final String reChar) {
        this.reChar = reChar;
    }
 
    public void setAddChar(final String addChar) {
        this.addChar = addChar;
    }
 
    public void setCutStyle(final Boolean cutStyle) {
        this.cutStyle = cutStyle;
    }
 
    public void setAddStyle(final Boolean addStyle) {
        this.addStyle = addStyle;
    }
 
    public void setCodeOnlyBy(final Boolean codeOnlyBy) {
        this.codeOnlyBy = codeOnlyBy;
    }
 
    public void setCodeElement(final Boolean codeElement) {
        this.codeElement = codeElement;
    }
 
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof BasCodeRuleEntry) {
            BasCodeRuleEntry other = (BasCodeRuleEntry) o;
            if (other.canEqual(this)) {
                Object this$id = getId();
                Object other$id = other.getId();
                if (this$id == null) {
                    if (other$id != null) {
                        return false;
                    }
                } else if (!this$id.equals(other$id)) {
                    return false;
                }
                Object this$ruleId = getRuleId();
                Object other$ruleId = other.getRuleId();
                if (this$ruleId == null) {
                    if (other$ruleId != null) {
                        return false;
                    }
                } else if (!this$ruleId.equals(other$ruleId)) {
                    return false;
                }
                Object this$seq = getSeq();
                Object other$seq = other.getSeq();
                if (this$seq == null) {
                    if (other$seq != null) {
                        return false;
                    }
                } else if (!this$seq.equals(other$seq)) {
                    return false;
                }
                Object this$elementType = getElementType();
                Object other$elementType = other.getElementType();
                if (this$elementType == null) {
                    if (other$elementType != null) {
                        return false;
                    }
                } else if (!this$elementType.equals(other$elementType)) {
                    return false;
                }
                Object this$sourceProperty = getSourceProperty();
                Object other$sourceProperty = other.getSourceProperty();
                if (this$sourceProperty == null) {
                    if (other$sourceProperty != null) {
                        return false;
                    }
                } else if (!this$sourceProperty.equals(other$sourceProperty)) {
                    return false;
                }
                Object this$length = getLength();
                Object other$length = other.getLength();
                if (this$length == null) {
                    if (other$length != null) {
                        return false;
                    }
                } else if (!this$length.equals(other$length)) {
                    return false;
                }
                Object this$seed = getSeed();
                Object other$seed = other.getSeed();
                if (this$seed == null) {
                    if (other$seed != null) {
                        return false;
                    }
                } else if (!this$seed.equals(other$seed)) {
                    return false;
                }
                Object this$incrementStep = getIncrementStep();
                Object other$incrementStep = other.getIncrementStep();
                if (this$incrementStep == null) {
                    if (other$incrementStep != null) {
                        return false;
                    }
                } else if (!this$incrementStep.equals(other$incrementStep)) {
                    return false;
                }
                Object this$cutStyle = getCutStyle();
                Object other$cutStyle = other.getCutStyle();
                if (this$cutStyle == null) {
                    if (other$cutStyle != null) {
                        return false;
                    }
                } else if (!this$cutStyle.equals(other$cutStyle)) {
                    return false;
                }
                Object this$addStyle = getAddStyle();
                Object other$addStyle = other.getAddStyle();
                if (this$addStyle == null) {
                    if (other$addStyle != null) {
                        return false;
                    }
                } else if (!this$addStyle.equals(other$addStyle)) {
                    return false;
                }
                Object this$codeOnlyBy = getCodeOnlyBy();
                Object other$codeOnlyBy = other.getCodeOnlyBy();
                if (this$codeOnlyBy == null) {
                    if (other$codeOnlyBy != null) {
                        return false;
                    }
                } else if (!this$codeOnlyBy.equals(other$codeOnlyBy)) {
                    return false;
                }
                Object this$codeElement = getCodeElement();
                Object other$codeElement = other.getCodeElement();
                if (this$codeElement == null) {
                    if (other$codeElement != null) {
                        return false;
                    }
                } else if (!this$codeElement.equals(other$codeElement)) {
                    return false;
                }
                Object this$elementSource = getElementSource();
                Object other$elementSource = other.getElementSource();
                if (this$elementSource == null) {
                    if (other$elementSource != null) {
                        return false;
                    }
                } else if (!this$elementSource.equals(other$elementSource)) {
                    return false;
                }
                Object this$format = getFormat();
                Object other$format = other.getFormat();
                if (this$format == null) {
                    if (other$format != null) {
                        return false;
                    }
                } else if (!this$format.equals(other$format)) {
                    return false;
                }
                Object this$elementValue = getElementValue();
                Object other$elementValue = other.getElementValue();
                if (this$elementValue == null) {
                    if (other$elementValue != null) {
                        return false;
                    }
                } else if (!this$elementValue.equals(other$elementValue)) {
                    return false;
                }
                Object this$separatorChar = getSeparatorChar();
                Object other$separatorChar = other.getSeparatorChar();
                if (this$separatorChar == null) {
                    if (other$separatorChar != null) {
                        return false;
                    }
                } else if (!this$separatorChar.equals(other$separatorChar)) {
                    return false;
                }
                Object this$reChar = getReChar();
                Object other$reChar = other.getReChar();
                if (this$reChar == null) {
                    if (other$reChar != null) {
                        return false;
                    }
                } else if (!this$reChar.equals(other$reChar)) {
                    return false;
                }
                Object this$addChar = getAddChar();
                Object other$addChar = other.getAddChar();
                return this$addChar == null ? other$addChar == null : this$addChar.equals(other$addChar);
            }
            return false;
        }
        return false;
    }
 
    protected boolean canEqual(final Object other) {
        return other instanceof BasCodeRuleEntry;
    }
 
    public int hashCode() {
        Object $id = getId();
        int result = (1 * 59) + ($id == null ? 43 : $id.hashCode());
        Object $ruleId = getRuleId();
        int result2 = (result * 59) + ($ruleId == null ? 43 : $ruleId.hashCode());
        Object $seq = getSeq();
        int result3 = (result2 * 59) + ($seq == null ? 43 : $seq.hashCode());
        Object $elementType = getElementType();
        int result4 = (result3 * 59) + ($elementType == null ? 43 : $elementType.hashCode());
        Object $sourceProperty = getSourceProperty();
        int result5 = (result4 * 59) + ($sourceProperty == null ? 43 : $sourceProperty.hashCode());
        Object $length = getLength();
        int result6 = (result5 * 59) + ($length == null ? 43 : $length.hashCode());
        Object $seed = getSeed();
        int result7 = (result6 * 59) + ($seed == null ? 43 : $seed.hashCode());
        Object $incrementStep = getIncrementStep();
        int result8 = (result7 * 59) + ($incrementStep == null ? 43 : $incrementStep.hashCode());
        Object $cutStyle = getCutStyle();
        int result9 = (result8 * 59) + ($cutStyle == null ? 43 : $cutStyle.hashCode());
        Object $addStyle = getAddStyle();
        int result10 = (result9 * 59) + ($addStyle == null ? 43 : $addStyle.hashCode());
        Object $codeOnlyBy = getCodeOnlyBy();
        int result11 = (result10 * 59) + ($codeOnlyBy == null ? 43 : $codeOnlyBy.hashCode());
        Object $codeElement = getCodeElement();
        int result12 = (result11 * 59) + ($codeElement == null ? 43 : $codeElement.hashCode());
        Object $elementSource = getElementSource();
        int result13 = (result12 * 59) + ($elementSource == null ? 43 : $elementSource.hashCode());
        Object $format = getFormat();
        int result14 = (result13 * 59) + ($format == null ? 43 : $format.hashCode());
        Object $elementValue = getElementValue();
        int result15 = (result14 * 59) + ($elementValue == null ? 43 : $elementValue.hashCode());
        Object $separatorChar = getSeparatorChar();
        int result16 = (result15 * 59) + ($separatorChar == null ? 43 : $separatorChar.hashCode());
        Object $reChar = getReChar();
        int result17 = (result16 * 59) + ($reChar == null ? 43 : $reChar.hashCode());
        Object $addChar = getAddChar();
        return (result17 * 59) + ($addChar == null ? 43 : $addChar.hashCode());
    }
 
    public String toString() {
        return "BasCodeRuleEntry(id=" + getId() + ", ruleId=" + getRuleId() + ", seq=" + getSeq() + ", elementType=" + getElementType() + ", elementSource=" + getElementSource() + ", sourceProperty=" + getSourceProperty() + ", length=" + getLength() + ", format=" + getFormat() + ", elementValue=" + getElementValue() + ", seed=" + getSeed() + ", incrementStep=" + getIncrementStep() + ", separatorChar=" + getSeparatorChar() + ", reChar=" + getReChar() + ", addChar=" + getAddChar() + ", cutStyle=" + getCutStyle() + ", addStyle=" + getAddStyle() + ", codeOnlyBy=" + getCodeOnlyBy() + ", codeElement=" + getCodeElement() + ")";
    }
 
    public BasCodeRuleEntry() {
    }
 
    public BasCodeRuleEntry(final Long id, final Long ruleId, final Integer seq, final Integer elementType, final String elementSource, final Integer sourceProperty, final Integer length, final String format, final String elementValue, final Integer seed, final Integer incrementStep, final String separatorChar, final String reChar, final String addChar, final Boolean cutStyle, final Boolean addStyle, final Boolean codeOnlyBy, final Boolean codeElement) {
        this.id = id;
        this.ruleId = ruleId;
        this.seq = seq;
        this.elementType = elementType;
        this.elementSource = elementSource;
        this.sourceProperty = sourceProperty;
        this.length = length;
        this.format = format;
        this.elementValue = elementValue;
        this.seed = seed;
        this.incrementStep = incrementStep;
        this.separatorChar = separatorChar;
        this.reChar = reChar;
        this.addChar = addChar;
        this.cutStyle = cutStyle;
        this.addStyle = addStyle;
        this.codeOnlyBy = codeOnlyBy;
        this.codeElement = codeElement;
    }
 
    public Long getId() {
        return this.id;
    }
 
    public Long getRuleId() {
        return this.ruleId;
    }
 
    public Integer getSeq() {
        return this.seq;
    }
 
    public Integer getElementType() {
        return this.elementType;
    }
 
    public String getElementSource() {
        return this.elementSource;
    }
 
    public Integer getSourceProperty() {
        return this.sourceProperty;
    }
 
    public Integer getLength() {
        return this.length;
    }
 
    public String getFormat() {
        return this.format;
    }
 
    public String getElementValue() {
        return this.elementValue;
    }
 
    public Integer getSeed() {
        return this.seed;
    }
 
    public Integer getIncrementStep() {
        return this.incrementStep;
    }
 
    public String getSeparatorChar() {
        return this.separatorChar;
    }
 
    public String getReChar() {
        return this.reChar;
    }
 
    public String getAddChar() {
        return this.addChar;
    }
 
    public Boolean getCutStyle() {
        return this.cutStyle;
    }
 
    public Boolean getAddStyle() {
        return this.addStyle;
    }
 
    public Boolean getCodeOnlyBy() {
        return this.codeOnlyBy;
    }
 
    public Boolean getCodeElement() {
        return this.codeElement;
    }
}