package com.hzs.scm.trans.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hzs.common.domain.scm.purchase.ext.IcPurchaseInBExt;
import com.hzs.common.domain.scm.trans.TransferOrderItems;
import com.hzs.common.domain.scm.trans.ext.IcTransInBExt;
import com.hzs.common.domain.scm.trans.ext.IcTransOutBExt;

import java.util.List;

/**
 * <p>
 * 采购入库明细 服务类
 * </p>
 *
 * @author hzs
 * @since 2023-12-04
 */
public interface ITransferOrderItemsService extends IService<TransferOrderItems> {

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

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

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

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

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

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