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


import org.jeecg.modules.energy.entity.BuAirQuality;
import org.jeecg.modules.energy.entity.BuVibration;
import org.jeecg.modules.energy.mapper.BuAirQualityMapper;
import org.jeecg.modules.energy.mapper.BuVibrationMapper;
import org.jeecg.modules.energy.service.IBuVibrationService;
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: 振动数据表模板
 * @Author: jeecg-boot
 * @Date:   2024-05-09
 * @Version: V1.0
 */
@Service
public class BuVibrationServiceImpl extends ServiceImpl<BuVibrationMapper, BuVibration> implements IBuVibrationService {

    @Autowired
    private BuVibrationMapper buVibrationMapper;

//    @Override
//    public BuVibration getBySensorId(String tableName, String sensorId){
//        return buVibrationMapper.getBySensorId(tableName,sensorId);
//    }
    @Override
    public List<BuVibration> getBySensorId(String tableName, String sensorId){
        return buVibrationMapper.getBySensorId(tableName,sensorId);
    }
    @Override
    public List<BuVibration> getBySensorIdLimit(String tableName, String sensorId){
        return buVibrationMapper.getBySensorIdLimit(tableName,sensorId);
    }

    @Override
    public List<BuVibration> getBuVibrationData() {
        return buVibrationMapper.getBuVibrationData();
    }
    @Override
    public List<BuVibration> getVibrationByStatus() {
        return buVibrationMapper.getVibrationByStatus();
    }
}
