package com.ruoyi.inventory.mapper;

import java.util.List;
import com.ruoyi.inventory.domain.HealthcareInventoryDrugentry;
import com.ruoyi.inventory.domain.HealthcareInventoryDrugentryDetails;

/**
 * 药品入库记录Mapper接口
 * 
 * @author 蒋松霖
 * @date 2024-09-27
 */
public interface HealthcareInventoryDrugentryMapper 
{
    /**
     * 查询药品入库记录
     * 
     * @param id 药品入库记录主键
     * @return 药品入库记录
     */
    public HealthcareInventoryDrugentry selectHealthcareInventoryDrugentryById(Long id);

    /**
     * 查询药品入库记录列表
     * 
     * @param healthcareInventoryDrugentry 药品入库记录
     * @return 药品入库记录集合
     */
    public List<HealthcareInventoryDrugentry> selectHealthcareInventoryDrugentryList(HealthcareInventoryDrugentry healthcareInventoryDrugentry);

    /**
     * 新增药品入库记录
     * 
     * @param healthcareInventoryDrugentry 药品入库记录
     * @return 结果
     */
    public int insertHealthcareInventoryDrugentry(HealthcareInventoryDrugentry healthcareInventoryDrugentry);

    /**
     * 修改药品入库记录
     * 
     * @param healthcareInventoryDrugentry 药品入库记录
     * @return 结果
     */
    public int updateHealthcareInventoryDrugentry(HealthcareInventoryDrugentry healthcareInventoryDrugentry);

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

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

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

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

}
