[fix]:code review

This commit is contained in:
alwayssuper
2025-01-20 16:31:37 +08:00
parent 495ae4526b
commit 9f3730d5d9
6 changed files with 77 additions and 55 deletions

View File

@@ -27,11 +27,11 @@
<!-- 插入设备日志数据 在子表不存在的情况下 可在数据插入时 自动建表 -->
<insert id="insert">
INSERT INTO device_log_${log.deviceKey} (ts, id, product_key, type, subType, content, report_time)
INSERT INTO device_log_${log.deviceKey} (id, product_key, type, subType, content, report_time)
USING device_log
TAGS ('${log.deviceKey}')
VALUES (
#{log.ts},
NOW,
#{log.id},
#{log.productKey},
#{log.type},
@@ -77,7 +77,7 @@
<!-- 检查设备日志超级表是否存在 -->
<select id="checkDeviceLogTableExists" resultType="Object">
SHOW TABLES LIKE 'device_log';
SHOW STABLES LIKE 'device_log'
</select>
</mapper>