自动化立体仓库 - WMS系统
#
18516761980
2021-09-08 93b591f65d0dbc0ab2238fb8a027c58f44e5fb66
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
package com.zy.asrs.entity;
 
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.core.common.Cools;
import com.core.common.SpringUtils;
import com.zy.system.entity.User;
import com.zy.system.service.UserService;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;
 
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
 
@TableName("asr_plt_barcode")
public class PltBarcode implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * 条码
     */
    @ApiModelProperty(value= "条码")
    @TableId(value = "barcode", type = IdType.INPUT)
    private String barcode;
 
    /**
     * 单据编号
     */
    @ApiModelProperty(value= "单据编号")
    @TableId(value = "bill_no", type = IdType.INPUT)
    @TableField("bill_no")
    private String billNo;
 
    /**
     * 序号
     */
    @ApiModelProperty(value= "序号")
    @TableId(value = "seq_no", type = IdType.INPUT)
    @TableField("seq_no")
    private Integer seqNo;
 
    /**
     * 单据类型 1: 采购入库  2: 生产入库  3: 调拨入库  4: 销售退回入库  5: 其他入库  
     */
    @ApiModelProperty(value= "单据类型 1: 采购入库  2: 生产入库  3: 调拨入库  4: 销售退回入库  5: 其他入库  ")
    @TableField("bill_type")
    private Integer billType;
 
    /**
     * 物料编码
     */
    @ApiModelProperty(value= "物料编码")
    @TableField("mat_no")
    private String matNo;
 
    /**
     * 物料名称
     */
    @ApiModelProperty(value= "物料名称")
    @TableField("mat_name")
    private String matName;
 
    /**
     * 数量
     */
    @ApiModelProperty(value= "数量")
    private Double qty;
 
    /**
     * 库位号
     */
    @ApiModelProperty(value= "库位号")
    @TableField("loc_no")
    private String locNo;
 
    /**
     * 规格
     */
    @ApiModelProperty(value= "规格")
    private String specs;
 
    /**
     * 单位
     */
    @ApiModelProperty(value= "单位")
    private String unit;
 
    /**
     * 尺寸
     */
    @ApiModelProperty(value= "尺寸")
    private String size;
 
    /**
     * 颜色
     */
    @ApiModelProperty(value= "颜色")
    private String color;
 
    /**
     * 单重
     */
    @ApiModelProperty(value= "单重")
    private Double weight;
 
    /**
     * 备注
     */
    @ApiModelProperty(value= "备注")
    private String memo;
 
    /**
     * ERP连线 0: 非连线  1: ERP连线  
     */
    @ApiModelProperty(value= "ERP连线 0: 非连线  1: ERP连线  ")
    @TableField("link_erp")
    private Integer linkErp;
 
    /**
     * 完成状态 0: 待处理  1: 入库中  2: 入库完成  3: 取消入库  
     */
    @ApiModelProperty(value= "完成状态 0: 待处理  1: 入库中  2: 入库完成  3: 取消入库  ")
    @TableField("io_status")
    private Integer ioStatus;
 
    /**
     * 完成时间
     */
    @ApiModelProperty(value= "完成时间")
    @TableField("io_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date ioTime;
 
    /**
     * 修改人员
     */
    @ApiModelProperty(value= "修改人员")
    @TableField("modi_user")
    private Long modiUser;
 
    /**
     * 修改时间
     */
    @ApiModelProperty(value= "修改时间")
    @TableField("modi_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date modiTime;
 
    /**
     * 建档人员
     */
    @ApiModelProperty(value= "建档人员")
    @TableField("appe_user")
    private Long appeUser;
 
    /**
     * 建档时间
     */
    @ApiModelProperty(value= "建档时间")
    @TableField("appe_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date appeTime;
 
    public PltBarcode() {}
 
    public PltBarcode(String barcode,String billNo,Integer seqNo,Integer billType,String matNo,String matName,Double qty,String locNo,String specs,String unit,String size,String color,Double weight,String memo,Integer linkErp,Integer ioStatus,Date ioTime,Long modiUser,Date modiTime,Long appeUser,Date appeTime) {
        this.barcode = barcode;
        this.billNo = billNo;
        this.seqNo = seqNo;
        this.billType = billType;
        this.matNo = matNo;
        this.matName = matName;
        this.qty = qty;
        this.locNo = locNo;
        this.specs = specs;
        this.unit = unit;
        this.size = size;
        this.color = color;
        this.weight = weight;
        this.memo = memo;
        this.linkErp = linkErp;
        this.ioStatus = ioStatus;
        this.ioTime = ioTime;
        this.modiUser = modiUser;
        this.modiTime = modiTime;
        this.appeUser = appeUser;
        this.appeTime = appeTime;
    }
 
//    PltBarcode pltBarcode = new PltBarcode(
//            null,    // 条码[非空]
//            null,    // 单据编号[非空]
//            null,    // 序号[非空]
//            null,    // 单据类型
//            null,    // 物料编码[非空]
//            null,    // 物料名称[非空]
//            null,    // 数量
//            null,    // 库位号
//            null,    // 规格
//            null,    // 单位
//            null,    // 尺寸
//            null,    // 颜色
//            null,    // 单重
//            null,    // 备注
//            null,    // ERP连线
//            null,    // 完成状态
//            null,    // 完成时间
//            null,    // 修改人员
//            null,    // 修改时间
//            null,    // 建档人员
//            null    // 建档时间
//    );
 
    public String getBarcode() {
        return barcode;
    }
 
    public void setBarcode(String barcode) {
        this.barcode = barcode;
    }
 
    public String getBillNo() {
        return billNo;
    }
 
    public void setBillNo(String billNo) {
        this.billNo = billNo;
    }
 
    public Integer getSeqNo() {
        return seqNo;
    }
 
    public void setSeqNo(Integer seqNo) {
        this.seqNo = seqNo;
    }
 
    public Integer getBillType() {
        return billType;
    }
 
    public String getBillType$(){
        if (null == this.billType){ return null; }
        switch (this.billType){
            case 1:
                return "采购入库";
            case 2:
                return "生产入库";
            case 3:
                return "调拨入库";
            case 4:
                return "销售退回入库";
            case 5:
                return "其他入库";
            default:
                return String.valueOf(this.billType);
        }
    }
 
    public void setBillType(Integer billType) {
        this.billType = billType;
    }
 
    public String getMatNo() {
        return matNo;
    }
 
    public void setMatNo(String matNo) {
        this.matNo = matNo;
    }
 
    public String getMatName() {
        return matName;
    }
 
    public void setMatName(String matName) {
        this.matName = matName;
    }
 
    public Double getQty() {
        return qty;
    }
 
    public void setQty(Double qty) {
        this.qty = qty;
    }
 
    public String getLocNo() {
        return locNo;
    }
 
    public void setLocNo(String locNo) {
        this.locNo = locNo;
    }
 
    public String getSpecs() {
        return specs;
    }
 
    public void setSpecs(String specs) {
        this.specs = specs;
    }
 
    public String getUnit() {
        return unit;
    }
 
    public void setUnit(String unit) {
        this.unit = unit;
    }
 
    public String getSize() {
        return size;
    }
 
    public void setSize(String size) {
        this.size = size;
    }
 
    public String getColor() {
        return color;
    }
 
    public void setColor(String color) {
        this.color = color;
    }
 
    public Double getWeight() {
        return weight;
    }
 
    public void setWeight(Double weight) {
        this.weight = weight;
    }
 
    public String getMemo() {
        return memo;
    }
 
    public void setMemo(String memo) {
        this.memo = memo;
    }
 
    public Integer getLinkErp() {
        return linkErp;
    }
 
    public String getLinkErp$(){
        if (null == this.linkErp){ return null; }
        switch (this.linkErp){
            case 0:
                return "非连线";
            case 1:
                return "ERP连线";
            default:
                return String.valueOf(this.linkErp);
        }
    }
 
    public void setLinkErp(Integer linkErp) {
        this.linkErp = linkErp;
    }
 
    public Integer getIoStatus() {
        return ioStatus;
    }
 
    public String getIoStatus$(){
        if (null == this.ioStatus){ return null; }
        switch (this.ioStatus){
            case 0:
                return "待处理";
            case 1:
                return "入库中";
            case 2:
                return "入库完成";
            case 3:
                return "取消入库";
            default:
                return String.valueOf(this.ioStatus);
        }
    }
 
    public void setIoStatus(Integer ioStatus) {
        this.ioStatus = ioStatus;
    }
 
    public Date getIoTime() {
        return ioTime;
    }
 
    public String getIoTime$(){
        if (Cools.isEmpty(this.ioTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime);
    }
 
    public void setIoTime(Date ioTime) {
        this.ioTime = ioTime;
    }
 
    public Long getModiUser() {
        return modiUser;
    }
 
    public String getModiUser$(){
        UserService service = SpringUtils.getBean(UserService.class);
        User user = service.selectById(this.modiUser);
        if (!Cools.isEmpty(user)){
            return String.valueOf(user.getUsername());
        }
        return null;
    }
 
    public void setModiUser(Long modiUser) {
        this.modiUser = modiUser;
    }
 
    public Date getModiTime() {
        return modiTime;
    }
 
    public String getModiTime$(){
        if (Cools.isEmpty(this.modiTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime);
    }
 
    public void setModiTime(Date modiTime) {
        this.modiTime = modiTime;
    }
 
    public Long getAppeUser() {
        return appeUser;
    }
 
    public String getAppeUser$(){
        UserService service = SpringUtils.getBean(UserService.class);
        User user = service.selectById(this.appeUser);
        if (!Cools.isEmpty(user)){
            return String.valueOf(user.getUsername());
        }
        return null;
    }
 
    public void setAppeUser(Long appeUser) {
        this.appeUser = appeUser;
    }
 
    public Date getAppeTime() {
        return appeTime;
    }
 
    public String getAppeTime$(){
        if (Cools.isEmpty(this.appeTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime);
    }
 
    public void setAppeTime(Date appeTime) {
        this.appeTime = appeTime;
    }
 
 
}