Skip to content

Commit

Permalink
[BE-70] 지원서 Newest 최신순 정렬 기준 (오래된 순 -> 최신순) 변경 #192
Browse files Browse the repository at this point in the history
[BE-70] 지원서 Newest 최신순 정렬 기준 (오래된 순 -> 최신순) 변경 #192
  • Loading branch information
BlackBean99 authored Mar 2, 2024
2 parents b0d4666 + 897a996 commit b440227
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 2 deletions.
Binary file modified server/.gradle/7.6.1/checksums/checksums.lock
Binary file not shown.
Binary file not shown.
Binary file modified server/.gradle/7.6.1/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified server/.gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ public class AnswerNewestSortingStrategy implements SortStrategy<MongoAnswer> {
@Override
public int compare(MongoAnswer obj1, MongoAnswer obj2) {
// createdAt 값을 가져와 비교하여 정렬 순서를 결정합니다.
return obj1.getCreatedDate().compareTo(obj2.getCreatedDate());
return obj2.getCreatedDate().compareTo(obj1.getCreatedDate());
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
package com.econovation.recruit.utils.sort.strategy;

import com.econovation.recruitdomain.domains.applicant.domain.MongoAnswer;
import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.Collections;
import org.aspectj.util.Reflection;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

// @Component
@Qualifier("answerObjectiveSort")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ public class InterviewerNewestSortingStrategy implements SortStrategy<Interviewe
@Override
public int compare(Interviewer obj1, Interviewer obj2) {
// createdAt 값을 가져와 비교하여 정렬 순서를 결정합니다.
return obj1.getCreatedAt().compareTo(obj2.getCreatedAt());
return obj2.getCreatedAt().compareTo(obj1.getCreatedAt());
}
}

0 comments on commit b440227

Please sign in to comment.