package com.gxwebsoft.clinic.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gxwebsoft.clinic.entity.ClinicPrescription;
import com.gxwebsoft.clinic.param.ClinicPrescriptionParam;
import com.gxwebsoft.common.core.web.PageResult;

import java.util.List;

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

    /**
     * 分页关联查询
     *
     * @param param 查询参数
     * @return PageResult<ClinicPrescription>
     */
    PageResult<ClinicPrescription> pageRel(ClinicPrescriptionParam param);

    /**
     * 关联查询全部
     *
     * @param param 查询参数
     * @return List<ClinicPrescription>
     */
    List<ClinicPrescription> listRel(ClinicPrescriptionParam param);

    /**
     * 根据id查询
     *
     * @param id 主键ID
     * @return ClinicPrescription
     */
    ClinicPrescription getByIdRel(Integer id);

    // 添加成功后返回数据
    ClinicPrescription getByLastId(ClinicPrescription clinicPrescription);
}
