Skip to content

Commit

Permalink
refactor: 안쓰는 변수 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
HyeonsuLee committed Oct 1, 2024
1 parent 6a634c1 commit 500677d
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public Map<Integer, ShopInfoV1> findAllShopEvent(LocalDateTime now) {
.select(
shop.id,
ExpressionUtils.as(eventArticle.id.count().gt(0L), "isEventActive"),
ExpressionUtils.as(isOpenSubQuery, "isOpen") // 서브쿼리 결과를 "isOpen" 필드로 추가
ExpressionUtils.as(isOpenSubQuery, "isOpen")
)
.from(shop)
.leftJoin(shop.eventArticles, eventArticle)
Expand All @@ -115,11 +115,9 @@ public Map<Integer, ShopInfoV1> findAllShopEvent(LocalDateTime now) {
}

private BooleanBuilder openCondition(NumberPath<Integer> shopId, LocalDateTime now) {
QShopOpen shopOpen = QShopOpen.shopOpen; // 상점 운영 시간 테이블
LocalDate today = now.toLocalDate();
QShopOpen shopOpen = QShopOpen.shopOpen;
LocalTime currentTime = now.toLocalTime();
LocalDateTime yesterday = now.minusDays(1);
LocalDate yesterdayDate = yesterday.toLocalDate();

BooleanBuilder whereCondition = new BooleanBuilder();

Expand Down

0 comments on commit 500677d

Please sign in to comment.