package com.openhis.medication.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.openhis.medication.domain.Medication;
import com.openhis.medication.domain.MedicationDetail;
import com.openhis.medication.dto.AdjustPriceMedListDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 药品基本信息管理Mapper接口
 *
 * @author system
 * @date 2025-02-20
 */
@Repository
public interface MedicationMapper extends BaseMapper<Medication> {

    /**
     * 查询药品详细信息列表
     *
     * @return 药品详细信息列表
     */
    List<MedicationDetail> selectDetailList();
    /**
     * Desc: 根据关键字查询 如果关键字为空，查询10条，否则返回查询到的所有
     * @param keyWord
     * @Author raymond
     * @Date 10:17 2025/10/20
     * @return java.util.List<com.openhis.medication.dto.AdjustPriceMedListDto>
     **/
    List<AdjustPriceMedListDto> searchMedListByKeyWord(@Param("keyWord") String keyWord);
}