黎星凯
2024-04-15 62b6a7fac3f2acde70b578431147c4a01f19c182
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
 
package com.consum.model.po;
 
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.walker.jdbc.BasePo;
 
/**
 * 表名:WH_WARNING_CONFIG *
 * @author genrator
 */
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
public class WhWarningConfig extends BasePo<WhWarningConfig> {
    // 序列化版本号
    private static final long serialVersionUID = 1L;
 
    // 主键
    private Long id = null;
    @JsonIgnore
    protected boolean isset_id = false;
 
    // 属性列表
    private Integer warehouseType = null;
    @JsonIgnore
    protected boolean isset_warehouseType = false;
 
    private Long baseWarehouseId = null;
    @JsonIgnore
    protected boolean isset_baseWarehouseId = false;
 
    private Long baseGoodsTemplateId = null;
    @JsonIgnore
    protected boolean isset_baseGoodsTemplateId = false;
 
    private Long baseGoodsModelsId = null;
    @JsonIgnore
    protected boolean isset_baseGoodsModelsId = false;
 
    private Integer goodsType = null;
    @JsonIgnore
    protected boolean isset_goodsType = false;
 
    private Integer upperLimit = null;
    @JsonIgnore
    protected boolean isset_upperLimit = false;
 
    private Integer lowerLimit = null;
    @JsonIgnore
    protected boolean isset_lowerLimit = false;
 
    /**
     * 默认构造函数
     */
    public WhWarningConfig() {
    }
 
    /**
     * 根据主键构造对象
     */
    public WhWarningConfig(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 getWarehouseType() {
        return this.warehouseType;
    }
 
    public void setWarehouseType(Integer warehouseType) {
        this.warehouseType = warehouseType;
        this.isset_warehouseType = true;
    }
 
    @JsonIgnore
    public boolean isEmptyWarehouseType() {
        return this.warehouseType == null;
    }
 
    public Long getBaseWarehouseId() {
        return this.baseWarehouseId;
    }
 
    public void setBaseWarehouseId(Long baseWarehouseId) {
        this.baseWarehouseId = baseWarehouseId;
        this.isset_baseWarehouseId = true;
    }
 
    @JsonIgnore
    public boolean isEmptyBaseWarehouseId() {
        return this.baseWarehouseId == null;
    }
 
    public Long getBaseGoodsTemplateId() {
        return this.baseGoodsTemplateId;
    }
 
    public void setBaseGoodsTemplateId(Long baseGoodsTemplateId) {
        this.baseGoodsTemplateId = baseGoodsTemplateId;
        this.isset_baseGoodsTemplateId = true;
    }
 
    @JsonIgnore
    public boolean isEmptyBaseGoodsTemplateId() {
        return this.baseGoodsTemplateId == null;
    }
 
    public Long getBaseGoodsModelsId() {
        return this.baseGoodsModelsId;
    }
 
    public void setBaseGoodsModelsId(Long baseGoodsModelsId) {
        this.baseGoodsModelsId = baseGoodsModelsId;
        this.isset_baseGoodsModelsId = true;
    }
 
    @JsonIgnore
    public boolean isEmptyBaseGoodsModelsId() {
        return this.baseGoodsModelsId == null;
    }
 
    public Integer getGoodsType() {
        return this.goodsType;
    }
 
    public void setGoodsType(Integer goodsType) {
        this.goodsType = goodsType;
        this.isset_goodsType = true;
    }
 
    @JsonIgnore
    public boolean isEmptyGoodsType() {
        return this.goodsType == null;
    }
 
    public Integer getUpperLimit() {
        return this.upperLimit;
    }
 
    public void setUpperLimit(Integer upperLimit) {
        this.upperLimit = upperLimit;
        this.isset_upperLimit = true;
    }
 
    @JsonIgnore
    public boolean isEmptyUpperLimit() {
        return this.upperLimit == null;
    }
 
    public Integer getLowerLimit() {
        return this.lowerLimit;
    }
 
    public void setLowerLimit(Integer lowerLimit) {
        this.lowerLimit = lowerLimit;
        this.isset_lowerLimit = true;
    }
 
    @JsonIgnore
    public boolean isEmptyLowerLimit() {
        return this.lowerLimit == null;
    }
 
    /**
     * 重写 toString() 方法
     */
    @Override
    public String toString() {
        return new StringBuilder()
                .append("id=").append(this.id)
                .append("warehouseType=").append(this.warehouseType)
                .append("baseWarehouseId=").append(this.baseWarehouseId)
                .append("baseGoodsTemplateId=").append(this.baseGoodsTemplateId)
                .append("baseGoodsModelsId=").append(this.baseGoodsModelsId)
                .append("goodsType=").append(this.goodsType)
                .append("upperLimit=").append(this.upperLimit)
                .append("lowerLimit=").append(this.lowerLimit)
                .toString();
    }
 
    /**
     * 克隆
     */
    public WhWarningConfig $clone() {
        WhWarningConfig wh_warning_config = new WhWarningConfig();
 
        // 数据库名称
        //wh_warning_config.setDatabaseName_(this.getDatabaseName_());
 
        // 主键
        if (this.isset_id) {
            wh_warning_config.setId(this.getId());
        }
        // 普通属性
        if (this.isset_warehouseType) {
            wh_warning_config.setWarehouseType(this.getWarehouseType());
        }
        if (this.isset_baseWarehouseId) {
            wh_warning_config.setBaseWarehouseId(this.getBaseWarehouseId());
        }
        if (this.isset_baseGoodsTemplateId) {
            wh_warning_config.setBaseGoodsTemplateId(this.getBaseGoodsTemplateId());
        }
        if (this.isset_baseGoodsModelsId) {
            wh_warning_config.setBaseGoodsModelsId(this.getBaseGoodsModelsId());
        }
        if (this.isset_goodsType) {
            wh_warning_config.setGoodsType(this.getGoodsType());
        }
        if (this.isset_upperLimit) {
            wh_warning_config.setUpperLimit(this.getUpperLimit());
        }
        if (this.isset_lowerLimit) {
            wh_warning_config.setLowerLimit(this.getLowerLimit());
        }
        return wh_warning_config;
    }
}