package com.bonus.canteen.core.pay.common.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bonus.canteen.core.pay.common.model.TradeOrderRecharge;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
@InterceptorIgnore
public interface TradeOrderRechargeMapper extends BaseMapper<TradeOrderRecharge> {
   void batchInsert(@Param("tradeOrderRechargeList") List<TradeOrderRecharge> tradeOrderRechargeList);

   List<TradeOrderRecharge> listSuccessByOrderIds(@Param("orderIds") List<Long> orderIds, @Param("stratTime") LocalDateTime stratTime, @Param("endTime") LocalDateTime endTime);
}
