缩短各项统计清理时间

This commit is contained in:
刘祥超
2021-12-08 10:30:14 +08:00
parent 1b8600e04d
commit 63316b6b23
4 changed files with 4 additions and 4 deletions

View File

@@ -61,7 +61,7 @@ func (this *NodeValueDAO) Clean(tx *dbs.Tx) error {
expiredDays := 2
day := timeutil.Format("Ymd", time.Now().AddDate(0, 0, -expiredDays))
_, err := this.Query(tx).
Where("day<:day").
Where("day<=:day").
Param("day", day).
Delete()
if err != nil {