RequestOutItemBean.java
4.8 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
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
package com.myproject.bean.qisda;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
*
* 用于出库请求的JSON转换
* Created by sunke on 2019/12/14.
*/
public class RequestOutItemBean {
/**
* 动作(首盘,分盘,补料盘,急料,指定料,单独出库)
*/
private String action;
/**
* 需求单号
*/
private String hSerial;
/**
* 工单
*/
private String so;
/**
* 工单序号
*/
private String soseq;
/**
* 备料单号
*/
private String refno;
/**
* 建议出仓日期
*/
@JsonProperty("Sdte")
private String sdte;
/**
* 建议出仓日期
*/
private String stme;
/**
* 建议出仓日期
*/
private String mdte;
/**
* 建议出仓日期
*/
private String mtme;
/**
* 料站
*/
private String slot;
/**
* facility
*/
private String facility;
/**
* 是否是分盘料
*/
private String reelcut;
/**
* PN
*/
private String partNum;
@JsonProperty("ReelID")
private String reelID;
@JsonProperty("Location")
private String location;
/**
* 料站序号
*/
@JsonProperty("slotserial")
private int slotlocation;
/**
* 需求单中数量
*/
private int qty;
public String getAction() {
return action;
}
public void setAction(String action) {
this.action = action;
}
public String getFacility() {
return facility;
}
public void setFacility(String facility) {
this.facility = facility;
}
public String gethSerial() {
return hSerial;
}
public void sethSerial(String hSerial) {
this.hSerial = hSerial;
}
public String getMdte() {
return mdte;
}
public void setMdte(String mdte) {
this.mdte = mdte;
}
public String getMtme() {
return left0Str(mtme);
}
public void setMtme(String mtme) {
this.mtme = mtme;
}
public String getPartNum() {
return partNum;
}
public void setPartNum(String partNum) {
this.partNum = partNum;
}
public int getQty() {
return qty;
}
public void setQty(int qty) {
this.qty = qty;
}
public String getReelcut() {
return reelcut;
}
public void setReelcut(String reelcut) {
this.reelcut = reelcut;
}
public String getRefno() {
return refno;
}
public void setRefno(String refno) {
this.refno = refno;
}
public String getSdte() {
return sdte;
}
public void setSdte(String sdte) {
this.sdte = sdte;
}
public String getSlot() {
return slot;
}
public void setSlot(String slot) {
this.slot = slot;
}
public String getSo() {
return so;
}
public void setSo(String so) {
this.so = so;
}
public String getStme() {
return left0Str(stme);
}
/**
* 不够位数的在前面补0,保留code的长度位数字
* @param code
* @return
*/
private String left0Str(String code) {
if(code == null || code.isEmpty()){
code = "0";
}
// 保留code的位数
return String.format("%06d", Integer.parseInt(code));
}
public void setStme(String stme) {
this.stme = stme;
}
public String getLocation() {
return location;
}
public void setLocation(String location) {
this.location = location;
}
public String getReelID() {
return reelID;
}
public void setReelID(String reelID) {
this.reelID = reelID;
}
public String getSoseq() {
return soseq;
}
public void setSoseq(String soseq) {
this.soseq = soseq;
}
public int getSlotlocation() {
return slotlocation;
}
public void setSlotlocation(int slotlocation) {
this.slotlocation = slotlocation;
}
@Override
public String toString() {
return "RequestOutItemBean{" +
"action='" + action + '\'' +
", hSerial='" + hSerial + '\'' +
", so='" + so + '\'' +
", refno='" + refno + '\'' +
", sdte='" + sdte + '\'' +
", stme='" + stme + '\'' +
", mdte='" + mdte + '\'' +
", mtme='" + mtme + '\'' +
", slot='" + slot + '\'' +
", slotlocation='" + slotlocation + '\'' +
", facility='" + facility + '\'' +
", reelcut='" + reelcut + '\'' +
", partNum='" + partNum + '\'' +
", qty=" + qty +
'}';
}
}