|
|
@@ -36,8 +36,11 @@ public interface TDDeviceMapper extends BaseMapperX<TDDeviceDO> {
|
|
|
List<DeviceVO> selectNew(@Param("deviceName") String tableName);
|
|
|
|
|
|
|
|
|
- @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') ")
|
|
|
+// @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') ")
|
|
|
+ @Select("SELECT ts FROM iot_log.device_${deviceName} " +
|
|
|
+ "where identity not in ('lng','lat','today_distance','distance','todayoil','totaloil','online','oil1','oil2','oil3','oil4','vehicle_name') " +
|
|
|
+ "ORDER BY ts DESC LIMIT 1")
|
|
|
@DS("tdengine")
|
|
|
@TenantIgnore
|
|
|
List<DeviceVO> selectLastTime(@Param("deviceName") String tableName);
|