package com.kcim.dao.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kcim.dao.model.ComputeShareParam;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kcim.vo.ComputeDateShareParamVo;
import com.kcim.vo.ComputeShareParamDetailVo;
import com.kcim.vo.ComputeShareParamSumVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 项目分摊参数计算表
 * 
 * @author Wang.YS
 * @date 2024-01-15 20:23:56
 */
@Mapper
public interface ComputeShareParamMapper extends BaseMapper<ComputeShareParam> {

    List<ComputeDateShareParamVo> getByPage(Page<ComputeDateShareParamVo> page,
                                            @Param("computeDate") String computeDate,
                                            @Param("itemType") String itemType,
                                            @Param("responsibility") String responsibility,
                                            @Param("itemFilter") String itemFilter,
                                            @Param("hospId") Long hospId);

    List<ComputeShareParamSumVo> getComputeShareParamSum(@Param("computeDate") String computeDate, @Param("hospId") Long hospId);

    List<ComputeShareParamDetailVo> getComputeShareParamDetail(String computeDate, Long hospId);

    List<ComputeShareParamDetailVo> getComputeShareParamDetailGroup(String computeDate, Long hospId);

    List<ComputeShareParamDetailVo> getComputeResponsibilityItem(String computeDate, Long hospId);
}
