package com.kcim.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kcim.dao.model.ComputePatientCost;
import com.kcim.dao.model.dto.ComputePatientCostGroupByDepartmentDto;
import com.kcim.dao.model.dto.ComputePatientCostPageDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 病人成本计算表
 * 
 * @author Wang.YS
 * @date 2023-10-17 15:35:58
 */
@Mapper
public interface ComputePatientCostMapper extends BaseMapper<ComputePatientCost> {

    List<ComputePatientCostPageDto> getByPage(Page<ComputePatientCostPageDto> page,
                                              @Param("computeDate") String computeDate,
                                              @Param("departmentName") String departmentName,
                                              @Param("patientName") String patientName,
                                              @Param("hospId") Long hospId);

    List<ComputePatientCostGroupByDepartmentDto> getListGroupByDepartment(@Param("computeDate") String computeDate,
                                                                          @Param("hospId")Long hospId);
}
