StockCheckItem.java
1.6 KB
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
package com.myproject.bean.qisda;
import com.myproject.util.DateUtil;
import java.util.Date;
/**
* 料仓盘点详情
* Created by sunke on 2020/6/12.
*/
public class StockCheckItem {
/**
* 库位编号
*/
private String posName;
/**
* 库位Id
*/
private String posId;
/**
* 客户端上传的库位是否有料
*/
private boolean clientHasReel;
/**
* 服务器记录的库位物料,如果没有物料,条码为空
*/
private String barcode = "";
private Date date = new Date();
public String getBarcode() {
return barcode;
}
public void setBarcode(String barcode) {
this.barcode = barcode;
}
public boolean isClientHasReel() {
return clientHasReel;
}
public void setClientHasReel(boolean clientHasReel) {
this.clientHasReel = clientHasReel;
}
public String getPosName() {
return posName;
}
public void setPosName(String posName) {
this.posName = posName;
}
public boolean isRight(){
if(clientHasReel){
//服务端该库位也记录的有值才算一致
return !getBarcode().isEmpty();
}else{
return getBarcode().isEmpty();
}
}
public Date getDate() {
return date;
}
public void setDate(Date date) {
this.date = date;
}
public String getDateStr(){
return DateUtil.toDateTimeString(date);
}
public String getPosId() {
return posId;
}
public void setPosId(String posId) {
this.posId = posId;
}
}