package com.ruoyi.inventory.mapper;

import java.util.List;
import com.ruoyi.inventory.domain.HealthcareInventoryDrugout;
import com.ruoyi.inventory.domain.HealthcareInventoryDrugoutDetails;

/**
 * 药品出库记录Mapper接口
 * 
 * @author 蒋松霖
 * @date 2024-10-07
 */
public interface HealthcareInventoryDrugoutMapper 
{
    /**
     * 查询药品出库记录
     * 
     * @param id 药品出库记录主键
     * @return 药品出库记录
     */
    public HealthcareInventoryDrugout selectHealthcareInventoryDrugoutById(Long id);

    /**
     * 查询药品出库记录列表
     * 
     * @param healthcareInventoryDrugout 药品出库记录
     * @return 药品出库记录集合
     */
    public List<HealthcareInventoryDrugout> selectHealthcareInventoryDrugoutList(HealthcareInventoryDrugout healthcareInventoryDrugout);

    /**
     * 新增药品出库记录
     * 
     * @param healthcareInventoryDrugout 药品出库记录
     * @return 结果
     */
    public int insertHealthcareInventoryDrugout(HealthcareInventoryDrugout healthcareInventoryDrugout);

    /**
     * 修改药品出库记录
     * 
     * @param healthcareInventoryDrugout 药品出库记录
     * @return 结果
     */
    public int updateHealthcareInventoryDrugout(HealthcareInventoryDrugout healthcareInventoryDrugout);

    /**
     * 删除药品出库记录
     * 
     * @param id 药品出库记录主键
     * @return 结果
     */
    public int deleteHealthcareInventoryDrugoutById(Long id);

    /**
     * 批量删除药品出库记录
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHealthcareInventoryDrugoutByIds(Long[] ids);

    /**
     * 批量删除出库详情，用于记录药品出库的详细信息
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHealthcareInventoryDrugoutDetailsByDrugOutIds(Long[] ids);
    
    /**
     * 批量新增出库详情，用于记录药品出库的详细信息
     * 
     * @param healthcareInventoryDrugoutDetailsList 出库详情，用于记录药品出库的详细信息列表
     * @return 结果
     */
    public int batchHealthcareInventoryDrugoutDetails(List<HealthcareInventoryDrugoutDetails> healthcareInventoryDrugoutDetailsList);
    

    /**
     * 通过药品出库记录主键删除出库详情，用于记录药品出库的详细信息信息
     * 
     * @param id 药品出库记录ID
     * @return 结果
     */
    public int deleteHealthcareInventoryDrugoutDetailsByDrugOutId(Long id);
}
