package com.hzs.scm.inventory.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzs.common.domain.scm.general.ext.IcGeneralOutBExt;
import com.hzs.common.domain.scm.inventory.IcInventoryB;
import com.hzs.common.domain.scm.inventory.ext.IcInventoryBExt;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 库存盘点单明细 Mapper 接口
 * </p>
 *
 * @author hzs
 * @since 2023-12-20
 */
public interface IcInventoryBMapper extends BaseMapper<IcInventoryB> {


    /*
     * @description: 根据主表主键查询采购入库单明细
     * @author: sui q
     * @date: 2023/11/25 15:02
     * @param: null null
     **/
    List<IcInventoryBExt> queryInventoryBiByPk(@Param("orderType") Integer orderType, @Param("inventoryBiExtList") List<IcInventoryBExt> inventoryBiExtList);

    /*
     * @description: 根据主表主键查询采购入库单明细
     * @author: sui q
     * @date: 2023/11/25 15:02
     * @param: null null
     **/
    List<IcInventoryBExt> queryInventoryBiByPkId(@Param("pkCountry") Integer pkCountry, @Param("pkOrder") Long pkOrder);

    /*
     * @description: 删除其他入库单明细
     * @author: sui q
     * @date: 2023/11/21 14:23
     * @param: null null
     **/
    void deleteInventoryBiByList(@Param("inventoryBiList") List<IcInventoryB> inventoryBiList, @Param("pkMember") Long pkMember);

}
