duhuizhe
2023-10-16 3aa55dd3f62cee2c1c4c0aa74e1570acf83f8927
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
 
package com.consum.model.po;
 
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.walker.jdbc.BasePo;
 
/**
 * 表名:BASE_CODE_INDEXING *
 * @author genrator
 */
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
public class BaseCodeIndexing extends BasePo<BaseCodeIndexing> {
    // 序列化版本号
    private static final long serialVersionUID = 1L;
 
    // 主键
    private Long id = null;
    @JsonIgnore
    protected boolean isset_id = false;
 
    // 属性列表
    private Integer yearIndex = null;
    @JsonIgnore
    protected boolean isset_yearIndex = false;
 
    private Integer monthIndex = null;
    @JsonIgnore
    protected boolean isset_monthIndex = false;
 
    private Integer dayIndex = null;
    @JsonIgnore
    protected boolean isset_dayIndex = false;
 
    private Integer codeIndex = null;
    @JsonIgnore
    protected boolean isset_codeIndex = false;
 
    private String codePrefix = null;
    @JsonIgnore
    protected boolean isset_codePrefix = false;
 
    /**
     * 默认构造函数
     */
    public BaseCodeIndexing() {
    }
 
    /**
     * 根据主键构造对象
     */
    public BaseCodeIndexing(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 Integer getYearIndex() {
        return this.yearIndex;
    }
 
    public void setYearIndex(Integer yearIndex) {
        this.yearIndex = yearIndex;
        this.isset_yearIndex = true;
    }
 
    @JsonIgnore
    public boolean isEmptyYearIndex() {
        return this.yearIndex == null;
    }
 
    public Integer getMonthIndex() {
        return this.monthIndex;
    }
 
    public void setMonthIndex(Integer monthIndex) {
        this.monthIndex = monthIndex;
        this.isset_monthIndex = true;
    }
 
    @JsonIgnore
    public boolean isEmptyMonthIndex() {
        return this.monthIndex == null;
    }
 
    public Integer getDayIndex() {
        return this.dayIndex;
    }
 
    public void setDayIndex(Integer dayIndex) {
        this.dayIndex = dayIndex;
        this.isset_dayIndex = true;
    }
 
    @JsonIgnore
    public boolean isEmptyDayIndex() {
        return this.dayIndex == null;
    }
 
    public Integer getCodeIndex() {
        return this.codeIndex;
    }
 
    public void setCodeIndex(Integer codeIndex) {
        this.codeIndex = codeIndex;
        this.isset_codeIndex = true;
    }
 
    @JsonIgnore
    public boolean isEmptyCodeIndex() {
        return this.codeIndex == null;
    }
 
    public String getCodePrefix() {
        return this.codePrefix;
    }
 
    public void setCodePrefix(String codePrefix) {
        this.codePrefix = codePrefix;
        this.isset_codePrefix = true;
    }
 
    @JsonIgnore
    public boolean isEmptyCodePrefix() {
        return this.codePrefix == null || this.codePrefix.length() == 0;
    }
 
    /**
     * 重写 toString() 方法
     */
    @Override
    public String toString() {
        return new StringBuilder()
                .append("id=").append(this.id)
                .append("yearIndex=").append(this.yearIndex)
                .append("monthIndex=").append(this.monthIndex)
                .append("dayIndex=").append(this.dayIndex)
                .append("codeIndex=").append(this.codeIndex)
                .append("codePrefix=").append(this.codePrefix)
                .toString();
    }
 
    /**
     * 克隆
     */
    public BaseCodeIndexing $clone() {
        BaseCodeIndexing base_code_indexing = new BaseCodeIndexing();
 
        // 数据库名称
        //base_code_indexing.setDatabaseName_(this.getDatabaseName_());
 
        // 主键
        if (this.isset_id) {
            base_code_indexing.setId(this.getId());
        }
        // 普通属性
        if (this.isset_yearIndex) {
            base_code_indexing.setYearIndex(this.getYearIndex());
        }
        if (this.isset_monthIndex) {
            base_code_indexing.setMonthIndex(this.getMonthIndex());
        }
        if (this.isset_dayIndex) {
            base_code_indexing.setDayIndex(this.getDayIndex());
        }
        if (this.isset_codeIndex) {
            base_code_indexing.setCodeIndex(this.getCodeIndex());
        }
        if (this.isset_codePrefix) {
            base_code_indexing.setCodePrefix(this.getCodePrefix());
        }
        return base_code_indexing;
    }
}