Skip to content
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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Order #44

wants to merge 8 commits into from

Conversation

jacobhboy
Copy link
Member

No description provided.

Copy link
Member

@qlido qlido left a 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);
Copy link
Member

@qlido qlido Oct 2, 2023

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}")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이런 env에 직접 접근하는건 지금 cd에 문제를 야기 할 수 있으니 바꾸어주시면 감사하겠습니다

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants