自动化立体仓库 - WMS系统
#
zjj
2025-07-30 9e41f52d74f8e71ea80ad28a67a9163661e10d00
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
package com.zy.asrs.entity;
 
import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
 
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
 
@Data
@TableName("man_erp_receiving")
public class ErpReceiving implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    @ApiModelProperty(value= "")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
 
    /**
     * 生产单号
     */
    @ApiModelProperty(value= "生产单号")
    @TableField("produce_no")
    private String produceNo;
 
    /**
     * 任务单号
     */
    @ApiModelProperty(value= "任务单号")
    @TableField("job_no")
    private String jobNo;
 
    /**
     * 物料编码
     */
    @ApiModelProperty(value= "物料编码")
    private String matnr;
 
    /**
     * 物料名称
     */
    @ApiModelProperty(value= "物料名称")
    private String name;
 
    /**
     * 规格
     */
    @ApiModelProperty(value= "规格")
    private String specs;
 
    /**
     * 车间
     */
    @ApiModelProperty(value= "车间")
    private String workshop;
 
    /**
     * 数量
     */
    @ApiModelProperty(value= "数量")
    private Double anfme;
 
    /**
     * 计划开工时间
     */
    @ApiModelProperty(value= "计划开工时间")
    @TableField("start_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date startTime;
 
    /**
     * 计划完工时间
     */
    @ApiModelProperty(value= "计划完工时间")
    @TableField("end_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date endTime;
 
    /**
     * 是否同步
     */
    @ApiModelProperty(value= "是否同步")
    private Integer sync;
 
    /**
     * 是否退料
     */
    @ApiModelProperty(value= "是否退料")
    @TableField("matnr_return")
    private Integer matnrReturn;
 
    public ErpReceiving() {}
 
    public ErpReceiving(String produceNo,String jobNo,String matnr,String name,String specs,String workshop,Double anfme,Date startTime,Date endTime,Integer sync,Integer matnrReturn) {
        this.produceNo = produceNo;
        this.jobNo = jobNo;
        this.matnr = matnr;
        this.name = name;
        this.specs = specs;
        this.workshop = workshop;
        this.anfme = anfme;
        this.startTime = startTime;
        this.endTime = endTime;
        this.sync = sync;
        this.matnrReturn = matnrReturn;
    }
 
//    ErpReceiving erpReceiving = new ErpReceiving(
//            null,    // 生产单号
//            null,    // 任务单号
//            null,    // 物料编码
//            null,    // 物料名称
//            null,    // 规格
//            null,    // 车间
//            null,    // 数量
//            null,    // 计划开工时间
//            null,    // 计划完工时间
//            null,    // 是否同步
//            null    // 是否退料
//    );
 
    public String getStartTime$(){
        if (Cools.isEmpty(this.startTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.startTime);
    }
 
    public String getEndTime$(){
        if (Cools.isEmpty(this.endTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.endTime);
    }
 
 
}