shikeyin
2024-01-11 65da8373531677b1c37a98f53eaa30c892f35e5a
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
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
 
package com.ishop.model.po;
 
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.walker.jdbc.BasePo;
 
/**
 * 表名:EB_COUPON *
 * @author genrator
 */
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
public class EbCoupon extends BasePo<EbCoupon> {
    // 序列化版本号
    private static final long serialVersionUID = 1L;
 
    /**
     * 用于兼容老写法
     */
    @JsonIgnore
    public static final EbCoupon ROW_MAPPER = new EbCoupon();
 
    // 主键
    private Integer id = null;
    @JsonIgnore
    protected boolean isset_id = false;
 
    // 属性列表
    private Integer merId = null;
    @JsonIgnore
    protected boolean isset_merId = false;
 
    private String name = null;
    @JsonIgnore
    protected boolean isset_name = false;
 
    private Integer publisher = null;
    @JsonIgnore
    protected boolean isset_publisher = false;
 
    private Integer category = null;
    @JsonIgnore
    protected boolean isset_category = false;
 
    private Integer receiveType = null;
    @JsonIgnore
    protected boolean isset_receiveType = false;
 
    private Integer couponType = null;
    @JsonIgnore
    protected boolean isset_couponType = false;
 
    private Long money = null;
    @JsonIgnore
    protected boolean isset_money = false;
 
    private Integer discount = null;
    @JsonIgnore
    protected boolean isset_discount = false;
 
    private Long minPrice = null;
    @JsonIgnore
    protected boolean isset_minPrice = false;
 
    private Integer isLimited = null;
    @JsonIgnore
    protected boolean isset_isLimited = false;
 
    private Integer total = null;
    @JsonIgnore
    protected boolean isset_total = false;
 
    private Integer lastTotal = null;
    @JsonIgnore
    protected boolean isset_lastTotal = false;
 
    private Integer isTimeReceive = null;
    @JsonIgnore
    protected boolean isset_isTimeReceive = false;
 
    private Long receiveStartTime = null;
    @JsonIgnore
    protected boolean isset_receiveStartTime = false;
 
    private Long receiveEndTime = null;
    @JsonIgnore
    protected boolean isset_receiveEndTime = false;
 
    private Integer isFixedTime = null;
    @JsonIgnore
    protected boolean isset_isFixedTime = false;
 
    private Long useStartTime = null;
    @JsonIgnore
    protected boolean isset_useStartTime = false;
 
    private Long useEndTime = null;
    @JsonIgnore
    protected boolean isset_useEndTime = false;
 
    private Integer day = null;
    @JsonIgnore
    protected boolean isset_day = false;
 
    private Integer sort = null;
    @JsonIgnore
    protected boolean isset_sort = false;
 
    private Integer status = null;
    @JsonIgnore
    protected boolean isset_status = false;
 
    private Integer isDel = null;
    @JsonIgnore
    protected boolean isset_isDel = false;
 
    private Long createTime = null;
    @JsonIgnore
    protected boolean isset_createTime = false;
 
    private Long updateTime = null;
    @JsonIgnore
    protected boolean isset_updateTime = false;
 
    /**
     * 默认构造函数
     */
    public EbCoupon() {
    }
 
    /**
     * 根据主键构造对象
     */
    public EbCoupon(Integer id) {
        this.setId(id);
    }
 
    /**
     * 设置主键值
     */
    @Override
    public void setPkValue(Object value) {
        this.setId((Integer) value);
    }
 
    public Integer getId() {
        return this.id;
    }
 
    public void setId(Integer id) {
        this.id = id;
        this.isset_id = true;
    }
 
    @JsonIgnore
    public boolean isEmptyId() {
        return this.id == null;
    }
 
    public Integer getMerId() {
        return this.merId;
    }
 
    public void setMerId(Integer merId) {
        this.merId = merId;
        this.isset_merId = true;
    }
 
    @JsonIgnore
    public boolean isEmptyMerId() {
        return this.merId == null;
    }
 
    public String getName() {
        return this.name;
    }
 
    public void setName(String name) {
        this.name = name;
        this.isset_name = true;
    }
 
    @JsonIgnore
    public boolean isEmptyName() {
        return this.name == null || this.name.length() == 0;
    }
 
    public Integer getPublisher() {
        return this.publisher;
    }
 
    public void setPublisher(Integer publisher) {
        this.publisher = publisher;
        this.isset_publisher = true;
    }
 
    @JsonIgnore
    public boolean isEmptyPublisher() {
        return this.publisher == null;
    }
 
    public Integer getCategory() {
        return this.category;
    }
 
    public void setCategory(Integer category) {
        this.category = category;
        this.isset_category = true;
    }
 
    @JsonIgnore
    public boolean isEmptyCategory() {
        return this.category == null;
    }
 
    public Integer getReceiveType() {
        return this.receiveType;
    }
 
    public void setReceiveType(Integer receiveType) {
        this.receiveType = receiveType;
        this.isset_receiveType = true;
    }
 
    @JsonIgnore
    public boolean isEmptyReceiveType() {
        return this.receiveType == null;
    }
 
    public Integer getCouponType() {
        return this.couponType;
    }
 
    public void setCouponType(Integer couponType) {
        this.couponType = couponType;
        this.isset_couponType = true;
    }
 
    @JsonIgnore
    public boolean isEmptyCouponType() {
        return this.couponType == null;
    }
 
    public Long getMoney() {
        return this.money;
    }
 
    public void setMoney(Long money) {
        this.money = money;
        this.isset_money = true;
    }
 
    @JsonIgnore
    public boolean isEmptyMoney() {
        return this.money == null;
    }
 
    public Integer getDiscount() {
        return this.discount;
    }
 
    public void setDiscount(Integer discount) {
        this.discount = discount;
        this.isset_discount = true;
    }
 
    @JsonIgnore
    public boolean isEmptyDiscount() {
        return this.discount == null;
    }
 
    public Long getMinPrice() {
        return this.minPrice;
    }
 
    public void setMinPrice(Long minPrice) {
        this.minPrice = minPrice;
        this.isset_minPrice = true;
    }
 
    @JsonIgnore
    public boolean isEmptyMinPrice() {
        return this.minPrice == null;
    }
 
    public Integer getIsLimited() {
        return this.isLimited;
    }
 
    public void setIsLimited(Integer isLimited) {
        this.isLimited = isLimited;
        this.isset_isLimited = true;
    }
 
    @JsonIgnore
    public boolean isEmptyIsLimited() {
        return this.isLimited == null;
    }
 
    public Integer getTotal() {
        return this.total;
    }
 
    public void setTotal(Integer total) {
        this.total = total;
        this.isset_total = true;
    }
 
    @JsonIgnore
    public boolean isEmptyTotal() {
        return this.total == null;
    }
 
    public Integer getLastTotal() {
        return this.lastTotal;
    }
 
    public void setLastTotal(Integer lastTotal) {
        this.lastTotal = lastTotal;
        this.isset_lastTotal = true;
    }
 
    @JsonIgnore
    public boolean isEmptyLastTotal() {
        return this.lastTotal == null;
    }
 
    public Integer getIsTimeReceive() {
        return this.isTimeReceive;
    }
 
    public void setIsTimeReceive(Integer isTimeReceive) {
        this.isTimeReceive = isTimeReceive;
        this.isset_isTimeReceive = true;
    }
 
    @JsonIgnore
    public boolean isEmptyIsTimeReceive() {
        return this.isTimeReceive == null;
    }
 
    public Long getReceiveStartTime() {
        return this.receiveStartTime;
    }
 
    public void setReceiveStartTime(Long receiveStartTime) {
        this.receiveStartTime = receiveStartTime;
        this.isset_receiveStartTime = true;
    }
 
    @JsonIgnore
    public boolean isEmptyReceiveStartTime() {
        return this.receiveStartTime == null;
    }
 
    public Long getReceiveEndTime() {
        return this.receiveEndTime;
    }
 
    public void setReceiveEndTime(Long receiveEndTime) {
        this.receiveEndTime = receiveEndTime;
        this.isset_receiveEndTime = true;
    }
 
    @JsonIgnore
    public boolean isEmptyReceiveEndTime() {
        return this.receiveEndTime == null;
    }
 
    public Integer getIsFixedTime() {
        return this.isFixedTime;
    }
 
    public void setIsFixedTime(Integer isFixedTime) {
        this.isFixedTime = isFixedTime;
        this.isset_isFixedTime = true;
    }
 
    @JsonIgnore
    public boolean isEmptyIsFixedTime() {
        return this.isFixedTime == null;
    }
 
    public Long getUseStartTime() {
        return this.useStartTime;
    }
 
    public void setUseStartTime(Long useStartTime) {
        this.useStartTime = useStartTime;
        this.isset_useStartTime = true;
    }
 
    @JsonIgnore
    public boolean isEmptyUseStartTime() {
        return this.useStartTime == null;
    }
 
    public Long getUseEndTime() {
        return this.useEndTime;
    }
 
    public void setUseEndTime(Long useEndTime) {
        this.useEndTime = useEndTime;
        this.isset_useEndTime = true;
    }
 
    @JsonIgnore
    public boolean isEmptyUseEndTime() {
        return this.useEndTime == null;
    }
 
    public Integer getDay() {
        return this.day;
    }
 
    public void setDay(Integer day) {
        this.day = day;
        this.isset_day = true;
    }
 
    @JsonIgnore
    public boolean isEmptyDay() {
        return this.day == null;
    }
 
    public Integer getSort() {
        return this.sort;
    }
 
    public void setSort(Integer sort) {
        this.sort = sort;
        this.isset_sort = true;
    }
 
    @JsonIgnore
    public boolean isEmptySort() {
        return this.sort == null;
    }
 
    public Integer getStatus() {
        return this.status;
    }
 
    public void setStatus(Integer status) {
        this.status = status;
        this.isset_status = true;
    }
 
    @JsonIgnore
    public boolean isEmptyStatus() {
        return this.status == null;
    }
 
    public Integer getIsDel() {
        return this.isDel;
    }
 
    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
        this.isset_isDel = true;
    }
 
    @JsonIgnore
    public boolean isEmptyIsDel() {
        return this.isDel == null;
    }
 
    public Long getCreateTime() {
        return this.createTime;
    }
 
    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
        this.isset_createTime = true;
    }
 
    @JsonIgnore
    public boolean isEmptyCreateTime() {
        return this.createTime == null;
    }
 
    public Long getUpdateTime() {
        return this.updateTime;
    }
 
    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
        this.isset_updateTime = true;
    }
 
    @JsonIgnore
    public boolean isEmptyUpdateTime() {
        return this.updateTime == null;
    }
 
    /**
     * 重写 toString() 方法
     */
    @Override
    public String toString() {
        return new StringBuilder()
                .append("id=").append(this.id)
                .append("merId=").append(this.merId)
                .append("name=").append(this.name)
                .append("publisher=").append(this.publisher)
                .append("category=").append(this.category)
                .append("receiveType=").append(this.receiveType)
                .append("couponType=").append(this.couponType)
                .append("money=").append(this.money)
                .append("discount=").append(this.discount)
                .append("minPrice=").append(this.minPrice)
                .append("isLimited=").append(this.isLimited)
                .append("total=").append(this.total)
                .append("lastTotal=").append(this.lastTotal)
                .append("isTimeReceive=").append(this.isTimeReceive)
                .append("receiveStartTime=").append(this.receiveStartTime)
                .append("receiveEndTime=").append(this.receiveEndTime)
                .append("isFixedTime=").append(this.isFixedTime)
                .append("useStartTime=").append(this.useStartTime)
                .append("useEndTime=").append(this.useEndTime)
                .append("day=").append(this.day)
                .append("sort=").append(this.sort)
                .append("status=").append(this.status)
                .append("isDel=").append(this.isDel)
                .append("createTime=").append(this.createTime)
                .append("updateTime=").append(this.updateTime)
                .toString();
    }
 
    /**
     * 克隆
     */
    public EbCoupon $clone() {
        EbCoupon eb_coupon = new EbCoupon();
 
        // 数据库名称
        //eb_coupon.setDatabaseName_(this.getDatabaseName_());
 
        // 主键
        if (this.isset_id) {
            eb_coupon.setId(this.getId());
        }
        // 普通属性
        if (this.isset_merId) {
            eb_coupon.setMerId(this.getMerId());
        }
        if (this.isset_name) {
            eb_coupon.setName(this.getName());
        }
        if (this.isset_publisher) {
            eb_coupon.setPublisher(this.getPublisher());
        }
        if (this.isset_category) {
            eb_coupon.setCategory(this.getCategory());
        }
        if (this.isset_receiveType) {
            eb_coupon.setReceiveType(this.getReceiveType());
        }
        if (this.isset_couponType) {
            eb_coupon.setCouponType(this.getCouponType());
        }
        if (this.isset_money) {
            eb_coupon.setMoney(this.getMoney());
        }
        if (this.isset_discount) {
            eb_coupon.setDiscount(this.getDiscount());
        }
        if (this.isset_minPrice) {
            eb_coupon.setMinPrice(this.getMinPrice());
        }
        if (this.isset_isLimited) {
            eb_coupon.setIsLimited(this.getIsLimited());
        }
        if (this.isset_total) {
            eb_coupon.setTotal(this.getTotal());
        }
        if (this.isset_lastTotal) {
            eb_coupon.setLastTotal(this.getLastTotal());
        }
        if (this.isset_isTimeReceive) {
            eb_coupon.setIsTimeReceive(this.getIsTimeReceive());
        }
        if (this.isset_receiveStartTime) {
            eb_coupon.setReceiveStartTime(this.getReceiveStartTime());
        }
        if (this.isset_receiveEndTime) {
            eb_coupon.setReceiveEndTime(this.getReceiveEndTime());
        }
        if (this.isset_isFixedTime) {
            eb_coupon.setIsFixedTime(this.getIsFixedTime());
        }
        if (this.isset_useStartTime) {
            eb_coupon.setUseStartTime(this.getUseStartTime());
        }
        if (this.isset_useEndTime) {
            eb_coupon.setUseEndTime(this.getUseEndTime());
        }
        if (this.isset_day) {
            eb_coupon.setDay(this.getDay());
        }
        if (this.isset_sort) {
            eb_coupon.setSort(this.getSort());
        }
        if (this.isset_status) {
            eb_coupon.setStatus(this.getStatus());
        }
        if (this.isset_isDel) {
            eb_coupon.setIsDel(this.getIsDel());
        }
        if (this.isset_createTime) {
            eb_coupon.setCreateTime(this.getCreateTime());
        }
        if (this.isset_updateTime) {
            eb_coupon.setUpdateTime(this.getUpdateTime());
        }
        return eb_coupon;
    }
}