package org.jebot.repository.xxpay;

import org.jebot.models.xxpay.PayProduct;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Component;

import javax.transaction.Transactional;
import java.util.List;

@Component
public interface PayProductRepository extends JpaRepository<PayProduct, Long> {

    @Query("SELECT t FROM t_pay_product t WHERE t.id in (:productIds)")
    List<PayProduct> findByProductIds(List<Long> productIds);

}
