自动化立体仓库 - WMS系统
Junjie
2023-06-07 d75c82842dac6d9f891e2e3d2aade153a8999619
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
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
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 com.core.common.SpringUtils;
import com.zy.system.service.UserService;
import com.zy.system.entity.User;
 
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
 
@Data
@TableName("asr_bas_lift")
public class BasLift implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * 提升机号
     */
    @ApiModelProperty(value= "提升机号")
    @TableId(value = "lift_no", type = IdType.INPUT)
    @TableField("lift_no")
    private Integer liftNo;
 
    /**
     * 当前任务状态
     */
    @ApiModelProperty(value= "当前任务状态")
    private Integer status;
 
    /**
     * 任务号
     */
    @ApiModelProperty(value= "任务号")
    @TableField("wrk_no")
    private Integer wrkNo;
 
    /**
     * 修改时间
     */
    @ApiModelProperty(value= "修改时间")
    @TableField("update_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
 
    /**
     * 修改人员
     */
    @ApiModelProperty(value= "修改人员")
    @TableField("update_by")
    private Long updateBy;
 
    /**
     * 备注
     */
    @ApiModelProperty(value= "备注")
    private String memo;
 
    /**
     * 作业标记
     */
    @ApiModelProperty(value= "作业标记")
    @TableField("pak_mk")
    private Integer pakMk;
 
    /**
     * 提升机锁定
     */
    @ApiModelProperty(value= "提升机锁定")
    @TableField("lift_lock")
    private Integer liftLock;
 
    /**
     * 位置到达反馈
     */
    @ApiModelProperty(value= "位置到达反馈")
    @TableField("position_arrival_feedback")
    private Integer positionArrivalFeedback;
 
    /**
     * 准备就绪
     */
    @ApiModelProperty(value= "准备就绪")
    private Integer ready;
 
    /**
     * 运行中
     */
    @ApiModelProperty(value= "运行中")
    private Integer running;
 
    /**
     * 联机/单机
     */
    @ApiModelProperty(value= "联机/单机")
    private Integer mode;
 
    /**
     * 输送线前端光电有货
     */
    @ApiModelProperty(value= "输送线前端光电有货")
    @TableField("line_front_has_stock")
    private Integer lineFrontHasStock;
 
    /**
     * 输送线正转反馈
     */
    @ApiModelProperty(value= "输送线正转反馈")
    @TableField("forward_rotation_feedback")
    private Integer forwardRotationFeedback;
 
    /**
     * 输送线反转反馈
     */
    @ApiModelProperty(value= "输送线反转反馈")
    @TableField("reverse_feedback")
    private Integer reverseFeedback;
 
    /**
     * 输送线电机过载
     */
    @ApiModelProperty(value= "输送线电机过载")
    @TableField("motor_overload")
    private Integer motorOverload;
 
    /**
     * 输送线末端光电有货
     */
    @ApiModelProperty(value= "输送线末端光电有货")
    @TableField("line_end_has_stock")
    private Integer lineEndHasStock;
 
    /**
     * 进输送线卡托盘报警
     */
    @ApiModelProperty(value= "进输送线卡托盘报警")
    @TableField("in_convey_line_card_tray_alarm")
    private Integer inConveyLineCardTrayAlarm;
 
    /**
     * 出输送线卡托盘报警
     */
    @ApiModelProperty(value= "出输送线卡托盘报警")
    @TableField("out_convey_line_card_tray_alarm")
    private Integer outConveyLineCardTrayAlarm;
 
    /**
     * 平台位置偏差报警
     */
    @ApiModelProperty(value= "平台位置偏差报警")
    @TableField("plat_position_deviation_alarm")
    private Integer platPositionDeviationAlarm;
 
    /**
     * 平台扭矩偏差报警
     */
    @ApiModelProperty(value= "平台扭矩偏差报警")
    @TableField("plat_torque_deviation_alarm")
    private Integer platTorqueDeviationAlarm;
 
    /**
     * 平台四向车检测
     */
    @ApiModelProperty(value= "平台四向车检测")
    @TableField("plat_shuttle_check")
    private Integer platShuttleCheck;
 
    /**
     * 未就绪状态
     */
    @ApiModelProperty(value= "未就绪状态")
    @TableField("not_ready")
    private Integer notReady;
 
    /**
     * 伺服1错误
     */
    @ApiModelProperty(value= "伺服1错误")
    @TableField("servo_error1")
    private Integer servoError1;
 
    /**
     * 伺服2错误
     */
    @ApiModelProperty(value= "伺服2错误")
    @TableField("servo_error2")
    private Integer servoError2;
 
    /**
     * 伺服3错误
     */
    @ApiModelProperty(value= "伺服3错误")
    @TableField("servo_error3")
    private Integer servoError3;
 
    /**
     * 伺服4错误
     */
    @ApiModelProperty(value= "伺服4错误")
    @TableField("servo_error4")
    private Integer servoError4;
 
    /**
     * 提升机实际速度反馈
     */
    @ApiModelProperty(value= "提升机实际速度反馈")
    @TableField("lift_actual_speed")
    private Integer liftActualSpeed;
 
    public BasLift() {}
 
    public BasLift(Integer liftNo,Integer status,Integer wrkNo,Date updateTime,Long updateBy,String memo,Integer pakMk,Integer liftLock,Integer positionArrivalFeedback,Integer ready,Integer running,Integer mode,Integer lineFrontHasStock,Integer forwardRotationFeedback,Integer reverseFeedback,Integer motorOverload,Integer lineEndHasStock,Integer inConveyLineCardTrayAlarm,Integer outConveyLineCardTrayAlarm,Integer platPositionDeviationAlarm,Integer platTorqueDeviationAlarm,Integer platShuttleCheck,Integer notReady,Integer servoError1,Integer servoError2,Integer servoError3,Integer servoError4,Integer liftActualSpeed) {
        this.liftNo = liftNo;
        this.status = status;
        this.wrkNo = wrkNo;
        this.updateTime = updateTime;
        this.updateBy = updateBy;
        this.memo = memo;
        this.pakMk = pakMk;
        this.liftLock = liftLock;
        this.positionArrivalFeedback = positionArrivalFeedback;
        this.ready = ready;
        this.running = running;
        this.mode = mode;
        this.lineFrontHasStock = lineFrontHasStock;
        this.forwardRotationFeedback = forwardRotationFeedback;
        this.reverseFeedback = reverseFeedback;
        this.motorOverload = motorOverload;
        this.lineEndHasStock = lineEndHasStock;
        this.inConveyLineCardTrayAlarm = inConveyLineCardTrayAlarm;
        this.outConveyLineCardTrayAlarm = outConveyLineCardTrayAlarm;
        this.platPositionDeviationAlarm = platPositionDeviationAlarm;
        this.platTorqueDeviationAlarm = platTorqueDeviationAlarm;
        this.platShuttleCheck = platShuttleCheck;
        this.notReady = notReady;
        this.servoError1 = servoError1;
        this.servoError2 = servoError2;
        this.servoError3 = servoError3;
        this.servoError4 = servoError4;
        this.liftActualSpeed = liftActualSpeed;
    }
 
//    BasLift basLift = new BasLift(
//            null,    // 提升机号[非空]
//            null,    // 当前任务状态
//            null,    // 任务号
//            null,    // 修改时间
//            null,    // 修改人员
//            null,    // 备注
//            null,    // 作业标记
//            null,    // 提升机锁定
//            null,    // 位置到达反馈
//            null,    // 准备就绪
//            null,    // 运行中
//            null,    // 联机/单机
//            null,    // 输送线前端光电有货
//            null,    // 输送线正转反馈
//            null,    // 输送线反转反馈
//            null,    // 输送线电机过载
//            null,    // 输送线末端光电有货
//            null,    // 进输送线卡托盘报警
//            null,    // 出输送线卡托盘报警
//            null,    // 平台位置偏差报警
//            null,    // 平台扭矩偏差报警
//            null,    // 平台四向车检测
//            null,    // 未就绪状态
//            null,    // 伺服1错误
//            null,    // 伺服2错误
//            null,    // 伺服3错误
//            null,    // 伺服4错误
//            null    // 提升机实际速度反馈
//    );
 
    public String getUpdateTime$(){
        if (Cools.isEmpty(this.updateTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime);
    }
 
    public String getUpdateBy$(){
        UserService service = SpringUtils.getBean(UserService.class);
        User user = service.selectById(this.updateBy);
        if (!Cools.isEmpty(user)){
            return String.valueOf(user.getNickname());
        }
        return null;
    }
 
    public String getPakMk$() {
        if (Cools.isEmpty(this.pakMk)){
            return "";
        }
        return this.pakMk == 1 ? "Y" : "N";
    }
 
    public String getLiftLock$() {
        if (Cools.isEmpty(this.liftLock)){
            return "";
        }
        return this.liftLock == 1 ? "Y" : "N";
    }
 
    public String getReady$() {
        if (Cools.isEmpty(this.ready)){
            return "";
        }
        return this.ready == 1 ? "Y" : "N";
    }
 
    public String getRunning$() {
        if (Cools.isEmpty(this.running)){
            return "";
        }
        return this.running == 1 ? "Y" : "N";
    }
 
    public String getMode$() {
        if (Cools.isEmpty(this.mode)){
            return "";
        }
        return this.mode == 1 ? "联机" : "单机";
    }
 
    public String getNotReady$() {
        if (Cools.isEmpty(this.notReady)){
            return "";
        }
        return this.notReady == 1 ? "Y" : "N";
    }
 
}