feat:simulator1
This commit is contained in:
@@ -6,13 +6,13 @@
|
||||
|
||||
<!-- 创建设备日志超级表 初始化只创建一次-->
|
||||
<update id="createDeviceLogSTable">
|
||||
CREATE STABLE device_log (
|
||||
CREATE STABLE IF NOT EXISTS device_log (
|
||||
ts TIMESTAMP,
|
||||
id NCHAR(50),
|
||||
product_key NCHAR(50),
|
||||
type NCHAR(50),
|
||||
<!-- TODO @super:下划线 sub_type -->
|
||||
subType NCHAR(50),
|
||||
sub_type NCHAR(50),
|
||||
content NCHAR(1024),
|
||||
report_time TIMESTAMP
|
||||
) TAGS (
|
||||
@@ -75,4 +75,9 @@
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<!-- 检查设备日志超级表是否存在 -->
|
||||
<select id="checkDeviceLogTableExists" resultType="Object">
|
||||
SHOW TABLES LIKE 'device_log';
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user