Skip to content

Commit

Permalink
write CommentController.java
Browse files Browse the repository at this point in the history
  • Loading branch information
guma2k2 committed Oct 3, 2024
1 parent 542a1c0 commit fadbb9e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ select count(1)
@Query("""
select c.id
from OrderDetail od
left join fetch od.course c
join od.course c
GROUP BY c.id
ORDER BY COUNT(c.id) DESC
""")
Expand All @@ -40,7 +40,7 @@ ORDER BY COUNT(c.id) DESC
select od
from OrderDetail od
join fetch od.order o
left join fetch od.course
join fetch od.course
where o.id = :orderId
""")
List<OrderDetail> findByOrderId (@Param("orderId") Long orderId);
Expand Down

0 comments on commit fadbb9e

Please sign in to comment.