自动化立体仓库 - WMS系统
#
yxFwq
2024-07-29 33cb8b070c31a96bc514d07e3d1d9f6514a057d9
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
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 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;
 
    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 String getJarMode$(){
        if (null == this.jarMode){ return null; }
        switch (this.jarMode){
            case 0:
                return "离线";
            case 1:
                return "手动";
            case 2:
                return "自动";
            case 3:
                return "其他";
            default:
                return String.valueOf(this.jarMode);
        }
    }
 
    public String getJarErr$(){
        if (null == this.jarErr){ return null; }
        switch (this.jarErr){
            case 0:
                return "无异常";
            case 1:
                return "运行时进料门未关好";
            case 2:
                return "运行时出料门未关好";
            case 3:
                return "运行时未选择工艺";
            case 4:
                return "设备运行中超高温";
            case 5:
                return "设备运行中超高压";
            case 6:
                return "急停被按下";
            case 7:
                return "进料门关门超时";
            case 8:
                return "出料门关门超时";
            default:
                return String.valueOf(this.jarErr);
        }
    }
 
    public String getJarStatus$(){
        if (null == this.jarStatus){ return null; }
        switch (this.jarStatus){
            case 0:
                return "空闲";
            case 1:
                return "入料中";
            case 2:
                return "硫化中";
            case 3:
                return "出料中";
            case 4:
                return "停止";
            case 5:
                return "左门打开中";
            case 6:
                return "右门打开中";
            case 7:
                return "左门关闭中";
            case 8:
                return "右门关闭中";
            default:
                return String.valueOf(this.jarStatus);
        }
    }
 
}