-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Order #44
base: master
Are you sure you want to change the base?
Conversation
# Conflicts: # src/main/java/com/insert/ogbsm/infra/error/exception/ErrorCode.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다!!!!!! 앞으로도 ㅎㅇㅌ!!
Page<Comment> findByPostIdOrderByLikeDesc(Long postId, Long userId, Pageable pageable); | ||
|
||
@Query("SELECT c FROM Comment c WHERE c.postId = :postId ORDER BY CASE WHEN c.userId = :userId THEN 0 ELSE 1 END, c.createdAt ASC") | ||
Page<Comment> findByPostOrderByCreatedAtDesc(Long postId, Long userId, Pageable pageable); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pageable에 OrderBy를 사용하지 않은 이유가 있나요??
public class TimeTableProvider { | ||
private final OkHttpClient httpClient; | ||
|
||
@Value("${env.neis.time_table_url}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이런 env에 직접 접근하는건 지금 cd에 문제를 야기 할 수 있으니 바꾸어주시면 감사하겠습니다
No description provided.