package com.hzs.scm.general.mapper;

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

import java.util.List;

/**
 * <p>
 * 其他入库单明细 Mapper 接口
 * </p>
 *
 * @author hzs
 * @since 2023-11-27
 */
public interface IcGeneralOutBMapper extends BaseMapper<IcGeneralOutB> {

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

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

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