package com.hzs.scm.purchase.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hzs.common.domain.scm.purchase.IcPurchaseInB;
import com.hzs.common.domain.scm.purchase.ext.IcPurchaseInBExt;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 采购订单明细 服务类
 * </p>
 *
 * @author hzs
 * @since 2023-11-17
 */
public interface IIcPurchaseInBService extends IService<IcPurchaseInB> {

    /*
     * @description: 根据主表主键查询采购入库单明细
     * @author: sui q
     * @date: 2023/11/25 15:02
     * @param: null null
     **/
    List<IcPurchaseInBExt> queryPurchaseInbByPk(List<IcPurchaseInBExt> icPurchaseInbList);

    /*
     * @description: 审核通过，更新累计入库数量，用于分批退货
     * @author: sui q
     * @date: 2024/4/10 16:19
     * @param: null null
     **/
    void updatePurchaseInbByPk(List<IcPurchaseInBExt> icPurchaseInbList);

    /*
     * @description:
     * @author: sui q
     * @date: 2024/4/10 16:43
     * @param: null null
     **/
    void mergePurchaseInBiByPurchaseBack(List<IcPurchaseInBExt> icPurchaseInbList);

    /*
     * @description: 删除入库单子表明细
     * @author: sui q
     * @date: 2023/11/23 10:38
     * @param: null null
     **/
    void deletePurchaseInbByList(List<IcPurchaseInB> purchaseInbList);

    /*
     * @description: 删除入库单子表明细
     * @author: sui q
     * @date: 2023/11/23 10:38
     * @param: null null
     **/
    void deletePurchaseInbByPkPurchase(Long pkPurchase, Long pkMember);
}
