package com.diagbot.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.diagbot.dto.AverageStatisticsDTO;
import com.diagbot.dto.AverageStatisticsFeeDTO;
import com.diagbot.entity.HomePage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.diagbot.vo.FilterPageByAverageVO;
import com.diagbot.vo.FilterVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhoutg
 * @time: 2024-04-13
 */
public interface HomePageService extends IService<HomePage> {
    /**
     * 按科室统计平均住院天数
     *
     * @param filterVO
     * @return
     */
    public List<AverageStatisticsDTO> getAverageDayNum(FilterVO filterVO);

    /**
     * 按科室统计平均费用
     *
     * @param filterVO
     * @return
     */
    public List<AverageStatisticsDTO> getAverageFee(FilterVO filterVO);

    /**
     * 按科室统计平均住院天数（分页）
     *
     * @param filterPageByAverageVO
     * @return
     */
    public IPage<AverageStatisticsDTO> getAverageDayNumPage(@Param("filterPageByAverageVO") FilterPageByAverageVO filterPageByAverageVO);

    /**
     * 按科室统计平均费用（分页）
     *
     * @param filterPageByAverageVO
     * @return
     */
    public IPage<AverageStatisticsFeeDTO> getAverageFeePage(@Param("filterPageByAverageVO") FilterPageByAverageVO filterPageByAverageVO);
}
