package com.nantian.cloud.jljc.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nantian.cloud.jljc.entity.TReportEnergysTructure;
import com.baomidou.mybatisplus.extension.service.IService;
import com.nantian.cloud.jljc.vo.TReportEnergysTructureVo;

import java.util.List;

/**
 * 报表1-2能源消费表 服务类
 * @since 2020-09-16
 * @author stz
 */
public interface TReportEnergysTructureService extends IService<TReportEnergysTructure> {

    //通过能源报表id获取能源消费表信息
    List<TReportEnergysTructure> getTructureByReportId(Long reportId);

    //获取完整的能源消费表信息
    //List<TReportEnergysTructureVo> getAllTructureByReportId(Long reportId);
    List<TReportEnergysTructure> getAllTructureByReportId(Long reportId);

    //根据报表id，能源名称获取能源消费表信息
    //List<TReportEnergysTructureVo> getTructureByReportIdAndName(Long reportId,String name);
    List<TReportEnergysTructure> getTructureByReportIdAndName(Long reportId,String name);

    //获取单条合计信息
    TReportEnergysTructure getSumInfo(Long reportId,String name);

    //分页查询能源消费表
    IPage<TReportEnergysTructure> selByPage(Page page, TReportEnergysTructure tReportEnergysTructure);

    //获取能源名称
    List<String> getEnergyName(Long reportId);
}
