Browse Source

Merge branch 'crm/6.6'

Roc 3 years ago
parent
commit
2cc7cf1dd2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/user_view_statistics.go

+ 1 - 1
models/user_view_statistics.go

@@ -54,7 +54,7 @@ func GetUserViewStatisticsByMobile(mobile, date string) (item *UserViewStatistic
 func GetUserViewStatisticsByEmail(email, date string) (item *UserViewStatistics, err error) {
 	o := orm.NewOrm()
 	sql := `SELECT * from  user_view_statistics  WHERE email=? and date = ?`
-	err = o.Raw(sql, email, date).QueryRow(item)
+	err = o.Raw(sql, email, date).QueryRow(&item)
 	return
 }