Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/953/head
zouap 3 years ago
parent
commit
fe94e8bfd7
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      routers/repo/user_data_analysis.go

+ 4
- 0
routers/repo/user_data_analysis.go View File

@@ -46,6 +46,10 @@ func QueryUserStaticDataPage(ctx *context.Context) {
}
endTime, _ = time.ParseInLocation("2006-01-02", endDate, time.Local)
endTime = endTime.AddDate(0, 0, 1)
if startDate == endDate {
startTime = startTime.AddDate(0, 0, 1)
endTime = endTime.AddDate(0, 0, 1)
}
isAll = false
log.Info("startTime=" + fmt.Sprint(startTime.Unix()) + " endDate=" + fmt.Sprint(endTime.Unix()))
}


Loading…
Cancel
Save