package com.gxwebsoft.clinic.mapper;

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

import java.util.List;

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

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

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

}
