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.ComputeItemCost;
import com.kcim.dao.model.dto.ComputeItemCostPageDto;
import com.kcim.dao.model.dto.ComputeItemGroupByOrder;
import com.kcim.dao.model.dto.ComputeItemGroupByVisitNoDto;
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 ComputeItemCostMapper extends BaseMapper<ComputeItemCost> {

    List<ComputeItemCostPageDto> getByPage(Page<ComputeItemCostPageDto> page,
                                           @Param("computeDate") String computeDate,
                                           @Param("itemType")String itemType,
                                           @Param("itemName")String itemName,
                                           @Param("hospId")Long hospId);

    List<ComputeItemGroupByVisitNoDto> getListGroupByVisitNo(@Param("computeDate") String computeDate,
                                                             @Param("hospId")Long hospId);




    List<ComputeItemGroupByOrder> getListGroupByOrder(@Param("computeDate") String computeDate,
                                                        @Param("hospId")Long hospId);
}
