自动化立体仓库 - WCS系统
#
lsh
2024-07-18 db479403cb04f33586584844d9cbdde513201712
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
package com.zy.asrs.entity;
 
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
 
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
 
@Data
@TableName("asr_bas_jar")
public class BasJar implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * JAR编号
     */
    @ApiModelProperty(value= "JAR编号")
    @TableId(value = "jar_no", type = IdType.INPUT)
    @TableField("jar_no")
    private Integer jarNo;
 
    /**
     * 区域
     */
    @ApiModelProperty(value= "区域")
    private Integer region;
 
    /**
     * 代号
     */
    @ApiModelProperty(value= "代号")
    @TableField("jar_code")
    private Integer jarCode;
 
    /**
     * 对应出库站
     */
    @ApiModelProperty(value= "对应出库站")
    @TableField("sta_no")
    private Integer staNo;
 
    /**
     * 状态
     */
    @ApiModelProperty(value= "状态")
    @TableField("jar_status")
    private Integer jarStatus;
 
    /**
     * 库存数
     */
    @ApiModelProperty(value= "库存数")
    @TableField("jar_count")
    private Integer jarCount;
 
    /**
     * 异常代码
     */
    @ApiModelProperty(value= "异常代码")
    @TableField("jar_err")
    private Integer jarErr;
 
    /**
     * 左门(checkBox)
     */
    @ApiModelProperty(value= "左门(checkBox)")
    @TableField("left_door")
    private String leftDoor;
 
    /**
     * 右门(checkBox)
     */
    @ApiModelProperty(value= "右门(checkBox)")
    @TableField("right_door")
    private String rightDoor;
 
    /**
     * 左门可开(checkBox)
     */
    @ApiModelProperty(value= "左门可开(checkBox)")
    @TableField("left_in_enable")
    private String leftInEnable;
 
    /**
     * 左门可关(checkBox)
     */
    @ApiModelProperty(value= "左门可关(checkBox)")
    @TableField("left_out_enable")
    private String leftOutEnable;
 
    /**
     * 自动(checkBox)
     */
    @ApiModelProperty(value= "自动(checkBox)")
    private String autoing;
 
    /**
     * 模式
     */
    @ApiModelProperty(value= "模式")
    @TableField("jar_mode")
    private Integer jarMode;
 
    /**
     * 右门可开(checkBox)
     */
    @ApiModelProperty(value= "右门可开(checkBox)")
    @TableField("right_in_enable")
    private String rightInEnable;
 
    /**
     * 右门可关(checkBox)
     */
    @ApiModelProperty(value= "右门可关(checkBox)")
    @TableField("right_out_enable")
    private String rightOutEnable;
 
    /**
     * 入罐小车
     */
    @ApiModelProperty(value= "入罐小车")
    @TableField("enter_ste_no")
    private Integer enterSteNo;
 
    /**
     * 出罐小车
     */
    @ApiModelProperty(value= "出罐小车")
    @TableField("out_ste_no")
    private Integer outSteNo;
 
    /**
     * 入罐RGV
     */
    @ApiModelProperty(value= "入罐RGV")
    @TableField("enter_rgv_no")
    private Integer enterRgvNo;
 
    /**
     * 出罐RGV
     */
    @ApiModelProperty(value= "出罐RGV")
    @TableField("out_rgv_no")
    private Integer outRgvNo;
 
    /**
     * 冷却
     */
    @ApiModelProperty(value= "冷却")
    private Integer burial;
 
    public BasJar() {}
 
    public BasJar(Integer jarNo,Integer region,Integer jarCode,Integer staNo,Integer jarStatus,Integer jarCount,Integer jarErr,String leftDoor,String rightDoor,String leftInEnable,String leftOutEnable,String autoing,Integer jarMode,String rightInEnable,String rightOutEnable) {
        this.jarNo = jarNo;
        this.region = region;
        this.jarCode = jarCode;
        this.staNo = staNo;
        this.jarStatus = jarStatus;
        this.jarCount = jarCount;
        this.jarErr = jarErr;
        this.leftDoor = leftDoor;
        this.rightDoor = rightDoor;
        this.leftInEnable = leftInEnable;
        this.leftOutEnable = leftOutEnable;
        this.autoing = autoing;
        this.jarMode = jarMode;
        this.rightInEnable = rightInEnable;
        this.rightOutEnable = rightOutEnable;
    }
 
//    BasJar basJar = new BasJar(
//            null,    // JAR编号[非空]
//            null,    // 区域
//            null,    // 代号
//            null,    // 对应出库站
//            null,    // 状态
//            null,    // 库存数
//            null,    // 异常代码
//            null,    // 左门(checkBox)
//            null,    // 右门(checkBox)
//            null,    // 左门可开(checkBox)
//            null,    // 左门可关(checkBox)
//            null,    // 自动(checkBox)
//            null,    // 模式
//            null,    // 右门可开(checkBox)
//            null    // 右门可关(checkBox)
//    );
 
    public Integer getEntStaNo$(){
        if (this.jarNo==1){
            return 612;
        } else if (this.jarNo==2){
            return 615;
        } else if (this.jarNo==3){
            return 619;
        } else if (this.jarNo==4){
            return 622;
        } else {
            return 0;
        }
    }
 
}