package com.hzs.scm.sale.mapper;

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

import java.util.List;

/**
 * 销售出库单表头 Mapper 接口
 */
public interface IcSaleoutHMapper extends BaseMapper<IcSaleoutH> {

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

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

    /*
     * @description: 查询会员端显示的采购入库单
     * @author: sui q
     * @date: 2023/11/25 9:55
     * @param: null null
     **/
    List<IcSaleoutHExt> queryDisSaleOutExtCondition(SaleOutParam saleOutParam);

    /*
     * @description: 根据订单主键查询其他入库
     * @author: sui q
     * @date: 2023/11/21 10:47
     * @param: null null
     **/
    IcSaleoutHExt querySaleOutExtId(@Param("pkId") Long pkId, @Param("orderStatus") Integer orderStatus);

}
