package org.jeecg.modules.energy.service.impl;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.energy.entity.BuAirNoise;
import org.jeecg.modules.energy.entity.BuAirSmoke;
import org.jeecg.modules.energy.entity.BuFlowOnline;
import org.jeecg.modules.energy.mapper.BuAirSmokeMapper;
import org.jeecg.modules.energy.mapper.BuFlowOnlineMapper;
import org.jeecg.modules.energy.service.IBuFlowOnlineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: bu_flow_online
 * @Author: jeecg-boot
 * @Date:   2024-12-28
 * @Version: V1.0
 */
@Service
public class BuFlowOnlineServiceImpl extends ServiceImpl<BuFlowOnlineMapper, BuFlowOnline> implements IBuFlowOnlineService {


    @Autowired
    private BuFlowOnlineMapper buFlowMapper;
    public List<BuFlowOnline> getFlowData() {
        return buFlowMapper.getFlowData();
    }

    @Override
    public List<BuFlowOnline> getllcgqByStatus() {
        return buFlowMapper.getllcgqByStatus();
    }

    @Override
    public IPage<BuFlowOnline> selectByDynamicTable(Page<BuFlowOnline> page, String tableName, String deviceId, String sensorId, String beginTime, String endTime) {
        return buFlowMapper.selectByDynamicTable(page,tableName,deviceId,sensorId,beginTime,endTime);
    }
    @Override
    public List<BuFlowOnline> selectByDynamicTable(String tableName, String deviceId, String sensorId, String beginTime, String endTime) {
        return buFlowMapper.selectByDynamicTable(tableName,deviceId,sensorId,beginTime,endTime);
    }

}
