package com.hzs.scm.po.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hzs.common.domain.scm.po.PoOrderItems;
import com.hzs.common.domain.scm.po.ext.PoOrderItemsExt;
import com.hzs.common.domain.scm.purchase.ext.IcPurchaseInBExt;

import java.util.List;

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

    /*
     * @description: 删除订单明细
     * @author: sui q
     * @date: 2023/11/21 14:23
     * @param: null null
     **/
    void deleteOrderItemsService(List<PoOrderItems> poOrderItemsList, Long pkMember);

    /*
     * @description: 删除订单明细，根据订单主键
     * @author: sui q
     * @date: 2023/11/21 14:55
     * @param: null null
     **/
    void deleteOrderItemsByPkOrder(Long pkOrder, Long pkMember);

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

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

    /*
     * @description: 查询明细表明细
     * @author: sui q
     * @date: 2023/11/25 17:39
     * @param: null null
     **/
    List<PoOrderItems> queryPoOrderItemsByList(List<Long> idList);

    /*
     * @description: 根据入库数量更新累计入库数量
     * @author: sui q
     * @date: 2023/11/25 17:23
     * @param: null null
     **/
    void updatePoOrderItemsTotalNum(List<IcPurchaseInBExt> icPurchaseInbList, Long pkMember);
}
