|
|
@@ -4,12 +4,14 @@ import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
|
|
|
import cn.iocoder.yudao.framework.tenant.core.aop.TenantIgnore;
|
|
|
import cn.iocoder.yudao.module.pms.controller.admin.vo.DeviceTdVO;
|
|
|
import cn.iocoder.yudao.module.pms.controller.admin.vo.DeviceVO;
|
|
|
-import cn.iocoder.yudao.module.pms.dal.dataobject.iotZHBD.DeviceLogDO;
|
|
|
import cn.iocoder.yudao.module.pms.dal.dataobject.TDDeviceDO;
|
|
|
import cn.iocoder.yudao.module.pms.dal.dataobject.iotZHBD.TDLogDO;
|
|
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
|
|
import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
|
|
|
-import org.apache.ibatis.annotations.*;
|
|
|
+import org.apache.ibatis.annotations.Insert;
|
|
|
+import org.apache.ibatis.annotations.Mapper;
|
|
|
+import org.apache.ibatis.annotations.Param;
|
|
|
+import org.apache.ibatis.annotations.Select;
|
|
|
|
|
|
import java.sql.Timestamp;
|
|
|
import java.util.List;
|
|
|
@@ -132,14 +134,14 @@ public interface TDDeviceMapper extends BaseMapperX<TDDeviceDO> {
|
|
|
List<DeviceVO> selectAllBtTimeAndIdentifier(@Param("deviceName") String tableName, @Param("identifier") String identifier,@Param("start") Timestamp start,@Param("end") Timestamp end);
|
|
|
|
|
|
@Select("SELECT ts, CAST(log_value AS FLOAT) as log_value,identity FROM iot_log.device_${deviceName} " +
|
|
|
- "WHERE ts between #{start} and #{end} ORDER BY ts DESC LIMIT #{pageSize} " )
|
|
|
+ "WHERE ts between #{start} and #{end} and identity not in ('online','todayoil','totaloil','distance','vehicle_name','oil1','lng','lat','today_distance','oil4','oil3','oil2') ORDER BY ts DESC LIMIT #{pageSize} " )
|
|
|
@DS("tdengine")
|
|
|
@TenantIgnore
|
|
|
@InterceptorIgnore(tenantLine = "true")
|
|
|
List<DeviceVO> selectAllBtTime(@Param("deviceName") String tableName,@Param("start") Timestamp start,@Param("end") Timestamp end, @Param("pageSize") Integer pageSize);
|
|
|
|
|
|
@Select("SELECT ts, CAST(log_value AS FLOAT) as log_value,identity FROM iot_log.device_${deviceName} " +
|
|
|
- "WHERE ts between #{start} and #{end} and identity = #{identifier} ORDER BY ts DESC LIMIT #{pageSize} " )
|
|
|
+ "WHERE ts between #{start} and #{end} and identity = #{identifier} and identity not in ('online','todayoil','totaloil','distance','vehicle_name','oil1','lng','lat','today_distance','oil4','oil3','oil2') ORDER BY ts DESC LIMIT #{pageSize} " )
|
|
|
@DS("tdengine")
|
|
|
@TenantIgnore
|
|
|
@InterceptorIgnore(tenantLine = "true")
|