杨凯
2023-10-17 e7c9fc40786f387f2c0d65e10294317480b0f621
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
 
package com.consum.model.po;
 
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.walker.jdbc.BasePo;
 
/**
 * 表名:WH_FORM_TRANSFER_GOODS *
 * @author genrator
 */
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
public class WhFormTransferGoods extends BasePo<WhFormTransferGoods> {
    // 序列化版本号
    private static final long serialVersionUID = 1L;
 
    // 主键
    private Long id = null;
    @JsonIgnore
    protected boolean isset_id = false;
 
    // 属性列表
    private Long whFormTransferId = null;
    @JsonIgnore
    protected boolean isset_whFormTransferId = false;
 
    private Integer worehouseCount = null;
    @JsonIgnore
    protected boolean isset_worehouseCount = false;
 
    private Integer counts = null;
    @JsonIgnore
    protected boolean isset_counts = false;
 
    private Long baseGoodsTemplateId = null;
    @JsonIgnore
    protected boolean isset_baseGoodsTemplateId = false;
 
    private String goodsTemplateName = null;
    @JsonIgnore
    protected boolean isset_goodsTemplateName = false;
 
    private String unit = null;
    @JsonIgnore
    protected boolean isset_unit = false;
 
    private Long baseGoodsModelsId = null;
    @JsonIgnore
    protected boolean isset_baseGoodsModelsId = false;
 
    private String baseGoodsModelsName = null;
    @JsonIgnore
    protected boolean isset_baseGoodsModelsName = false;
 
    /**
     * 默认构造函数
     */
    public WhFormTransferGoods() {
    }
 
    /**
     * 根据主键构造对象
     */
    public WhFormTransferGoods(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 Long getWhFormTransferId() {
        return this.whFormTransferId;
    }
 
    public void setWhFormTransferId(Long whFormTransferId) {
        this.whFormTransferId = whFormTransferId;
        this.isset_whFormTransferId = true;
    }
 
    @JsonIgnore
    public boolean isEmptyWhFormTransferId() {
        return this.whFormTransferId == null;
    }
 
    public Integer getWorehouseCount() {
        return this.worehouseCount;
    }
 
    public void setWorehouseCount(Integer worehouseCount) {
        this.worehouseCount = worehouseCount;
        this.isset_worehouseCount = true;
    }
 
    @JsonIgnore
    public boolean isEmptyWorehouseCount() {
        return this.worehouseCount == null;
    }
 
    public Integer getCounts() {
        return this.counts;
    }
 
    public void setCounts(Integer counts) {
        this.counts = counts;
        this.isset_counts = true;
    }
 
    @JsonIgnore
    public boolean isEmptyCounts() {
        return this.counts == 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 String getGoodsTemplateName() {
        return this.goodsTemplateName;
    }
 
    public void setGoodsTemplateName(String goodsTemplateName) {
        this.goodsTemplateName = goodsTemplateName;
        this.isset_goodsTemplateName = true;
    }
 
    @JsonIgnore
    public boolean isEmptyGoodsTemplateName() {
        return this.goodsTemplateName == null || this.goodsTemplateName.length() == 0;
    }
 
    public String getUnit() {
        return this.unit;
    }
 
    public void setUnit(String unit) {
        this.unit = unit;
        this.isset_unit = true;
    }
 
    @JsonIgnore
    public boolean isEmptyUnit() {
        return this.unit == null || this.unit.length() == 0;
    }
 
    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 String getBaseGoodsModelsName() {
        return this.baseGoodsModelsName;
    }
 
    public void setBaseGoodsModelsName(String baseGoodsModelsName) {
        this.baseGoodsModelsName = baseGoodsModelsName;
        this.isset_baseGoodsModelsName = true;
    }
 
    @JsonIgnore
    public boolean isEmptyBaseGoodsModelsName() {
        return this.baseGoodsModelsName == null || this.baseGoodsModelsName.length() == 0;
    }
 
    /**
     * 重写 toString() 方法
     */
    @Override
    public String toString() {
        return new StringBuilder()
                .append("id=").append(this.id)
                .append("whFormTransferId=").append(this.whFormTransferId)
                .append("worehouseCount=").append(this.worehouseCount)
                .append("counts=").append(this.counts)
                .append("baseGoodsTemplateId=").append(this.baseGoodsTemplateId)
                .append("goodsTemplateName=").append(this.goodsTemplateName)
                .append("unit=").append(this.unit)
                .append("baseGoodsModelsId=").append(this.baseGoodsModelsId)
                .append("baseGoodsModelsName=").append(this.baseGoodsModelsName)
                .toString();
    }
 
    /**
     * 克隆
     */
    public WhFormTransferGoods $clone() {
        WhFormTransferGoods wh_form_transfer_goods = new WhFormTransferGoods();
 
        // 数据库名称
        //wh_form_transfer_goods.setDatabaseName_(this.getDatabaseName_());
 
        // 主键
        if (this.isset_id) {
            wh_form_transfer_goods.setId(this.getId());
        }
        // 普通属性
        if (this.isset_whFormTransferId) {
            wh_form_transfer_goods.setWhFormTransferId(this.getWhFormTransferId());
        }
        if (this.isset_worehouseCount) {
            wh_form_transfer_goods.setWorehouseCount(this.getWorehouseCount());
        }
        if (this.isset_counts) {
            wh_form_transfer_goods.setCounts(this.getCounts());
        }
        if (this.isset_baseGoodsTemplateId) {
            wh_form_transfer_goods.setBaseGoodsTemplateId(this.getBaseGoodsTemplateId());
        }
        if (this.isset_goodsTemplateName) {
            wh_form_transfer_goods.setGoodsTemplateName(this.getGoodsTemplateName());
        }
        if (this.isset_unit) {
            wh_form_transfer_goods.setUnit(this.getUnit());
        }
        if (this.isset_baseGoodsModelsId) {
            wh_form_transfer_goods.setBaseGoodsModelsId(this.getBaseGoodsModelsId());
        }
        if (this.isset_baseGoodsModelsName) {
            wh_form_transfer_goods.setBaseGoodsModelsName(this.getBaseGoodsModelsName());
        }
        return wh_form_transfer_goods;
    }
}