package org.jeecg.modules.energy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.energy.entity.BuAirQuality;

import java.util.List;


/**
 * @Description: bu_air_quality
 * @Author: jeecg-boot
 * @Date:   2024-05-09
 * @Version: V1.0
 */
public interface BuAirQualityMapper extends BaseMapper<BuAirQuality> {

//    public BuAirQuality getBySensorId(@Param("tableName") String tableName, @Param("sensorId") String sensorId);
    public List<BuAirQuality> getBySensorId(@Param("tableName") String tableName, @Param("sensorId") String sensorId);
    public List<BuAirQuality> getAirQualityData();
    public List<BuAirQuality> getAirQualityByStatus();
    public List<BuAirQuality> getByTableName(@Param("tableName") String tableName);

    IPage<BuAirQuality> selectByDynamicTable(Page<BuAirQuality> page, String tableName, String deviceId, String sensorId, String beginTime, String endTime);
    List<BuAirQuality> selectByDynamicTable(String tableName, String deviceId, String sensorId, String beginTime, String endTime);
}
