@@ -56,7 +56,7 @@ public interface TDDeviceMapper extends BaseMapperX<TDDeviceDO> {
@TenantIgnore
List<DeviceVO> selectLastParam(@Param("deviceName") String tableName, @Param("params") List<String> params);
- @Select({"SELECT COUNT(*) FROM information_schema.ins_tables WHERE table_name = 'device_${deviceName}';"})
+ @Select({"SELECT COUNT(*) FROM information_schema.ins_tables WHERE table_name = 'iot_log.device_${deviceName}';"})
@DS("tdengine")
Integer tableIfExist(@Param("deviceName") String tableName);