feat:simulator1

This commit is contained in:
alwayssuper
2025-01-12 20:13:41 +08:00
parent f1d887d0e0
commit 62a868f497
7 changed files with 40 additions and 74 deletions

View File

@@ -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>