From f4fa57cb005a8ab95d0f2e13252db9d48edf0060 Mon Sep 17 00:00:00 2001 From: gsd Date: Wed, 27 Mar 2024 19:19:28 +0300 Subject: [PATCH] fix statistic --- src/main/java/app/services/db/DonateService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/app/services/db/DonateService.java b/src/main/java/app/services/db/DonateService.java index 0ee342c..735fb37 100644 --- a/src/main/java/app/services/db/DonateService.java +++ b/src/main/java/app/services/db/DonateService.java @@ -73,7 +73,7 @@ public class DonateService { } public HashMap getGivedVipStatistic(StatisticRange statisticRange) { - List donateStatistics = jdbcTemplate.query("SELECT `givemethod`,COUNT(*) as count,`reserved`, `amount` FROM `gived_vip` WHERE `givemethod` IN (0,1,2) AND `timestamp` > CAST(DATE_FORMAT(NOW() ,?) as DATE) GROUP BY `givemethod`, `amount`", + List donateStatistics = jdbcTemplate.query("SELECT `givemethod`,COUNT(*) as count,`reserved`, `amount` FROM `gived_vip` WHERE `givemethod` IN (0,1,2,6) AND `timestamp` > CAST(DATE_FORMAT(NOW() ,?) as DATE) GROUP BY `givemethod`, `amount`", new Object[]{StatisticRange.cast(statisticRange)}, (rs, n) -> new DonateStatistic(rs));