package com.hzs.scm.sale.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzs.common.domain.scm.sale.IcSaleoutB;
import com.hzs.common.domain.scm.sale.ext.IcSaleoutBExt;
import com.hzs.common.domain.scm.sale.ext.IcSaleoutHExt;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 销售出库明细 Mapper 接口
 * </p>
 *
 * @author hzs
 * @since 2023-11-29
 */
public interface IcSaleoutBMapper extends BaseMapper<IcSaleoutB> {

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

    /*
     * @description: 获取明细表 seq
     * @author: sui q
     * @date: 2023/11/30 16:22
     * @param: null null
     **/
    List<Long> querySaleOutBiSql(Integer size);

    /*
     * @description: 批量保存销售出库根据list
     * @author: sui q
     * @date: 2023/11/30 17:27
     * @param: null null
     **/
    void insertSaleOutBiByList(@Param("saleOutBiExtList") List<IcSaleoutBExt> saleoutBiExtList);


    /*
     * @description: 查询销售出库单
     * @author: sui q
     * @date: 2024/3/4 11:38
     * @param: null null
     **/
    List<IcSaleoutBExt> querySaleOutBiExtByPk(@Param("pkCountry") Integer pkCountry, @Param("pkSaleOut") Long pkSaleOut);

}
