Skip to content

Commit 2c8e554

Browse files
committed
feat(product): 월간 랭킹 엔티티 인덱스 필드명 수정 및 메트릭스 조회 쿼리 추가
1 parent d1693f0 commit 2c8e554

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

apps/commerce-batch/src/main/java/com/loopers/infrastructure/metrics/ProductMetricsJpaRepository.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,6 @@ List<Object[]> aggregateByDateRange(
3737
@Param("startDate") LocalDate startDate,
3838
@Param("endDate") LocalDate endDate);
3939

40+
@Query("SELECT m FROM ProductMetricsEntity m WHERE m.id.metricDate BETWEEN :startDate AND :endDate")
4041
List<ProductMetricsEntity> findByMetricDateBetween(LocalDate startDate, LocalDate endDate);
4142
}

modules/jpa/src/main/java/com/loopers/domain/ranking/MonthlyRankEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
@Table(
2121
name = "mv_product_rank_monthly",
2222
indexes = {
23-
@Index(name = "idx_year_month_rank", columnList = "base_year_month, base_rank_position으로")
23+
@Index(name = "idx_year_month_rank", columnList = "base_year_month, base_rank_position")
2424
}
2525
)
2626
@Getter

0 commit comments

Comments
 (0)