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

release 4.0.2 #280

Merged
merged 3 commits into from
Sep 24, 2024
Merged

release 4.0.2 #280

merged 3 commits into from
Sep 24, 2024

Conversation

Profile-exe
Copy link
Collaborator

개요

close #278

작업사항

변경로직

private void setSortType(Query query, String sortType) {
    switch (sortType) {
        case "name" -> query.with(Sort.by(Direction.ASC, "qna.name"));
        case "newest" -> query.with(Sort.by(Direction.DESC, "created_date"));
        case "objective" -> query.with(
                Sort.by(
                        Sort.Order.asc("qna.field"), // 지원 분야: 개발자, 기획자, 디자이너
                        Sort.Order.desc("qna.field1"), // 세부 분야 1순위: WEB, GAME, APP, AI
                        Sort.Order.desc("qna.field2") // 세부 분야 2순위: WEB, GAME, APP, AI
                        ));
    }
}

reference

Profile-exe and others added 3 commits September 24, 2024 17:20
기준 우선순위
1. 지원분야 `field`: 개발자 - 기획자 - 디자이너
2. 세부 분야 1순위 `field1`: WEB, GAME, APP, AI
3. 세부 분야 2순위 `field2`: WEB, GAME, APP, AI

위 순서대로 정렬되도록 수정
[BE-105] 지원 분야 정렬시 큰 카테고리부터 정렬되도록 수정
@Profile-exe Profile-exe added the bug-fix🚨 Bug Fix ( HotFix ) label Sep 24, 2024
@Profile-exe Profile-exe self-assigned this Sep 24, 2024
@Profile-exe Profile-exe merged commit c1d0c10 into backend Sep 24, 2024
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fix🚨 Bug Fix ( HotFix )
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BE-105] 지원 분야 정렬시 큰 카테고리부터 정렬되도록 수정
1 participant