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
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
package com.aps.job.domain;
 
import com.aps.common.core.annotation.Excel;
import com.aps.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
 
import java.math.BigDecimal;
import java.util.Date;
 
/**
 * 工单同步对象 aps_work_order_job
 * 
 * @author zhl
 * @date 2025-04-17
 */
public class ApsWorkOrderJob extends BaseEntity
{
    private static final long serialVersionUID = 1L;
 
    /** 主键id */
    private Long id;
 
    /** 同步主键 */
    @Excel(name = "同步主键")
    @JsonProperty("ID")
    private String orderId;
 
    /** 单据号 */
    @Excel(name = "单据号")
    private String docNo;
 
    /** 主件料号 */
    @Excel(name = "主件料号")
    private String mainitemCode;
 
    /** 主件图号 */
    @Excel(name = "主件图号")
    private String mainitemFigure;
 
    /** 客户名称 */
    @Excel(name = "客户名称")
    private String customerName;
 
    /** 业务类型 0:计划订单  1:生产订单 */
    @Excel(name = "业务类型 0:计划订单  1:生产订单")
    private Integer businessType;
 
    /** 需求分类 */
    @Excel(name = "需求分类")
    private String demandType;
 
    /** 单据状态( 0:开立 1:已核准 2:开工 3:完工 4:核准中 5:作废 ) */
    @Excel(name = "单据状态( 0:开立 1:已核准 2:开工 3:完工 4:核准中 5:作废 )")
    private Long docStatus;
 
    /** 料号 */
    @Excel(name = "料号")
    private String itemCode;
 
    /** 图号 */
    @Excel(name = "图号")
    private String itemFigure;
 
    /** 版本号 */
    @Excel(name = "版本号")
    private String itemFigureVersion;
 
    /** 生产数量 */
    @Excel(name = "生产数量")
    private BigDecimal pruductQty;
 
    /** 良品数量 */
    @Excel(name = "良品数量")
    private BigDecimal workQty;
 
    /** 工序号 */
    @Excel(name = "工序号")
    private String opNum;
 
    /** 工作中心 当前在制的工序 */
    @Excel(name = "工作中心 当前在制的工序")
    private String workCenter;
 
    /** 所属部门 */
    @Excel(name = "所属部门")
    private String dept;
 
    /** 计划开工日 */
    @Excel(name = "计划开工日")
    private String startDate;
 
    /** 计划完工日 */
    @Excel(name = "计划完工日")
    private String completeDate;
 
    /** 下道工序所属部门 */
    @Excel(name = "下道工序所属部门")
    private String nextDept;
 
    /** 是否挂起 1:是     0:否 */
    @Excel(name = "是否挂起 1:是     0:否")
    private Integer isHoldRelease;
 
    /** 外协标识 */
    @Excel(name = "外协标识")
    private String isOutSource;
 
    /** 账套( 枚举『南通/沈阳』) */
    @Excel(name = "账套( 枚举『南通/沈阳』)")
    private String org;
 
    /** 页码 */
    @Excel(name = "页码")
    private Integer pageNum;
 
    /** 页面第几条数据 */
    @Excel(name = "页面第几条数据")
    private Integer pageIndex;
 
    /** 删除标志(0代表存在 2代表删除) */
    @Excel(name = "删除标志", readConverterExp = "0=代表存在,2=代表删除")
    private String delFlag;
 
    /** 作业 */
    @Excel(name = "作业")
    private String stdOp;
 
    /** 账套编码 */
    private String orgCode;
 
    /** 当前工序状态 */
    @JsonProperty("OpStatus")
    @Excel(name = "当前工序状态")
    private String opStatus;
 
    /** 下一工序名称 */
    @JsonProperty("NextOpName")
    @Excel(name = "下一工序名称")
    private String nextOpName;
 
    /** 低阶码 */
    @JsonProperty("LowLevelCode")
    private String lowOrderCode;
 
    /** 工单创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "工单创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonProperty("CreatedOn")
    private Date orderCreateTime;
 
    /** 工单审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "工单审核时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonProperty("ApproveOn")
    private Date approveOn;
 
    /** 工单开工时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "工单开工时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonProperty("StartDatetime")
    private Date startWorkDate;
 
    public Date getApproveOn() {
        return approveOn;
    }
 
    public void setApproveOn(Date approveOn) {
        this.approveOn = approveOn;
    }
 
    public Date getStartWorkDate() {
        return startWorkDate;
    }
 
    public void setStartWorkDate(Date startWorkDate) {
        this.startWorkDate = startWorkDate;
    }
 
    public String getLowOrderCode() {
        return lowOrderCode;
    }
 
    public void setLowOrderCode(String lowOrderCode) {
        this.lowOrderCode = lowOrderCode;
    }
 
    public Date getOrderCreateTime() {
        return orderCreateTime;
    }
 
    public void setOrderCreateTime(Date orderCreateTime) {
        this.orderCreateTime = orderCreateTime;
    }
 
    public void setId(Long id)
    {
        this.id = id;
    }
 
    public Long getId() 
    {
        return id;
    }
 
    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }
 
    public String getOrderId() 
    {
        return orderId;
    }
 
    public void setDocNo(String docNo) 
    {
        this.docNo = docNo;
    }
 
    public String getDocNo() 
    {
        return docNo;
    }
 
    public void setMainitemCode(String mainitemCode) 
    {
        this.mainitemCode = mainitemCode;
    }
 
    public String getMainitemCode() 
    {
        return mainitemCode;
    }
 
    public void setMainitemFigure(String mainitemFigure) 
    {
        this.mainitemFigure = mainitemFigure;
    }
 
    public String getMainitemFigure() 
    {
        return mainitemFigure;
    }
 
    public void setCustomerName(String customerName) 
    {
        this.customerName = customerName;
    }
 
    public String getCustomerName() 
    {
        return customerName;
    }
 
    public void setBusinessType(Integer businessType) 
    {
        this.businessType = businessType;
    }
 
    public Integer getBusinessType() 
    {
        return businessType;
    }
 
    public void setDemandType(String demandType) 
    {
        this.demandType = demandType;
    }
 
    public String getDemandType() 
    {
        return demandType;
    }
 
    public void setDocStatus(Long docStatus) 
    {
        this.docStatus = docStatus;
    }
 
    public Long getDocStatus() 
    {
        return docStatus;
    }
 
    public void setItemCode(String itemCode) 
    {
        this.itemCode = itemCode;
    }
 
    public String getItemCode() 
    {
        return itemCode;
    }
 
    public void setItemFigure(String itemFigure) 
    {
        this.itemFigure = itemFigure;
    }
 
    public String getItemFigure() 
    {
        return itemFigure;
    }
 
    public void setItemFigureVersion(String itemFigureVersion) 
    {
        this.itemFigureVersion = itemFigureVersion;
    }
 
    public String getItemFigureVersion() 
    {
        return itemFigureVersion;
    }
 
    public void setPruductQty(BigDecimal pruductQty) 
    {
        this.pruductQty = pruductQty;
    }
 
    public BigDecimal getPruductQty() 
    {
        return pruductQty;
    }
 
    public void setWorkQty(BigDecimal workQty) 
    {
        this.workQty = workQty;
    }
 
    public BigDecimal getWorkQty() 
    {
        return workQty;
    }
 
    public void setOpNum(String opNum) 
    {
        this.opNum = opNum;
    }
 
    public String getOpNum() 
    {
        return opNum;
    }
 
    public void setWorkCenter(String workCenter)
    {
        this.workCenter = workCenter;
    }
 
    public String getWorkCenter()
    {
        return workCenter;
    }
 
    public void setDept(String dept) 
    {
        this.dept = dept;
    }
 
    public String getDept() 
    {
        return dept;
    }
 
    public void setStartDate(String startDate) 
    {
        this.startDate = startDate;
    }
 
    public String getStartDate() 
    {
        return startDate;
    }
 
    public void setCompleteDate(String completeDate) 
    {
        this.completeDate = completeDate;
    }
 
    public String getCompleteDate() 
    {
        return completeDate;
    }
 
    public void setNextDept(String nextDept) 
    {
        this.nextDept = nextDept;
    }
 
    public String getNextDept() 
    {
        return nextDept;
    }
 
    public void setIsHoldRelease(Integer isHoldRelease) 
    {
        this.isHoldRelease = isHoldRelease;
    }
 
    public Integer getIsHoldRelease() 
    {
        return isHoldRelease;
    }
 
    public void setIsOutSource(String isOutSource) 
    {
        this.isOutSource = isOutSource;
    }
 
    public String getIsOutSource() 
    {
        return isOutSource;
    }
 
    public void setOrg(String org) 
    {
        this.org = org;
    }
 
    public String getOrg() 
    {
        return org;
    }
 
    public void setPageNum(Integer pageNum) 
    {
        this.pageNum = pageNum;
    }
 
    public Integer getPageNum() 
    {
        return pageNum;
    }
 
    public void setPageIndex(Integer pageIndex) 
    {
        this.pageIndex = pageIndex;
    }
 
    public Integer getPageIndex() 
    {
        return pageIndex;
    }
 
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }
 
    public String getDelFlag() 
    {
        return delFlag;
    }
    public String getProcessStatus() {
        return processStatus;
    }
 
    public void setProcessStatus(String processStatus) {
        this.processStatus = processStatus;
    }
 
    private String processStatus;
 
    public String getOrgCode() {
        return orgCode;
    }
 
    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }
 
    public void setStdOp(String stdOp) {
        this.stdOp = stdOp;
    }
 
    public String getStdOp() {
        return stdOp;
    }
 
    public String getOpStatus() {
        return opStatus;
    }
 
    public void setOpStatus(String opStatus) {
        this.opStatus = opStatus;
    }
 
    public String getNextOpName() {
        return nextOpName;
    }
 
    public void setNextOpName(String nextOpName) {
        this.nextOpName = nextOpName;
    }
 
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("docNo", getDocNo())
            .append("mainitemCode", getMainitemCode())
            .append("mainitemFigure", getMainitemFigure())
            .append("customerName", getCustomerName())
            .append("businessType", getBusinessType())
            .append("demandType", getDemandType())
            .append("docStatus", getDocStatus())
            .append("itemCode", getItemCode())
            .append("itemFigure", getItemFigure())
            .append("itemFigureVersion", getItemFigureVersion())
            .append("pruductQty", getPruductQty())
            .append("workQty", getWorkQty())
            .append("opNum", getOpNum())
            .append("workCenter", getWorkCenter())
            .append("dept", getDept())
            .append("startDate", getStartDate())
            .append("completeDate", getCompleteDate())
            .append("nextDept", getNextDept())
            .append("isHoldRelease", getIsHoldRelease())
            .append("isOutSource", getIsOutSource())
            .append("org", getOrg())
            .append("pageNum", getPageNum())
            .append("pageIndex", getPageIndex())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("processStatus", getProcessStatus())
            .append("stdOp", getStdOp())
            .append("opStatus", getOpStatus())
            .append("nextOpName", getNextOpName())
            .toString();
    }
}