package com.hzs.scm.general.mapper;

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

import java.util.List;

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

    /*
     * @description: 根据主表主键查询其他入库单明细
     * @author: sui q
     * @date: 2023/11/25 15:02
     * @param: null null
     **/
    List<IcGeneralInBExt> queryGeneralInbByList(@Param("orderType") Integer orderType, @Param("icGeneralInbExtList") List<IcGeneralInBExt> icGeneralInbExtList);

    /*
     * @description: 查询采购订单明细
     * @author: sui q
     * @date: 2023/11/23 14:17
     * @param: null null
     **/
    List<IcGeneralInBExt> queryGeneralInbByPk(@Param("pkCountry") Integer pkCountry, @Param("pkOrder") Long pkOrder);

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