|
|
@@ -85,11 +85,13 @@ public class StatisticService {
|
|
|
/*
|
|
|
按月
|
|
|
*/
|
|
|
- public Long userTrendV2(String yearMonth) {
|
|
|
+ public Map<String, Long> userTrendV2(String yearMonth) {
|
|
|
+ Map<String, Long> map = new HashMap<>();
|
|
|
YearMonth month = YearMonth.parse(yearMonth);
|
|
|
LocalDateTime end = month.atEndOfMonth().atTime(LocalTime.MAX);
|
|
|
LocalDateTime start = month.atDay(1).atStartOfDay();
|
|
|
- return userRepo.countByCreatedAtBetween(start, end);
|
|
|
+ map.put(yearMonth, userRepo.countByCreatedAtBetween(start, end));
|
|
|
+ return map;
|
|
|
}
|
|
|
|
|
|
public Map<String, Map<String, Long>> orderNumTrend(int day, Long userId) {
|