Przeglądaj źródła

Merge remote-tracking branch 'origin/master'

zhangcl 14 godzin temu
rodzic
commit
e2d8d01b3a

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

@@ -34,7 +34,8 @@ public interface TDDeviceMapper extends BaseMapperX<TDDeviceDO> {
     List<DeviceVO> selectNew(@Param("deviceName") String tableName);
 
 
-    @Select("SELECT LAST(ts) as ts FROM iot_log.device_${deviceName} ")
+    @Select("SELECT LAST(ts) as ts FROM iot_log.device_${deviceName} where identity not in ('lng','lat','today_distance','distance','todayoil','totaloil','online','oil1','oil2','oil3'," +
+            "'oil4','vehicle_name') ")
     @DS("tdengine")
     @TenantIgnore
     List<DeviceVO> selectLastTime(@Param("deviceName") String tableName);