1
5 天以前 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
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
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_devp_error_log")
public class BasDevpErrorLog implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * 输送编号
     */
    @ApiModelProperty(value= "输送编号")
    @TableField("dev_no")
    private Integer devNo;
 
    /**
     * 物体进/出超时
     */
    @ApiModelProperty(value= "物体进/出超时")
    @TableField("pass_time_out")
    private String passTimeOut;
 
    /**
     * 有物体无数据
     */
    @ApiModelProperty(value= "有物体无数据")
    @TableField("object_no_id_error")
    private String objectNoIdError;
 
    /**
     * 有数据无物体
     */
    @ApiModelProperty(value= "有数据无物体")
    @TableField("id_no_object_error")
    private String idNoObjectError;
 
    /**
     * 线体电机热继报警
     */
    @ApiModelProperty(value= "线体电机热继报警")
    @TableField("lmfr_error")
    private String lmfrError;
 
    /**
     * 顶升报警
     */
    @ApiModelProperty(value= "顶升报警")
    @TableField("lift_error")
    private String liftError;
 
    /**
     * 顶升电机热继报警
     */
    @ApiModelProperty(value= "顶升电机热继报警")
    @TableField("dlfr_error")
    private String dlfrError;
 
    /**
     * 顶升横移电机热继报警
     */
    @ApiModelProperty(value= "顶升横移电机热继报警")
    @TableField("dmfr_error")
    private String dmfrError;
 
    /**
     * 变频故障
     */
    @ApiModelProperty(value= "变频故障")
    @TableField("vfd_error")
    private String vfdError;
 
    /**
     * 伺服故障
     */
    @ApiModelProperty(value= "伺服故障")
    @TableField("srv_error")
    private String srvError;
 
    /**
     * 预留1
     */
    @ApiModelProperty(value= "预留1")
    private String res1;
 
    /**
     * 预留2
     */
    @ApiModelProperty(value= "预留2")
    private String res2;
 
    /**
     * 预留3
     */
    @ApiModelProperty(value= "预留3")
    private String res3;
 
    /**
     * 与上位机通讯超时
     */
    @ApiModelProperty(value= "与上位机通讯超时")
    @TableField("communication_time_out")
    private String communicationTimeOut;
 
    /**
     * 信息参数不全
     */
    @ApiModelProperty(value= "信息参数不全")
    @TableField("parameter_incomplete_error")
    private String parameterIncompleteError;
 
    /**
     * 信息数据未清除
     */
    @ApiModelProperty(value= "信息数据未清除")
    @TableField("data_not_clear")
    private String dataNotClear;
 
    /**
     * 参数设置报警
     */
    @ApiModelProperty(value= "参数设置报警")
    @TableField("set_parameter_error")
    private String setParameterError;
 
    /**
     * 创建时间
     */
    @ApiModelProperty(value= "创建时间")
    @TableField("create_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
 
    @ApiModelProperty(value= "")
    @TableField("in_enable")
    private String inEnable;
 
    @ApiModelProperty(value= "")
    @TableField("out_enable")
    private String outEnable;
 
    /**
     * 数据错误
     */
    @ApiModelProperty(value= "数据错误")
    @TableField("data_error")
    private String dataError;
 
    @ApiModelProperty(value= "")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
 
    /**
     * 直线光电
     */
    @ApiModelProperty(value= "直线光电")
    @TableField("sensorG_arrive")
    private String sensorGArrive;
 
    /**
     * 减速光电
     */
    @ApiModelProperty(value= "减速光电")
    @TableField("sensorG_dec")
    private String sensorGDec;
 
    /**
     * 直线凸出
     */
    @ApiModelProperty(value= "直线凸出")
    @TableField("sensorG_arrive2")
    private String sensorGArrive2;
 
    /**
     * 限位保护光电
     */
    @ApiModelProperty(value= "限位保护光电")
    @TableField("sensor_limit")
    private String sensorLimit;
 
    /**
     * 急停
     */
    @ApiModelProperty(value= "急停")
    private String emergency;
 
    /**
     * 光电离开1
     */
    @ApiModelProperty(value= "光电离开1")
    @TableField("sensorG_leave")
    private String sensorGLeave;
 
    /**
     * 光电离开2
     */
    @ApiModelProperty(value= "光电离开2")
    @TableField("sensorG_leave2")
    private String sensorGLeave2;
 
    /**
     * 顶升上升
     */
    @ApiModelProperty(value= "顶升上升")
    @TableField("sensorC_up")
    private String sensorCUp;
 
    /**
     * 顶升下降
     */
    @ApiModelProperty(value= "顶升下降")
    @TableField("sensorC_down")
    private String sensorCDown;
 
    /**
     * 顶升热继
     */
    @ApiModelProperty(value= "顶升热继")
    @TableField("lift_motor_fr")
    private String liftMotorFr;
 
    /**
     * 直线热继
     */
    @ApiModelProperty(value= "直线热继")
    @TableField("line_motor_fr")
    private String lineMotorFr;
 
    /**
     * 移栽热继
     */
    @ApiModelProperty(value= "移栽热继")
    @TableField("tran_motor_fr")
    private String tranMotorFr;
 
    /**
     * 备用1
     */
    @ApiModelProperty(value= "备用1")
    private String rst1;
 
    /**
     * 备用2
     */
    @ApiModelProperty(value= "备用2")
    private String rst2;
 
    /**
     * 备用3
     */
    @ApiModelProperty(value= "备用3")
    private String rst3;
 
    /**
     * 备用4
     */
    @ApiModelProperty(value= "备用4")
    private String rst4;
 
    /**
     * 直行方向到位
     */
    @ApiModelProperty(value= "直行方向到位")
    @TableField("sensor_arrive_d")
    private String sensorArriveD;
 
    /**
     * 直行方向减速
     */
    @ApiModelProperty(value= "直行方向减速")
    @TableField("sensor_dec_d")
    private String sensorDecD;
 
    /**
     * 左移方向到位
     */
    @ApiModelProperty(value= "左移方向到位")
    @TableField("sensor_arrive_l")
    private String sensorArriveL;
 
    /**
     * 左移方向减速
     */
    @ApiModelProperty(value= "左移方向减速")
    @TableField("sensor_dec_l")
    private String sensorDecL;
 
    /**
     * 右移方向到位
     */
    @ApiModelProperty(value= "右移方向到位")
    @TableField("sensor_arrive_r")
    private String sensorArriveR;
 
    /**
     * 右移方向减速
     */
    @ApiModelProperty(value= "右移方向减速")
    @TableField("sensor_dec_r")
    private String sensorDecR;
 
    public BasDevpErrorLog() {}
 
    public BasDevpErrorLog(Integer devNo,String passTimeOut,String objectNoIdError,String idNoObjectError,String lmfrError,String liftError,String dlfrError,String dmfrError,String vfdError,String srvError,String res1,String res2,String res3,String communicationTimeOut,String parameterIncompleteError,String dataNotClear,String setParameterError,Date createTime,String inEnable,String outEnable,String dataError,String sensorGArrive,String sensorGDec,String sensorGArrive2,String sensorLimit,String emergency,String sensorGLeave,String sensorGLeave2,String sensorCUp,String sensorCDown,String liftMotorFr,String lineMotorFr,String tranMotorFr,String rst1,String rst2,String rst3,String rst4,String sensorArriveD,String sensorDecD,String sensorArriveL,String sensorDecL,String sensorArriveR,String sensorDecR) {
        this.devNo = devNo;
        this.passTimeOut = passTimeOut;
        this.objectNoIdError = objectNoIdError;
        this.idNoObjectError = idNoObjectError;
        this.lmfrError = lmfrError;
        this.liftError = liftError;
        this.dlfrError = dlfrError;
        this.dmfrError = dmfrError;
        this.vfdError = vfdError;
        this.srvError = srvError;
        this.res1 = res1;
        this.res2 = res2;
        this.res3 = res3;
        this.communicationTimeOut = communicationTimeOut;
        this.parameterIncompleteError = parameterIncompleteError;
        this.dataNotClear = dataNotClear;
        this.setParameterError = setParameterError;
        this.createTime = createTime;
        this.inEnable = inEnable;
        this.outEnable = outEnable;
        this.dataError = dataError;
        this.sensorGArrive = sensorGArrive;
        this.sensorGDec = sensorGDec;
        this.sensorGArrive2 = sensorGArrive2;
        this.sensorLimit = sensorLimit;
        this.emergency = emergency;
        this.sensorGLeave = sensorGLeave;
        this.sensorGLeave2 = sensorGLeave2;
        this.sensorCUp = sensorCUp;
        this.sensorCDown = sensorCDown;
        this.liftMotorFr = liftMotorFr;
        this.lineMotorFr = lineMotorFr;
        this.tranMotorFr = tranMotorFr;
        this.rst1 = rst1;
        this.rst2 = rst2;
        this.rst3 = rst3;
        this.rst4 = rst4;
        this.sensorArriveD = sensorArriveD;
        this.sensorDecD = sensorDecD;
        this.sensorArriveL = sensorArriveL;
        this.sensorDecL = sensorDecL;
        this.sensorArriveR = sensorArriveR;
        this.sensorDecR = sensorDecR;
    }
 
//    BasDevpErrorLog basDevpErrorLog = new BasDevpErrorLog(
//            null,    // 输送编号
//            null,    // 物体进/出超时
//            null,    // 有物体无数据
//            null,    // 有数据无物体
//            null,    // 线体电机热继报警
//            null,    // 顶升报警
//            null,    // 顶升电机热继报警
//            null,    // 顶升横移电机热继报警
//            null,    // 变频故障
//            null,    // 伺服故障
//            null,    // 预留1
//            null,    // 预留2
//            null,    // 预留3
//            null,    // 与上位机通讯超时
//            null,    // 信息参数不全
//            null,    // 信息数据未清除
//            null,    // 参数设置报警
//            null,    // 创建时间
//            null,    // 
//            null,    // 
//            null,    // 数据错误
//            null,    // 直线光电
//            null,    // 减速光电
//            null,    // 直线凸出
//            null,    // 限位保护光电
//            null,    // 急停
//            null,    // 光电离开1
//            null,    // 光电离开2
//            null,    // 顶升上升
//            null,    // 顶升下降
//            null,    // 顶升热继
//            null,    // 直线热继
//            null,    // 移栽热继
//            null,    // 备用1
//            null,    // 备用2
//            null,    // 备用3
//            null,    // 备用4
//            null,    // 直行方向到位
//            null,    // 直行方向减速
//            null,    // 左移方向到位
//            null,    // 左移方向减速
//            null,    // 右移方向到位
//            null    // 右移方向减速
//    );
 
    public String getCreateTime$(){
        if (Cools.isEmpty(this.createTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime);
    }
 
 
}