Skip to content

Commit

Permalink
chore(InternalMeeting): 데이터 손실을 방지한 DigDecimal 도입
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekks committed Jan 30, 2025
1 parent f7e59e4 commit 71652a8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import com.querydsl.jpa.impl.JPAQuery;
import com.querydsl.jpa.impl.JPAQueryFactory;

import java.math.BigDecimal;
import java.util.List;
import java.util.Objects;

Expand Down Expand Up @@ -75,7 +76,7 @@ public List<Apply> findTopFastestAppliedMeetings(Integer userId, Integer limit)
.innerJoin(apply.meeting, meeting)
.where(apply.userId.eq(userId))
.orderBy(
Expressions.numberTemplate(Long.class,
Expressions.numberTemplate(BigDecimal.class,
"{0} - {1}", apply.appliedDate, apply.meeting.startDate).asc()
)
.limit(limit)
Expand Down

0 comments on commit 71652a8

Please sign in to comment.