package cn.ysk.cashier.repository.order;
import cn.ysk.cashier.pojo.order.TbGroupOrderCoupon;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @website https://eladmin.vip
 * @author ww
 * @date 2024-05-07
 **/
public interface TbGroupOrderCouponRepository extends JpaRepository<TbGroupOrderCoupon, Integer>, JpaSpecificationExecutor<TbGroupOrderCoupon> {

    List<TbGroupOrderCoupon> queryByOrderId(Integer orderId);

    List<TbGroupOrderCoupon> queryByOrderIdAndAndIsRefund(Integer orderId,Integer isRefund);
}