#
1
14 小时以前 72ce003daa99f4e36466e7fc146e6c14bfc6438f
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
package com.zy.asrs.entity;
 
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
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 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= "")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 输送编号
     */
    @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;
 
    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) {
        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;
    }
 
//    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    // 
//    );
 
    public String getCreateTime$(){
        if (Cools.isEmpty(this.createTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime);
    }
 
 
}