Browse Source

fix statistic

master
gsd 1 year ago
parent
commit
f4fa57cb00
  1. 2
      src/main/java/app/services/db/DonateService.java

2
src/main/java/app/services/db/DonateService.java

@ -73,7 +73,7 @@ public class DonateService {
}
public HashMap getGivedVipStatistic(StatisticRange statisticRange) {
List<DonateStatistic> 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<DonateStatistic> 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));

Loading…
Cancel
Save