Roc 2 years ago
parent
commit
e501320e02
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) {
 func GetUserViewStatisticsByEmail(email, date string) (item *UserViewStatistics, err error) {
 	o := orm.NewOrm()
 	o := orm.NewOrm()
 	sql := `SELECT * from  user_view_statistics  WHERE email=? and date = ?`
 	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
 	return
 }
 }