| | |
| | | package com.qianwen.mdc.collect.mapper.iotdb; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | | import com.baomidou.mybatisplus.annotation.InterceptorIgnore; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.qianwen.mdc.collect.dto.StateAggregateTimeDTO; |
| | | import com.qianwen.mdc.collect.entity.iotdb.AggregateState; |
| | | |
| | | @DS("iotdb") |
| | | @InterceptorIgnore(tenantLine = "true") |
| | | public interface AggregateStateMapper extends BaseMapper<AggregateState> { |
| | | |
| | | |
| | | /** |
| | | * 获得时间区间内的聚合状态数据 |
| | | * @param workstationId |
| | | * @param timeRange |
| | | * @return |
| | | */ |
| | | List<AggregateState> aggregateStatesInTimeRange(@Param("workstationId") Long workstationId,@Param("timeRange") StateAggregateTimeDTO timeRange); |
| | | } |