package com.xingxi.business.ProdInventory.mapper;

import com.xingxi.business.ProdInventory.domain.ProdInventoryOrderDetail;

import java.util.List;

/**
 * 商品出入库明细单Mapper接口
 *
 * @author xingxi
 * @date 2025-03-06
 */
public interface ProdInventoryOrderDetailMapper {
    /**
     * 查询商品出入库明细单
     *
     * @param inventoryOrderDetailId 商品出入库明细单主键
     * @return 商品出入库明细单
     */
    ProdInventoryOrderDetail selectProdInventoryOrderDetailByInventoryOrderDetailId(Long inventoryOrderDetailId);

    /**
     * 查询商品出入库明细单列表
     *
     * @param prodInventoryOrderDetail 商品出入库明细单
     * @return 商品出入库明细单集合
     */
    List<ProdInventoryOrderDetail> selectProdInventoryOrderDetailList(ProdInventoryOrderDetail prodInventoryOrderDetail);

    /**
     * 新增商品出入库明细单
     *
     * @param prodInventoryOrderDetail 商品出入库明细单
     * @return 结果
     */
    int insertProdInventoryOrderDetail(ProdInventoryOrderDetail prodInventoryOrderDetail);

    /**
     * 批量新增商品出入库明细单
     *
     * @param prodInventoryOrderDetailList 商品出入库明细单
     * @return 结果
     */
    int batchInsertProdInventoryOrderDetail(List<ProdInventoryOrderDetail> prodInventoryOrderDetailList);

    /**
     * 修改商品出入库明细单
     *
     * @param prodInventoryOrderDetail 商品出入库明细单
     * @return 结果
     */
    int updateProdInventoryOrderDetail(ProdInventoryOrderDetail prodInventoryOrderDetail);

    /**
     * 删除商品出入库明细单
     *
     * @param inventoryOrderDetailId 商品出入库明细单主键
     * @return 结果
     */
    int deleteProdInventoryOrderDetailByInventoryOrderDetailId(Long inventoryOrderDetailId);

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


    /**
     * 逻辑删除商品出入库明细单
     *
     * @param inventoryOrderDetailId 商品出入库明细单主键
     * @return 结果
     */
    int logicDeleteProdInventoryOrderDetailByInventoryOrderDetailId(Long inventoryOrderDetailId);

    /**
     * 逻辑批量删除商品出入库明细单
     *
     * @param inventoryOrderDetailIds 需要删除的数据主键集合
     * @return 结果
     */
    int logicDeleteProdInventoryOrderDetailByInventoryOrderDetailIds(String[] inventoryOrderDetailIds);

    /**
     * 逻辑批量删除商品出入库明细单
     *
     * @param prodInventoryOrderDetail 商品出入库明细单
     * @return 结果
     */
    int logicDeleteProdInventoryOrderDetailByCondition(ProdInventoryOrderDetail prodInventoryOrderDetail);

}
