package com.openhis.administration.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.openhis.administration.domain.ChargeItem;
import com.openhis.administration.dto.ChargeItemBaseInfoDto;
import com.openhis.administration.dto.ChargeItemDefInfo;

/**
 * 费用项管理Mapper接口
 *
 * @author system
 * @date 2025-02-20
 */
@Repository
public interface ChargeItemMapper extends BaseMapper<ChargeItem> {

    /**
     * 根据收费项的ID查找基础信息
     * 
     * @param chargeItemIds
     * @return
     */
    List<ChargeItemBaseInfoDto> getChargeItemBaseInfoByIds(@Param("chargeItemIds") List<Long> chargeItemIds);

    /**
     * 收费项关联Def项目集合
     *
     * @param chargeItemIds 集合
     * @return 集合
     */
    List<ChargeItemDefInfo> getChargeItemDefInfoByIds(@Param("chargeItemIds") List<Long> chargeItemIds);
}