1
4 天以前 82374fe4b32d58956810f445b7889f1a370f1ab9
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
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
package com.zy.asrs.entity;
 
import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableField;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
 
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
 
@Data
@TableName("asr_bas_rgv_error_log")
public class BasRgvErrorLog implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * 编号
     */
    @ApiModelProperty(value= "编号")
    @TableField("rgv_no")
    private Integer rgvNo;
 
    /**
     * 急停触发
     */
    @ApiModelProperty(value= "急停触发")
    @TableField("emergency_stop")
    private String emergencyStop;
 
    /**
     * 1号位有物无资料
     */
    @ApiModelProperty(value= "1号位有物无资料")
    @TableField("slot_1_empty_no_data")
    private String slot1EmptyNoData;
 
    /**
     * 2号位有物无资料
     */
    @ApiModelProperty(value= "2号位有物无资料")
    @TableField("slot_2_empty_no_data")
    private String slot2EmptyNoData;
 
    /**
     * 命令错误走链条冲突
     */
    @ApiModelProperty(value= "命令错误走链条冲突")
    @TableField("command_error_chain_conflict")
    private String commandErrorChainConflict;
 
    /**
     * 目标位下发错误
     */
    @ApiModelProperty(value= "目标位下发错误")
    @TableField("target_position_issue")
    private String targetPositionIssue;
 
    /**
     * 走行变频器异常
     */
    @ApiModelProperty(value= "走行变频器异常")
    @TableField("travel_inverter_error")
    private String travelInverterError;
 
    /**
     * 1号光电异常
     */
    @ApiModelProperty(value= "1号光电异常")
    @TableField("photoelectric_1_error")
    private String photoelectric1Error;
 
    /**
     * 2号光电异常
     */
    @ApiModelProperty(value= "2号光电异常")
    @TableField("photoelectric_2_error")
    private String photoelectric2Error;
 
    /**
     * 与输线时接超时
     */
    @ApiModelProperty(value= "与输线时接超时")
    @TableField("timeout_connection_with_line")
    private String timeoutConnectionWithLine;
 
    /**
     * 左侧滚筒运行超时
     */
    @ApiModelProperty(value= "左侧滚筒运行超时")
    @TableField("left_roller_timeout")
    private String leftRollerTimeout;
 
    /**
     * 右侧滚筒运行超时
     */
    @ApiModelProperty(value= "右侧滚筒运行超时")
    @TableField("right_roller_timeout")
    private String rightRollerTimeout;
 
    /**
     * rgv运行超时
     */
    @ApiModelProperty(value= "rgv运行超时")
    @TableField("rgv_run_timeout")
    private String rgvRunTimeout;
 
    /**
     * 1号工位链条变频器异常
     */
    @ApiModelProperty(value= "1号工位链条变频器异常")
    @TableField("position_1_chain_inverter_error")
    private String position1ChainInverterError;
 
    /**
     * 2号工位链条变频器异常
     */
    @ApiModelProperty(value= "2号工位链条变频器异常")
    @TableField("position_2_chain_inverter_error")
    private String position2ChainInverterError;
 
    /**
     * 前后极限位
     */
    @ApiModelProperty(value= "前后极限位")
    @TableField("front_rear_limit")
    private String frontRearLimit;
 
    /**
     * 急停按钮
     */
    @ApiModelProperty(value= "急停按钮")
    @TableField("emergency_button")
    private String emergencyButton;
 
    /**
     * 创建时间
     */
    @ApiModelProperty(value= "创建时间")
    @TableField("create_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
 
    /**
     * 急停按钮
     */
    @ApiModelProperty(value= "急停按钮")
    @TableField("forward_button")
    private String forwardButton;
 
    /**
     * 后退按钮
     */
    @ApiModelProperty(value= "后退按钮")
    @TableField("reverse_button")
    private String reverseButton;
 
    /**
     * 本地/远程
     */
    @ApiModelProperty(value= "本地/远程")
    @TableField("local_remote")
    private String localRemote;
 
    @ApiModelProperty(value= "")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
 
    /**
     * 复位
     */
    @ApiModelProperty(value= "复位")
    private String reset;
 
    /**
     * 走行抱闸开关钮
     */
    @ApiModelProperty(value= "走行抱闸开关钮")
    @TableField("travel_brake_switch")
    private String travelBrakeSwitch;
 
    /**
     * 走行强制减速光电
     */
    @ApiModelProperty(value= "走行强制减速光电")
    @TableField("travel_speed_limit_photoelectric")
    private String travelSpeedLimitPhotoelectric;
 
    /**
     * 左超限 1
     */
    @ApiModelProperty(value= "左超限 1")
    @TableField("left_overlimit_1")
    private String leftOverlimit1;
 
    /**
     * 右超限 1
     */
    @ApiModelProperty(value= "右超限 1")
    @TableField("right_overlimit_1")
    private String rightOverlimit1;
 
    /**
     * 左到位 1
     */
    @ApiModelProperty(value= "左到位 1")
    @TableField("left_at_position_1")
    private String leftAtPosition1;
 
    /**
     * 右到位 1
     */
    @ApiModelProperty(value= "右到位 1")
    @TableField("right_at_position_1")
    private String rightAtPosition1;
 
    /**
     * 链条前进 1
     */
    @ApiModelProperty(value= "链条前进 1")
    @TableField("chain_forward_1")
    private String chainForward1;
 
    /**
     * 链条后退 1
     */
    @ApiModelProperty(value= "链条后退 1")
    @TableField("chain_reverse_1")
    private String chainReverse1;
 
    /**
     * 变频器报警
     */
    @ApiModelProperty(value= "变频器报警")
    @TableField("inverter_alarm")
    private String inverterAlarm;
 
    /**
     * 左超限 2
     */
    @ApiModelProperty(value= "左超限 2")
    @TableField("left_overlimit_2")
    private String leftOverlimit2;
 
    /**
     * 右超限 2
     */
    @ApiModelProperty(value= "右超限 2")
    @TableField("right_overlimit_2")
    private String rightOverlimit2;
 
    /**
     * 左到位 2
     */
    @ApiModelProperty(value= "左到位 2")
    @TableField("left_at_position_2")
    private String leftAtPosition2;
 
    /**
     * 右到位 2
     */
    @ApiModelProperty(value= "右到位 2")
    @TableField("right_at_position_2")
    private String rightAtPosition2;
 
    /**
     * 货物减速
     */
    @ApiModelProperty(value= "货物减速")
    @TableField("cargo_speed_reduction")
    private String cargoSpeedReduction;
 
    /**
     * 输送变频器报警 2
     */
    @ApiModelProperty(value= "输送变频器报警 2")
    @TableField("conveyor_inverter_alarm_2")
    private String conveyorInverterAlarm2;
 
    /**
     * 左输送 2
     */
    @ApiModelProperty(value= "左输送 2")
    @TableField("left_conveyor_2")
    private String leftConveyor2;
 
    /**
     * 右输送 2
     */
    @ApiModelProperty(value= "右输送 2")
    @TableField("right_conveyor_2")
    private String rightConveyor2;
 
    public BasRgvErrorLog() {}
 
    public BasRgvErrorLog(Integer rgvNo,String emergencyStop,String slot1EmptyNoData,String slot2EmptyNoData,String commandErrorChainConflict,String targetPositionIssue,String travelInverterError,String photoelectric1Error,String photoelectric2Error,String timeoutConnectionWithLine,String leftRollerTimeout,String rightRollerTimeout,String rgvRunTimeout,String position1ChainInverterError,String position2ChainInverterError,String frontRearLimit,String emergencyButton,Date createTime,String forwardButton,String reverseButton,String localRemote,String reset,String travelBrakeSwitch,String travelSpeedLimitPhotoelectric,String leftOverlimit1,String rightOverlimit1,String leftAtPosition1,String rightAtPosition1,String chainForward1,String chainReverse1,String inverterAlarm,String leftOverlimit2,String rightOverlimit2,String leftAtPosition2,String rightAtPosition2,String cargoSpeedReduction,String conveyorInverterAlarm2,String leftConveyor2,String rightConveyor2) {
        this.rgvNo = rgvNo;
        this.emergencyStop = emergencyStop;
        this.slot1EmptyNoData = slot1EmptyNoData;
        this.slot2EmptyNoData = slot2EmptyNoData;
        this.commandErrorChainConflict = commandErrorChainConflict;
        this.targetPositionIssue = targetPositionIssue;
        this.travelInverterError = travelInverterError;
        this.photoelectric1Error = photoelectric1Error;
        this.photoelectric2Error = photoelectric2Error;
        this.timeoutConnectionWithLine = timeoutConnectionWithLine;
        this.leftRollerTimeout = leftRollerTimeout;
        this.rightRollerTimeout = rightRollerTimeout;
        this.rgvRunTimeout = rgvRunTimeout;
        this.position1ChainInverterError = position1ChainInverterError;
        this.position2ChainInverterError = position2ChainInverterError;
        this.frontRearLimit = frontRearLimit;
        this.emergencyButton = emergencyButton;
        this.createTime = createTime;
        this.forwardButton = forwardButton;
        this.reverseButton = reverseButton;
        this.localRemote = localRemote;
        this.reset = reset;
        this.travelBrakeSwitch = travelBrakeSwitch;
        this.travelSpeedLimitPhotoelectric = travelSpeedLimitPhotoelectric;
        this.leftOverlimit1 = leftOverlimit1;
        this.rightOverlimit1 = rightOverlimit1;
        this.leftAtPosition1 = leftAtPosition1;
        this.rightAtPosition1 = rightAtPosition1;
        this.chainForward1 = chainForward1;
        this.chainReverse1 = chainReverse1;
        this.inverterAlarm = inverterAlarm;
        this.leftOverlimit2 = leftOverlimit2;
        this.rightOverlimit2 = rightOverlimit2;
        this.leftAtPosition2 = leftAtPosition2;
        this.rightAtPosition2 = rightAtPosition2;
        this.cargoSpeedReduction = cargoSpeedReduction;
        this.conveyorInverterAlarm2 = conveyorInverterAlarm2;
        this.leftConveyor2 = leftConveyor2;
        this.rightConveyor2 = rightConveyor2;
    }
 
//    BasRgvErrorLog basRgvErrorLog = new BasRgvErrorLog(
//            null,    // 编号
//            null,    // 急停触发
//            null,    // 1号位有物无资料
//            null,    // 2号位有物无资料
//            null,    // 命令错误走链条冲突
//            null,    // 目标位下发错误
//            null,    // 走行变频器异常
//            null,    // 1号光电异常
//            null,    // 2号光电异常
//            null,    // 与输线时接超时
//            null,    // 左侧滚筒运行超时
//            null,    // 右侧滚筒运行超时
//            null,    // rgv运行超时
//            null,    // 1号工位链条变频器异常
//            null,    // 2号工位链条变频器异常
//            null,    // 前后极限位
//            null,    // 急停按钮
//            null,    // 创建时间
//            null,    // 急停按钮
//            null,    // 后退按钮
//            null,    // 本地/远程
//            null,    // 复位
//            null,    // 走行抱闸开关钮
//            null,    // 走行强制减速光电
//            null,    // 左超限 1
//            null,    // 右超限 1
//            null,    // 左到位 1
//            null,    // 右到位 1
//            null,    // 链条前进 1
//            null,    // 链条后退 1
//            null,    // 变频器报警
//            null,    // 左超限 2
//            null,    // 右超限 2
//            null,    // 左到位 2
//            null,    // 右到位 2
//            null,    // 货物减速
//            null,    // 输送变频器报警 2
//            null,    // 左输送 2
//            null    // 右输送 2
//    );
 
    public String getCreateTime$(){
        if (Cools.isEmpty(this.createTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime);
    }
 
 
}