| 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 io.swagger.annotations.ApiModelProperty; | 
| import lombok.Data; | 
| import com.baomidou.mybatisplus.annotations.TableName; | 
| import java.io.Serializable; | 
|   | 
| @Data | 
| @TableName("wcs_device_data_log") | 
| public class DeviceDataLog implements Serializable { | 
|   | 
|     private static final long serialVersionUID = 1L; | 
|   | 
|     @ApiModelProperty(value= "") | 
|     @TableId(value = "id", type = IdType.AUTO) | 
|     private Long id; | 
|   | 
|     /** | 
|      * 设备类型 | 
|      */ | 
|     @ApiModelProperty(value= "设备类型") | 
|     private String type; | 
|   | 
|     /** | 
|      * 设备号 | 
|      */ | 
|     @ApiModelProperty(value= "设备号") | 
|     @TableField("device_no") | 
|     private Integer deviceNo; | 
|   | 
|     /** | 
|      * 源数据 | 
|      */ | 
|     @ApiModelProperty(value= "源数据") | 
|     @TableField("origin_data") | 
|     private String originData; | 
|   | 
|     /** | 
|      * 源数据解析后得到的wcs数据 | 
|      */ | 
|     @ApiModelProperty(value= "源数据解析后得到的wcs数据") | 
|     @TableField("wcs_data") | 
|     private String wcsData; | 
|   | 
|     /** | 
|      * 采集时间 | 
|      */ | 
|     @ApiModelProperty(value= "采集时间") | 
|     @TableField("create_time") | 
|     @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") | 
|     private Date createTime; | 
|   | 
|     public DeviceDataLog() {} | 
|   | 
|     public DeviceDataLog(String type,Integer deviceNo,String originData,String wcsData,Date createTime) { | 
|         this.type = type; | 
|         this.deviceNo = deviceNo; | 
|         this.originData = originData; | 
|         this.wcsData = wcsData; | 
|         this.createTime = createTime; | 
|     } | 
|   | 
| //    DeviceDataLog deviceDataLog = new DeviceDataLog( | 
| //            null,    // 设备类型 | 
| //            null,    // 设备号 | 
| //            null,    // 源数据 | 
| //            null,    // 源数据解析后得到的wcs数据 | 
| //            null    // 采集时间 | 
| //    ); | 
|   | 
|     public String getCreateTime$(){ | 
|         if (Cools.isEmpty(this.createTime)){ | 
|             return ""; | 
|         } | 
|         return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); | 
|     } | 
|   | 
|   | 
| } |