package com.ruoyi.os.mapper;

import java.util.List;
import com.ruoyi.os.domain.HealthcareOsPrescriptionDetails;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 处方详情Mapper接口
 *
<<<<<<< HEAD
 * @author 蒋松霖
=======
 * @author 何顺
>>>>>>> cf33b39dcb79314a02d35b6116058d8b46856eeb
 * @date 2024-09-21
 */
@Mapper
public interface HealthcareOsPrescriptionDetailsMapper
{
    /**
     * 查询处方详情
     *
     * @param id 处方详情主键
     * @return 处方详情
     */
    public HealthcareOsPrescriptionDetails selectHealthcareOsPrescriptionDetailsById(Long id);

    /**
     * 查询处方详情列表
     *
     * @param healthcareOsPrescriptionDetails 处方详情
     * @return 处方详情集合
     */
    public List<HealthcareOsPrescriptionDetails> selectHealthcareOsPrescriptionDetailsList(HealthcareOsPrescriptionDetails healthcareOsPrescriptionDetails);

    /**
     * æ‰¹é‡æŸ¥è¯¢å¤„æ–¹è¯¦æƒ…ï¼ˆæŒ‰è¯Šæ–­IDé›†åˆï¼‰
     *
     * @param diagnosisIds è¯Šæ–­IDé›†åˆ
     * @return å¤„æ–¹è¯¦æƒ…é›†åˆ
     */
    public List<HealthcareOsPrescriptionDetails> selectHealthcareOsPrescriptionDetailsByDiagnosisIds(@Param("diagnosisIds") List<Long> diagnosisIds);

    /**
     * 新增处方详情
     *
     * @param healthcareOsPrescriptionDetails 处方详情
     * @return 结果
     */
    public int insertHealthcareOsPrescriptionDetails(HealthcareOsPrescriptionDetails healthcareOsPrescriptionDetails);

    /**
     * 修改处方详情
     *
     * @param healthcareOsPrescriptionDetails 处方详情
     * @return 结果
     */
    public int updateHealthcareOsPrescriptionDetails(HealthcareOsPrescriptionDetails healthcareOsPrescriptionDetails);

    /**
     * 删除处方详情
     *
     * @param id 处方详情主键
     * @return 结果
     */
    public int deleteHealthcareOsPrescriptionDetailsById(Long id);

    /**
     * 批量删除处方详情
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHealthcareOsPrescriptionDetailsByIds(Long[] ids);

    /**
     * 批量删除处方详情
     *
     * @param  healthcareOsPrescriptionDetails
     * @return 结果
     */
    public int deleteHealthcareOsPrescriptionDetailsBy(HealthcareOsPrescriptionDetails healthcareOsPrescriptionDetails);
}
