|  |  | 
 |  |  |     private static final long serialVersionUID = 1L; | 
 |  |  |  | 
 |  |  |     @ApiModelProperty(value= "") | 
 |  |  |     @TableId(value = "id", type = IdType.AUTO) | 
 |  |  |     @TableId(value = "ID", type = IdType.AUTO) | 
 |  |  |     @TableField("ID") | 
 |  |  |     private Long id; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 设备 | 
 |  |  |      */ | 
 |  |  |     @ApiModelProperty(value= "设备") | 
 |  |  |     @TableField("DEVICE") | 
 |  |  |     private String device; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 异常信息 | 
 |  |  |      */ | 
 |  |  |     @ApiModelProperty(value= "异常信息") | 
 |  |  |     @TableField("MSG") | 
 |  |  |     private String msg; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 设备ID | 
 |  |  |      */ | 
 |  |  |     @ApiModelProperty(value= "设备ID") | 
 |  |  |     @TableField("device_id") | 
 |  |  |     @TableField("DEVICE_ID") | 
 |  |  |     private Integer deviceId; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 创建时间 | 
 |  |  |      */ | 
 |  |  |     @ApiModelProperty(value= "创建时间") | 
 |  |  |     @TableField("create_time") | 
 |  |  |     @TableField("CREATE_TIME") | 
 |  |  |     @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") | 
 |  |  |     private Date createTime; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 异常信息 | 
 |  |  |      */ | 
 |  |  |     @ApiModelProperty(value= "异常信息") | 
 |  |  |     private String msg; | 
 |  |  |  | 
 |  |  |     public DeviceError() {} | 
 |  |  |  | 
 |  |  |     public DeviceError(String device,Integer deviceId,Date createTime,String msg) { | 
 |  |  |     public DeviceError(Long id, String device, String msg, Integer deviceId, Date createTime) { | 
 |  |  |         this.id = id; | 
 |  |  |         this.device = device; | 
 |  |  |         this.msg = msg; | 
 |  |  |         this.deviceId = deviceId; | 
 |  |  |         this.createTime = createTime; | 
 |  |  |         this.msg = msg; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | //    DeviceError deviceError = new DeviceError( | 
 |  |  |     //    DeviceError deviceError = new DeviceError( | 
 |  |  | //            null,    // 设备 | 
 |  |  | //            null,    // 设备ID | 
 |  |  | //            null,    // 创建时间 |