Administrator
2023-06-19 49588f5a462ae7425e7eb030438a35fd80c246fa
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
package com.gk.firework.Domain;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
 
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
 
@TableName(value = "product",resultMap = "BaseResultMap")
public class ProductInfo implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
 
    /**   id **/
    @TableId(type = IdType.AUTO)
    private Long id;
 
    /** 产品名(限制长度255)  name **/
    @NotBlank(message = "产品名不能为空")
    private String name;
 
    /** 流向码(十位)  directionCode **/
//    @NotBlank(message = "流向码不能为空")
    @TableField(value = "directioncode")
    private String directionCode;
 
    /** 进价  purchasePrice **/
    @TableField(value = "purchaseprice")
    private BigDecimal purchasePrice;
 
    /** 售价  salePrice **/
    @TableField(value = "saleprice")
    private BigDecimal salePrice;
 
    /** 生产厂家  manufacturer **/
    @NotBlank(message = "生产厂家不能为空")
    private String manufacturer;
 
    /** 规格(一般为2位字母数字组合)  specification **/
    @NotBlank(message = "规格不能为空")
    private String specification;
 
    /** 含药量(一般为数字,部分含有单位)  explosiveContent **/
    @NotNull(message = "含药量不能为空")
    @TableField(value = "explosivecontent")
    private BigDecimal explosiveContent;
 
    /** (烟花爆竹)类型(爆竹类,单个爆竹类,喷花类,日景烟花,吐珠类,造型玩具类,玩具烟花类,线香类,组合类,组合烟花,组合烟花类,组合盆花类,鞭炮类,火箭类,旋转类,升空类,旋转升空类,冷光类,烟雾类,摩擦类,小礼花类,礼花弹类,架子烟类,引火线,黑火药,烟火药,氯酸钾,精品礼品箱类,彩箱烟花类,单个爆竹类,玩具类,同类组合烟花)  type **/
    @NotBlank(message = "类型不能为空")
    private String type;
    @TableField(value = "secondarytype")
    private String secondaryType;
 
    /** 产品等级(ABCD级)  level **/
    @NotBlank(message = "产品等级不能为空")
    private String level;
 
    /** 生产日期  productDate **/
    @NotNull(message = "生产日期不能为空")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @TableField(value = "productdate")
    private Date productDate;
 
    /** 箱数(正整数)  boxNumber **/
    @NotNull(message = "箱数不能为空")
    @TableField(value = "boxnumber")
    private Integer boxNumber;
 
    /** 包装方式  packing **/
    private String packing;
 
    /** 删除标记(0:未删除,1:删除)  isDel **/
    @TableField(value = "isdel")
    private Byte isDel;
 
    /** 创建人  createdBy **/
    @TableField(value = "createdby")
    private String createdBy;
 
    /** 修改人  modifiedBy **/
    @TableField(value = "modifiedby")
    private String modifiedBy;
 
    /** 创建时间  createdDate **/
    @TableField(value = "createddate")
    private Date createdDate;
 
    /** 修改时间  modifiedDate **/
    @TableField(value = "modifieddate")
    private Date modifiedDate;
 
    /** 企业单位编号  companyNumber **/
    @TableField(value = "companynumber")
    private String companyNumber;
 
    @TableField(value = "isold")
    private Byte isOld;
 
    /**     id   **/
    public Long getId() {
        return id;
    }
 
    /**     id   **/
    public void setId(Long id) {
        this.id = id;
    }
 
    /**   产品名(限制长度255)  name   **/
    public String getName() {
        return name;
    }
 
    /**   产品名(限制长度255)  name   **/
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }
 
    /**   流向码(十位)  directionCode   **/
    public String getDirectionCode() {
        return directionCode;
    }
 
    /**   流向码(十位)  directionCode   **/
    public void setDirectionCode(String directionCode) {
        this.directionCode = directionCode == null ? null : directionCode.trim();
    }
 
    /**   进价  purchasePrice   **/
    public BigDecimal getPurchasePrice() {
        return purchasePrice;
    }
 
    /**   进价  purchasePrice   **/
    public void setPurchasePrice(BigDecimal purchasePrice) {
        this.purchasePrice = purchasePrice;
    }
 
    /**   售价  salePrice   **/
    public BigDecimal getSalePrice() {
        return salePrice;
    }
 
    /**   售价  salePrice   **/
    public void setSalePrice(BigDecimal salePrice) {
        this.salePrice = salePrice;
    }
 
    /**   生产厂家  manufacturer   **/
    public String getManufacturer() {
        return manufacturer;
    }
 
    /**   生产厂家  manufacturer   **/
    public void setManufacturer(String manufacturer) {
        this.manufacturer = manufacturer == null ? null : manufacturer.trim();
    }
 
    /**   规格(一般为2位字母数字组合)  specification   **/
    public String getSpecification() {
        return specification;
    }
 
    /**   规格(一般为2位字母数字组合)  specification   **/
    public void setSpecification(String specification) {
        this.specification = specification == null ? null : specification.trim();
    }
 
    /**   含药量(一般为数字,部分含有单位)  explosiveContent   **/
    public BigDecimal getExplosiveContent() {
        return explosiveContent;
    }
 
    /**   含药量(一般为数字,部分含有单位)  explosiveContent   **/
    public void setExplosiveContent(BigDecimal explosiveContent) {
        this.explosiveContent = explosiveContent;
    }
 
    /**   (烟花爆竹)类型(爆竹类,单个爆竹类,喷花类,日景烟花,吐珠类,造型玩具类,玩具烟花类,线香类,组合类,组合烟花,组合烟花类,组合盆花类,鞭炮类,火箭类,旋转类,升空类,旋转升空类,冷光类,烟雾类,摩擦类,小礼花类,礼花弹类,架子烟类,引火线,黑火药,烟火药,氯酸钾,精品礼品箱类,彩箱烟花类,单个爆竹类,玩具类,同类组合烟花)  type   **/
    public String getType() {
        return type;
    }
 
    /**   (烟花爆竹)类型(爆竹类,单个爆竹类,喷花类,日景烟花,吐珠类,造型玩具类,玩具烟花类,线香类,组合类,组合烟花,组合烟花类,组合盆花类,鞭炮类,火箭类,旋转类,升空类,旋转升空类,冷光类,烟雾类,摩擦类,小礼花类,礼花弹类,架子烟类,引火线,黑火药,烟火药,氯酸钾,精品礼品箱类,彩箱烟花类,单个爆竹类,玩具类,同类组合烟花)  type   **/
    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }
 
    public String getSecondaryType() {
        return secondaryType;
    }
 
    public void setSecondaryType(String secondaryType) {
        this.secondaryType = secondaryType;
    }
 
    /**   产品等级(ABCD级)  level   **/
    public String getLevel() {
        return level;
    }
 
    /**   产品等级(ABCD级)  level   **/
    public void setLevel(String level) {
        this.level = level == null ? null : level.trim();
    }
 
    /**   生产日期  productDate   **/
    public Date getProductDate() {
        return productDate;
    }
 
    /**   生产日期  productDate   **/
    public void setProductDate(Date productDate) {
        this.productDate = productDate;
    }
 
    /**   箱数(正整数)  boxNumber   **/
    public Integer getBoxNumber() {
        return boxNumber;
    }
 
    /**   箱数(正整数)  boxNumber   **/
    public void setBoxNumber(Integer boxNumber) {
        this.boxNumber = boxNumber;
    }
 
    /**   包装方式  packing   **/
    public String getPacking() {
        return packing;
    }
 
    /**   包装方式  packing   **/
    public void setPacking(String packing) {
        this.packing = packing == null ? null : packing.trim();
    }
 
    public Byte getIsDel() {
        return isDel;
    }
 
    public void setIsDel(Byte isDel) {
        this.isDel = isDel;
    }
 
    public String getCreatedBy() {
        return createdBy;
    }
 
    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }
 
    public String getModifiedBy() {
        return modifiedBy;
    }
 
    public void setModifiedBy(String modifiedBy) {
        this.modifiedBy = modifiedBy;
    }
 
    public Date getCreatedDate() {
        return createdDate;
    }
 
    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }
 
    public Date getModifiedDate() {
        return modifiedDate;
    }
 
    public void setModifiedDate(Date modifiedDate) {
        this.modifiedDate = modifiedDate;
    }
 
    public String getCompanyNumber() {
        return companyNumber;
    }
 
    public void setCompanyNumber(String companyNumber) {
        this.companyNumber = companyNumber;
    }
 
    public Byte getIsOld() {
        return isOld;
    }
 
    public void setIsOld(Byte isOld) {
        this.isOld = isOld;
    }
}