package com.ruoyi.inventory.mapper;

import java.util.List;
import com.ruoyi.inventory.domain.InboundOrderItems;
import com.ruoyi.inventory.domain.vo.InboundDetailsVO;

/**
 * 入库单明细Mapper接口
 *
 * @author ruoyi
 * @date 2025-12-02
 */
public interface InboundOrderItemsMapper
{
    /**
     * 查询入库单明细
     *
     * @param id 入库单明细主键
     * @return 入库单明细
     */
    public InboundOrderItems selectInboundOrderItemsById(String id);

    /**
     * 查询入库单明细列表
     *
     * @param inboundOrderItems 入库单明细
     * @return 入库单明细集合
     */
    public List<InboundOrderItems> selectInboundOrderItemsList(InboundOrderItems inboundOrderItems);

    /**
     * 查询入库单明细列表联查materialName
     *
     * @param inboundOrderItems 入库单明细
     * @return 入库单明细集合
     */
    public List<InboundOrderItems> selectInboundOrderItemsListAndMaterialName(InboundOrderItems inboundOrderItems);

    /**
     * 新增入库单明细
     *
     * @param inboundOrderItems 入库单明细
     * @return 结果
     */
    public int insertInboundOrderItems(InboundOrderItems inboundOrderItems);

    /**
     * 修改入库单明细
     *
     * @param inboundOrderItems 入库单明细
     * @return 结果
     */
    public int updateInboundOrderItems(InboundOrderItems inboundOrderItems);

    /**
     * 删除入库单明细
     *
     * @param id 入库单明细主键
     * @return 结果
     */
    public int deleteInboundOrderItemsById(String id);

    /**
     * 批量删除入库单明细
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteInboundOrderItemsByIds(String[] ids);

    /**
     * 统计入库单明细
     * @return 结果
     */
    public List<InboundDetailsVO> selectInboundDetailsVOBySapNo(InboundDetailsVO inboundDetailsVO);
}
