package com.gxwebsoft.clinic.mapper;

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

import java.util.List;

/**
 * 药品库存Mapper
 *
 * @author 科技小王子
 * @since 2025-10-22 02:06:32
 */
public interface ClinicMedicineStockMapper extends BaseMapper<ClinicMedicineStock> {

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

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

}
