mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-17 16:36:03 +08:00
设备名称的bug处理
This commit is contained in:
@@ -52,7 +52,7 @@
|
|||||||
</update>
|
</update>
|
||||||
|
|
||||||
<insert id="save" parameterType="com.ruoyi.iot.domain.DeviceLog">
|
<insert id="save" parameterType="com.ruoyi.iot.domain.DeviceLog">
|
||||||
INSERT INTO ${database}.${device.serialNumber} USING device_log
|
INSERT INTO ${database}.device_${device.serialNumber} USING device_log
|
||||||
TAGS (#{device.deviceId},
|
TAGS (#{device.deviceId},
|
||||||
#{device.serialNumber},
|
#{device.serialNumber},
|
||||||
#{device.userId},
|
#{device.userId},
|
||||||
@@ -70,7 +70,7 @@
|
|||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<delete id="deleteDeviceLogByDeviceNumber" parameterType="com.ruoyi.iot.domain.DeviceLog">
|
<delete id="deleteDeviceLogByDeviceNumber" parameterType="com.ruoyi.iot.domain.DeviceLog">
|
||||||
DROP TABLE IF EXISTS ${database}.${serialNumber};
|
DROP TABLE IF EXISTS ${database}.device_${serialNumber};
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<select id="selectPropertyLogCount" parameterType="com.ruoyi.iot.domain.Device" resultType="Long">
|
<select id="selectPropertyLogCount" parameterType="com.ruoyi.iot.domain.Device" resultType="Long">
|
||||||
|
|||||||
Reference in New Issue
Block a user