package com.hzs.scm.po.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
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 org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 采购订单明细 Mapper 接口
 * </p>
 *
 * @author hzs
 * @since 2023-11-17
 */
public interface PoOrderItemsMapper extends BaseMapper<PoOrderItems> {

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

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

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

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