Browse Source

修正上月查询数据。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.7.2^2
zouap 4 years ago
parent
commit
e7f3ccaa63
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      routers/repo/user_data_analysis.go

+ 1
- 1
routers/repo/user_data_analysis.go View File

@@ -513,7 +513,7 @@ func QueryUserMetricsLastMonth(ctx *context.Context) {
thisMonth := time.Date(currentTimeNow.Year(), currentTimeNow.Month(), 1, 0, 0, 0, 0, currentTimeNow.Location())
pageStartTime := thisMonth.AddDate(0, -1, 0)
pageStartTime = getStartTime(pageStartTime)
pageEndTime := time.Date(currentTimeNow.Year(), currentTimeNow.Month(), 1, 0, 0, 0, 0, currentTimeNow.Location()).AddDate(0, 0, -1)
pageEndTime := time.Date(currentTimeNow.Year(), currentTimeNow.Month(), 1, 23, 59, 59, 0, currentTimeNow.Location()).AddDate(0, 0, -1)
queryMetrics(ctx, "public.user_business_analysis_last_month", pageStartTime, pageEndTime)
}
func QueryUserStaticLastMonth(ctx *context.Context) {


Loading…
Cancel
Save