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

import org.jeecg.modules.statistics.entity.BuDeviceEnergyStatistics;
import org.jeecg.modules.statistics.mapper.BuDeviceEnergyStatisticsMapper;
import org.jeecg.modules.statistics.service.IBuDeviceEnergyStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

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

/**
 * @Description: bu_device_energy_statistics
 * @Author: jeecg-boot
 * @Date:   2024-05-09
 * @Version: V1.0
 */
@Service
public class BuDeviceEnergyStatisticsServiceImpl extends ServiceImpl<BuDeviceEnergyStatisticsMapper, BuDeviceEnergyStatistics> implements IBuDeviceEnergyStatisticsService {
    @Autowired
    private BuDeviceEnergyStatisticsMapper buDeviceEnergyStatisticsMapper;

    @Override
    public String lineSystemStatistics(String year,String deviceId,Integer result) {
        return buDeviceEnergyStatisticsMapper.lineSystemStatistics(year,deviceId,result);
    }

    @Override
    public String lineSystemStatisticsNoId(String year ,Integer result) {
        return buDeviceEnergyStatisticsMapper.lineSystemStatisticsNoId(year,result);
    }

    @Override
    public String lineSystemStatistics1(String year,String month,String deviceId,Integer result) {
        return buDeviceEnergyStatisticsMapper.lineSystemStatistics1(year,month,deviceId,result);
    }

    @Override
    public String getDevicePower(String id,String beginTime,String endTime) {
        return buDeviceEnergyStatisticsMapper.getDevicePower(id,beginTime,endTime);
    }
}
