package com.ssj.dao.weixin.order.dao;

import com.ssj.bean.weixin.order.domain.OrderDetails;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;


@Repository
public interface OrderDetailsDao extends JpaRepository<OrderDetails, String>  {

    @Query(nativeQuery = true,value = "select * from tb_order_details where book_detail_id =?1 and is_close='2' limit 1")
    OrderDetails findbyBookDetailId(String bookDetailId);
}
