package com.gxwebsoft.clinic.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.clinic.entity.ClinicPrescriptionItem;
import com.gxwebsoft.clinic.param.ClinicPrescriptionItemParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 处方明细表
Mapper
 *
 * @author 科技小王子
 * @since 2025-10-22 02:01:13
 */
public interface ClinicPrescriptionItemMapper extends BaseMapper<ClinicPrescriptionItem> {

    /**
     * 分页查询
     *
     * @param page  分页对象
     * @param param 查询参数
     * @return List<ClinicPrescriptionItem>
     */
    List<ClinicPrescriptionItem> selectPageRel(@Param("page") IPage<ClinicPrescriptionItem> page,
                             @Param("param") ClinicPrescriptionItemParam param);

    /**
     * 查询全部
     *
     * @param param 查询参数
     * @return List<User>
     */
    List<ClinicPrescriptionItem> selectListRel(@Param("param") ClinicPrescriptionItemParam param);

}
