自动化立体仓库 - WCS系统
lsh
2024-06-05 012c7432e6a18aac67c0888309aa42d0fa4a862a
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
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 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("asr_wrk_mast_split_twin")
public class WrkMastSplitTwin implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * ID
     */
    @ApiModelProperty(value= "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
 
    /**
     * 工作号
     */
    @ApiModelProperty(value= "工作号")
    @TableField("wrk_no")
    private Long wrkNo;
 
    /**
     * 添加时间
     */
    @ApiModelProperty(value= "添加时间")
    @TableField("create_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
 
    /**
     * 修改时间
     */
    @ApiModelProperty(value= "修改时间")
    @TableField("update_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
 
    /**
     * 工位
     */
    @ApiModelProperty(value= "工位")
    private Integer type;
 
    /**
     * 工作状态 0: 初始  1: 等待取货完成  2: 取货完成待作业  3: 等待放货完成  4: 完成  
     */
    @ApiModelProperty(value= "工作状态 0: 初始  1: 等待取货完成  2: 取货完成待作业  3: 等待放货完成  4: 完成  ")
    @TableField("wrk_sts")
    private Integer wrkSts;
 
    /**
     * 行号
     */
    @ApiModelProperty(value= "行号")
    @TableField("line_number")
    private Integer lineNumber;
 
    /**
     * 工作类型 0: 未知  1: 取  2: 放  3: 取放  4: 完成  
     */
    @ApiModelProperty(value= "工作类型 0: 未知  1: 取  2: 放  3: 取放  4: 完成  ")
    @TableField("wrk_type")
    private Integer wrkType;
 
    /**
     * 标记时间
     */
    @ApiModelProperty(value= "标记时间")
    @TableField("bign_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date bignTime;
 
    /**
     * 堆垛机号
     */
    @ApiModelProperty(value= "堆垛机号")
    @TableField("crn_no")
    private Integer crnNo;
 
    /**
     * 起点
     */
    @ApiModelProperty(value= "起点")
    @TableField("wrk_start")
    private String wrkStart;
 
    /**
     * 终点
     */
    @ApiModelProperty(value= "终点")
    @TableField("wrk_end")
    private String wrkEnd;
 
    /**
     * 起点排
     */
    @ApiModelProperty(value= "起点排")
    @TableField("start_row")
    private Integer startRow;
 
    /**
     * 起点列
     */
    @ApiModelProperty(value= "起点列")
    @TableField("start_bay")
    private Integer startBay;
 
    /**
     * 起点层
     */
    @ApiModelProperty(value= "起点层")
    @TableField("start_lev")
    private Integer startLev;
 
    /**
     * 终点排
     */
    @ApiModelProperty(value= "终点排")
    @TableField("end_row")
    private Integer endRow;
 
    /**
     * 终点列
     */
    @ApiModelProperty(value= "终点列")
    @TableField("end_bay")
    private Integer endBay;
 
    /**
     * 终点层
     */
    @ApiModelProperty(value= "终点层")
    @TableField("end_lev")
    private Integer endLev;
 
    /**
     * 任务类型 0: 未知  1: 入库  2: 出库  
     */
    @ApiModelProperty(value= "任务类型 0: 未知  1: 入库  2: 出库  ")
    @TableField("io_type")
    private Integer ioType;
 
    public WrkMastSplitTwin() {}
 
    public WrkMastSplitTwin(Long wrkNo,Date createTime,Date updateTime,Integer type,Integer wrkSts,Integer lineNumber,Integer wrkType,Date bignTime,Integer crnNo,String wrkStart,String wrkEnd,Integer startRow,Integer startBay,Integer startLev,Integer endRow,Integer endBay,Integer endLev,Integer ioType) {
        this.wrkNo = wrkNo;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.type = type;
        this.wrkSts = wrkSts;
        this.lineNumber = lineNumber;
        this.wrkType = wrkType;
        this.bignTime = bignTime;
        this.crnNo = crnNo;
        this.wrkStart = wrkStart;
        this.wrkEnd = wrkEnd;
        this.startRow = startRow;
        this.startBay = startBay;
        this.startLev = startLev;
        this.endRow = endRow;
        this.endBay = endBay;
        this.endLev = endLev;
        this.ioType = ioType;
    }
 
//    WrkMastSplitTwin wrkMastSplitTwin = new WrkMastSplitTwin(
//            null,    // 工作号[非空]
//            null,    // 添加时间
//            null,    // 修改时间
//            null,    // 工位[非空]
//            null,    // 工作状态[非空]
//            null,    // 行号[非空]
//            null,    // 工作类型[非空]
//            null,    // 标记时间
//            null,    // 堆垛机号[非空]
//            null,    // 起点[非空]
//            null,    // 终点[非空]
//            null,    // 起点排[非空]
//            null,    // 起点列[非空]
//            null,    // 起点层[非空]
//            null,    // 终点排[非空]
//            null,    // 终点列[非空]
//            null,    // 终点层[非空]
//            null    // 任务类型[非空]
//    );
 
    public String getCreateTime$(){
        if (Cools.isEmpty(this.createTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime);
    }
 
    public String getUpdateTime$(){
        if (Cools.isEmpty(this.updateTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime);
    }
 
    public String getWrkSts$(){
        if (null == this.wrkSts){ return null; }
        switch (this.wrkSts){
            case 0:
                return "初始";
            case 1:
                return "等待取货完成";
            case 2:
                return "取货完成待作业";
            case 3:
                return "等待放货完成";
            case 4:
                return "完成";
            default:
                return String.valueOf(this.wrkSts);
        }
    }
 
    public String getWrkType$(){
        if (null == this.wrkType){ return null; }
        switch (this.wrkType){
            case 0:
                return "未知";
            case 1:
                return "取";
            case 2:
                return "放";
            case 3:
                return "取放";
            case 4:
                return "完成";
            default:
                return String.valueOf(this.wrkType);
        }
    }
 
    public String getBignTime$(){
        if (Cools.isEmpty(this.bignTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.bignTime);
    }
 
    public String getIoType$(){
        if (null == this.ioType){ return null; }
        switch (this.ioType){
            case 0:
                return "未知";
            case 1:
                return "入库";
            case 2:
                return "出库";
            default:
                return String.valueOf(this.ioType);
        }
    }
 
 
}