Skip to content

Commit d421633

Browse files
committed
fix: orderBy에서 발생하는 문법 오류로 별칭 제거
1 parent 93bbab4 commit d421633

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/java/com/example/wini/domain/note/repository/NoteCustomRepositoryImpl.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ public ActionChange findMostIncreasedPositiveActionChange(Long memberId, Long ro
7575
LocalDate today = LocalDate.now();
7676
NumberExpression<Long> thisMonthNotes = countThisMonthNotes(today);
7777
NumberExpression<Long> lastMonthNotes = countLastMonthNotes(today);
78-
NumberExpression<Long> increaseCount =
79-
thisMonthNotes.subtract(lastMonthNotes).as("increaseCount");
78+
NumberExpression<Long> increaseCount = thisMonthNotes.subtract(lastMonthNotes);
8079

8180
return queryFactory
8281
.select(new QActionChange(action, increaseCount.longValue()))
@@ -96,8 +95,7 @@ public ActionChange findMostDecreasedNegativeActionChange(Long memberId, Long ro
9695
LocalDate today = LocalDate.now();
9796
NumberExpression<Long> thisMonthNotes = countThisMonthNotes(today);
9897
NumberExpression<Long> lastMonthNotes = countLastMonthNotes(today);
99-
NumberExpression<Long> decreaseCount =
100-
thisMonthNotes.subtract(lastMonthNotes).as("decreaseCount");
98+
NumberExpression<Long> decreaseCount = thisMonthNotes.subtract(lastMonthNotes);
10199

102100
return queryFactory
103101
.select(new QActionChange(action, decreaseCount.longValue()))

0 commit comments

Comments
 (0)