Skip to content

Commit a738436

Browse files
committed
refactor(recruit-board): query 최적화
1 parent 478519a commit a738436

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/somemore/recruitboard/repository/RecruitBoardRepositoryImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,13 +214,13 @@ public Page<RecruitBoardDetail> findAllNearby(RecruitBoardNearByCondition condit
214214
public Page<RecruitBoard> findAllByCenterId(UUID centerId,
215215
RecruitBoardSearchCondition condition) {
216216

217-
BooleanExpression exp = isNotDeleted()
218-
.and(centerIdEq(centerId))
217+
BooleanExpression exp = centerIdEq(centerId)
219218
.and(keywordEq(condition.keyword()))
220219
.and(volunteerCategoryEq(condition.category()))
221220
.and(regionEq(condition.region()))
222221
.and(admittedEq(condition.admitted()))
223-
.and(statusEq(condition.status()));
222+
.and(statusEq(condition.status()))
223+
.and(isNotDeleted());
224224

225225
Pageable pageable = condition.pageable();
226226

0 commit comments

Comments
 (0)