package com.kcim.dao.mapper;

import com.kcim.dao.model.CostDepartmentProfit;
import com.kcim.vo.CostProfitVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 科室损益计算
 * 
 * @author KCYG
 * @date 2021-08-24 16:24:08
 */
@Mapper
public interface CostDepartmentProfitMapper extends GenericBatchMapper<CostDepartmentProfit> {


    Integer getMaxYear(@Param("hospId") Long hospId);

    Integer getMaxMonth(@Param("hospId") Long hospId, @Param("year") Integer year);


    List<CostProfitVo> getAnnualSummaryByYearRange(@Param("startYear") Integer startYear,
                                                @Param("endYear") Integer endYear,
                                                @Param("hospId") Long hospId,
                                                @Param("reportType") Integer reportType,
                                                @Param("responsibilityCode") String responsibilityCode);

    List<CostProfitVo> getAnnualSummaryByYear(@Param("year") Integer year,
                                              @Param("hospId") Long hospId,
                                              @Param("reportType") Integer reportType,
                                              @Param("responsibilityCode") String responsibilityCode);
}
