package com.hzs.sale.refund.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzs.common.domain.sale.order.SaRefundItems;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 退款明细表 Mapper 接口
 *
 * @author hzs
 * @since 2023-08-25
 */
public interface SaRefundItemsMapper extends BaseMapper<SaRefundItems> {

    /**
     * 批量插入退款明细数据
     *
     * @param saRefundItemsList 退款明细数据
     * @param pkRefund          退款表ID
     * @return
     */
    int insertBatch(@Param("itemsList") List<SaRefundItems> saRefundItemsList, @Param("pkRefund") Long pkRefund);

}
