lipenghui il y a 3 mois
Parent
commit
19e8c4613b

+ 1 - 1
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/dal/mysql/TDDeviceMapper.java

@@ -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")
     @TenantIgnore
     Integer tableIfExist(@Param("deviceName") String tableName);