package com.yn.bftl.thirdparty.common.repository;

import com.yn.bftl.common.modules.order.entity.Order;
import com.yn.bftl.common.modules.order.entity.OrderItem;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * 订单Repository
 *
 * @author chendehuihuo
 * @date 2021/11/19 14:38
 **/
@Repository
public interface OrderItemRepository extends JpaRepository<OrderItem, Long> {

    OrderItem findFirstByOrdersIdAndSkuId(Long orderId, String skuId);

}
