package org.jeecg.modules.energy.mapper;

import java.util.List;

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

/**
 * @Description: bu_air_water_online
 * @Author: jeecg-boot
 * @Date:   2024-10-11
 * @Version: V1.0
 */
public interface BuAirWaterMapper extends BaseMapper<BuAirWater> {


    public List<BuAirWater> getBySensorId(@Param("tableName") String tableName, @Param("sensorId") String sensorId);

    public List<BuAirWater> getAirWaterData();

    public List<BuAirWater> getAirWaterByStatus();

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

}
