AgvPort.java
2.68 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
package com.huaheng.api.acs.domain;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* 【请填写功能名称】表 agv_port
*
* @author huaheng
* @date 2022-07-27
*/
@TableName(value = "agv_port")
@Data
public class AgvPort implements Serializable {
public static final int LOAD = 1;
public static final int LAY = 2;
public static final int PIN = 3;
private static final long serialVersionUID = 1L;
/**
* $column.columnComment
*/
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* agv点位编码
*/
@TableField(value = "code")
private String code;
/**
* agv点位名称
*/
@TableField(value = "name")
private String name;
/**
* 所属工位id
*/
@TableField(value = "workStationId")
private Long workStationId;
/**
* 托盘号
*/
@TableField(value = "containerCode")
private String containerCode;
/**
* 1上料口,2下料口
*/
@TableField(value = "type")
private Long type;
/**
* area
*/
@TableField(value = "area")
private String area;
/**
* lock,empty
*/
@TableField(value = "status")
private String status;
/**
* 创建时间
*/
@TableField(value = "created", fill = FieldFill.INSERT)
private Date created;
/**
* 创建用户
*/
@TableField(value = "createdBy", fill = FieldFill.INSERT)
private String createdBy;
/**
* 创建时间
*/
@TableField(value = "lastUpdated", fill = FieldFill.INSERT_UPDATE)
private Date lastUpdated;
/**
* 更新用户
*/
@TableField(value = "lastUpdatedBy", fill = FieldFill.INSERT_UPDATE)
private String lastUpdatedBy;
/**
* 输送线的位置
*/
@TableField(value = "linePort", fill = FieldFill.INSERT)
private String linePort;
/**
* 0上下料口,1上料口,2下料口
*/
@TableField(exist = false)
private int types;
//提示
@TableField(exist = false)
private String message;
//表示任务完成时 是否写入数据 1表示写入0表示不写入 默认1
@TableField(value = "userDef1")
private Boolean userDef1;
//表示是否需要通过wcs读取占位 1表示需要0表示不需要 默认0
@TableField(value = "userDef2")
private Boolean userDef2;
/**
* 是否上料口
**/
public boolean isLoadPort() {
return type == LOAD;
}
/**
* 是否下料口
**/
public boolean isLayPort() {
return type == LAY;
}
}