luqingyang
2023-10-24 cb642724c54d7d850aec5e5ee27fcc7186f352d7
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
 
package com.consum.model.po;
 
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.walker.jdbc.BasePo;
 
/**
 * 表名:BASE_GOODS_TEMPLATE *
 * @author genrator
 */
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
public class BaseGoodsTemplate extends BasePo<BaseGoodsTemplate> {
    // 序列化版本号
    private static final long serialVersionUID = 1L;
 
    // 主键
    private Long id = null;
    @JsonIgnore
    protected boolean isset_id = false;
 
    // 属性列表
    private String goodsCode = null;
    @JsonIgnore
    protected boolean isset_goodsCode = false;
 
    private String goodsName = null;
    @JsonIgnore
    protected boolean isset_goodsName = false;
 
    private String classification = null;
    @JsonIgnore
    protected boolean isset_classification = false;
 
    private Integer states = null;
    @JsonIgnore
    protected boolean isset_states = false;
 
    private Long categoryId = null;
    @JsonIgnore
    protected boolean isset_categoryId = false;
 
    private Long fAgencyId = null;
    @JsonIgnore
    protected boolean isset_fAgencyId = false;
 
    private Long sAgencyId = null;
    @JsonIgnore
    protected boolean isset_sAgencyId = false;
 
    private Long tAgencyId = null;
    @JsonIgnore
    protected boolean isset_tAgencyId = false;
 
    private Long parentAgencyId = null;
    @JsonIgnore
    protected boolean isset_parentAgencyId = false;
 
    private Integer agencyLevel = null;
    @JsonIgnore
    protected boolean isset_agencyLevel = false;
 
    private Long agencyId = null;
    @JsonIgnore
    protected boolean isset_agencyId = false;
 
    private String agencyName = null;
    @JsonIgnore
    protected boolean isset_agencyName = false;
 
    private Long createDate = null;
    @JsonIgnore
    protected boolean isset_createDate = false;
 
    private Integer type = null;
    @JsonIgnore
    protected boolean isset_type = false;
 
    /**
     * 默认构造函数
     */
    public BaseGoodsTemplate() {
    }
 
    /**
     * 根据主键构造对象
     */
    public BaseGoodsTemplate(Long id) {
        this.setId(id);
    }
 
    /**
     * 设置主键值
     */
    @Override
    public void setPkValue(Object value) {
        this.setId((Long) value);
    }
 
    public Long getId() {
        return this.id;
    }
 
    public void setId(Long id) {
        this.id = id;
        this.isset_id = true;
    }
 
    @JsonIgnore
    public boolean isEmptyId() {
        return this.id == null;
    }
 
    public String getGoodsCode() {
        return this.goodsCode;
    }
 
    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode;
        this.isset_goodsCode = true;
    }
 
    @JsonIgnore
    public boolean isEmptyGoodsCode() {
        return this.goodsCode == null || this.goodsCode.length() == 0;
    }
 
    public String getGoodsName() {
        return this.goodsName;
    }
 
    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
        this.isset_goodsName = true;
    }
 
    @JsonIgnore
    public boolean isEmptyGoodsName() {
        return this.goodsName == null || this.goodsName.length() == 0;
    }
 
    public String getClassification() {
        return this.classification;
    }
 
    public void setClassification(String classification) {
        this.classification = classification;
        this.isset_classification = true;
    }
 
    @JsonIgnore
    public boolean isEmptyClassification() {
        return this.classification == null || this.classification.length() == 0;
    }
 
    public Integer getStates() {
        return this.states;
    }
 
    public void setStates(Integer states) {
        this.states = states;
        this.isset_states = true;
    }
 
    @JsonIgnore
    public boolean isEmptyStates() {
        return this.states == null;
    }
 
    public Long getCategoryId() {
        return this.categoryId;
    }
 
    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
        this.isset_categoryId = true;
    }
 
    @JsonIgnore
    public boolean isEmptyCategoryId() {
        return this.categoryId == null;
    }
 
    public Long getFAgencyId() {
        return this.fAgencyId;
    }
 
    public void setFAgencyId(Long fAgencyId) {
        this.fAgencyId = fAgencyId;
        this.isset_fAgencyId = true;
    }
 
    @JsonIgnore
    public boolean isEmptyFAgencyId() {
        return this.fAgencyId == null;
    }
 
    public Long getSAgencyId() {
        return this.sAgencyId;
    }
 
    public void setSAgencyId(Long sAgencyId) {
        this.sAgencyId = sAgencyId;
        this.isset_sAgencyId = true;
    }
 
    @JsonIgnore
    public boolean isEmptySAgencyId() {
        return this.sAgencyId == null;
    }
 
    public Long getTAgencyId() {
        return this.tAgencyId;
    }
 
    public void setTAgencyId(Long tAgencyId) {
        this.tAgencyId = tAgencyId;
        this.isset_tAgencyId = true;
    }
 
    @JsonIgnore
    public boolean isEmptyTAgencyId() {
        return this.tAgencyId == null;
    }
 
    public Long getParentAgencyId() {
        return this.parentAgencyId;
    }
 
    public void setParentAgencyId(Long parentAgencyId) {
        this.parentAgencyId = parentAgencyId;
        this.isset_parentAgencyId = true;
    }
 
    @JsonIgnore
    public boolean isEmptyParentAgencyId() {
        return this.parentAgencyId == null;
    }
 
    public Integer getAgencyLevel() {
        return this.agencyLevel;
    }
 
    public void setAgencyLevel(Integer agencyLevel) {
        this.agencyLevel = agencyLevel;
        this.isset_agencyLevel = true;
    }
 
    @JsonIgnore
    public boolean isEmptyAgencyLevel() {
        return this.agencyLevel == null;
    }
 
    public Long getAgencyId() {
        return this.agencyId;
    }
 
    public void setAgencyId(Long agencyId) {
        this.agencyId = agencyId;
        this.isset_agencyId = true;
    }
 
    @JsonIgnore
    public boolean isEmptyAgencyId() {
        return this.agencyId == null;
    }
 
    public String getAgencyName() {
        return this.agencyName;
    }
 
    public void setAgencyName(String agencyName) {
        this.agencyName = agencyName;
        this.isset_agencyName = true;
    }
 
    @JsonIgnore
    public boolean isEmptyAgencyName() {
        return this.agencyName == null || this.agencyName.length() == 0;
    }
 
    public Long getCreateDate() {
        return this.createDate;
    }
 
    public void setCreateDate(Long createDate) {
        this.createDate = createDate;
        this.isset_createDate = true;
    }
 
    @JsonIgnore
    public boolean isEmptyCreateDate() {
        return this.createDate == null;
    }
 
    public Integer getType() {
        return this.type;
    }
 
    public void setType(Integer type) {
        this.type = type;
        this.isset_type = true;
    }
 
    @JsonIgnore
    public boolean isEmptyType() {
        return this.type == null;
    }
 
    /**
     * 重写 toString() 方法
     */
    @Override
    public String toString() {
        return new StringBuilder()
                .append("id=").append(this.id)
                .append("goodsCode=").append(this.goodsCode)
                .append("goodsName=").append(this.goodsName)
                .append("classification=").append(this.classification)
                .append("states=").append(this.states)
                .append("categoryId=").append(this.categoryId)
                .append("fAgencyId=").append(this.fAgencyId)
                .append("sAgencyId=").append(this.sAgencyId)
                .append("tAgencyId=").append(this.tAgencyId)
                .append("parentAgencyId=").append(this.parentAgencyId)
                .append("agencyLevel=").append(this.agencyLevel)
                .append("agencyId=").append(this.agencyId)
                .append("agencyName=").append(this.agencyName)
                .append("createDate=").append(this.createDate)
                .append("type=").append(this.type)
                .toString();
    }
 
    /**
     * 克隆
     */
    public BaseGoodsTemplate $clone() {
        BaseGoodsTemplate base_goods_template = new BaseGoodsTemplate();
 
        // 数据库名称
        //base_goods_template.setDatabaseName_(this.getDatabaseName_());
 
        // 主键
        if (this.isset_id) {
            base_goods_template.setId(this.getId());
        }
        // 普通属性
        if (this.isset_goodsCode) {
            base_goods_template.setGoodsCode(this.getGoodsCode());
        }
        if (this.isset_goodsName) {
            base_goods_template.setGoodsName(this.getGoodsName());
        }
        if (this.isset_classification) {
            base_goods_template.setClassification(this.getClassification());
        }
        if (this.isset_states) {
            base_goods_template.setStates(this.getStates());
        }
        if (this.isset_categoryId) {
            base_goods_template.setCategoryId(this.getCategoryId());
        }
        if (this.isset_fAgencyId) {
            base_goods_template.setFAgencyId(this.getFAgencyId());
        }
        if (this.isset_sAgencyId) {
            base_goods_template.setSAgencyId(this.getSAgencyId());
        }
        if (this.isset_tAgencyId) {
            base_goods_template.setTAgencyId(this.getTAgencyId());
        }
        if (this.isset_parentAgencyId) {
            base_goods_template.setParentAgencyId(this.getParentAgencyId());
        }
        if (this.isset_agencyLevel) {
            base_goods_template.setAgencyLevel(this.getAgencyLevel());
        }
        if (this.isset_agencyId) {
            base_goods_template.setAgencyId(this.getAgencyId());
        }
        if (this.isset_agencyName) {
            base_goods_template.setAgencyName(this.getAgencyName());
        }
        if (this.isset_createDate) {
            base_goods_template.setCreateDate(this.getCreateDate());
        }
        if (this.isset_type) {
            base_goods_template.setType(this.getType());
        }
        return base_goods_template;
    }
}