package com.hzs.scm.trans.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzs.common.domain.scm.po.PoOrderItems;
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 org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 采购入库明细 Mapper 接口
 * </p>
 *
 * @author hzs
 * @since 2023-12-04
 */
public interface TransferOrderItemsMapper extends BaseMapper<TransferOrderItems> {

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

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

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

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

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