Commit f02bc384 by levphon

设备位置点数据落库单元测试

1 parent e75be99b
...@@ -20,7 +20,7 @@ public class DeviceLocation { ...@@ -20,7 +20,7 @@ public class DeviceLocation {
@Id @Id
@Column(name = "id", unique = true, nullable = false) @Column(name = "id", unique = true, nullable = false)
@GeneratedValue(strategy = GenerationType.IDENTITY, generator = "SELECT LAST_INSERT_ID()") @GeneratedValue(strategy = GenerationType.IDENTITY, generator = "SELECT LAST_INSERT_ID()")
private Integer id; private Long id;
/** /**
* 设备号 * 设备号
...@@ -30,11 +30,13 @@ public class DeviceLocation { ...@@ -30,11 +30,13 @@ public class DeviceLocation {
/** /**
* 最后gps时间 * 最后gps时间
*/ */
@Column(name = "last_gps_time")
private Date lastGpsTime; private Date lastGpsTime;
/** /**
* 最后基站时间 * 最后基站时间
*/ */
@Column(name = "last_bs_time")
private Date lastBsTime; private Date lastBsTime;
/** /**
...@@ -45,20 +47,25 @@ public class DeviceLocation { ...@@ -45,20 +47,25 @@ public class DeviceLocation {
/** /**
* 对应大数据侧状态 1、静止 3、行驶 * 对应大数据侧状态 1、静止 3、行驶
*/ */
@Column(name = "stay_status")
private Integer stayStatus; private Integer stayStatus;
/** /**
* 设备状态最新更新时间 * 设备状态最新更新时间
*/ */
@Column(name = "stay_status_updatetime")
private Date stayStatusUpdatetime; private Date stayStatusUpdatetime;
/** /**
* 创建时间 * 创建时间
*/ */
@Column(name = "created_time")
private Date createdTime; private Date createdTime;
/** /**
* 更新时间 * 更新时间
*/ */
@Column(name = "updated_time")
private Date updatedTime; private Date updatedTime;
} }
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!