Browse Source

Merge pull request '用户运营统计数据查询条件错误,导致数据没有被更新。#800' (#802) from zouap_static into V20211115

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/802
Reviewed-by: lewis <747342561@qq.com>
tags/v1.21.12.1
lewis 3 years ago
parent
commit
138deb1f96
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/user_business_analysis.go

+ 1
- 1
models/user_business_analysis.go View File

@@ -231,7 +231,7 @@ func CounDataByDate(wikiCountMap map[string]int, startTime time.Time, endTime ti
log.Info("start to count other user info data")
sess := x.NewSession()
defer sess.Close()
sess.Select("`user`.*").Table("user").Where("type=1 and is_active=true")
sess.Select("`user`.*").Table("user").Where("type != 1 and is_active=true")
userList := make([]*User, 0)
sess.Find(&userList)



Loading…
Cancel
Save