Skip to content

Commit

Permalink
🐛fix : 통계 Map매핑로직 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
ParkYunHo committed Aug 28, 2023
1 parent 0180a54 commit e8a9b6d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class StaticsRepository(
fun findPeriodStatics(startDt: LocalDate, endDt: LocalDate): Map<String, Long> {
val result = mutableMapOf<String, Long>()
for(idx: Long in 1L..45L) {
result["no$idx"] = queryFactory
result["$idx"] = queryFactory
.select(lottoNumber.drwtNo.count())
.from(lottoNumber)
.where(
Expand All @@ -64,7 +64,7 @@ class StaticsRepository(
fun findDrwtNoStatics(startDrwtNo: Long, endDrwtNo: Long): Map<String, Long> {
val result = mutableMapOf<String, Long>()
for(idx: Long in 1L..45L) {
result["no$idx"] = queryFactory
result["$idx"] = queryFactory
.select(lottoNumber.drwtNo.count())
.from(lottoNumber)
.where(
Expand Down Expand Up @@ -105,7 +105,7 @@ class StaticsRepository(
.fetch()

for(idx: Long in 1L..45L) {
result["no$idx"] = queryFactory
result["$idx"] = queryFactory
.select(lottoNumber.drwtNo.count())
.from(lottoNumber)
.where(
Expand Down

0 comments on commit e8a9b6d

Please sign in to comment.