Browse Source

Merge branch 'master' of http://8.136.199.33:3000/hongze/hongze_task

longyu 2 years ago
parent
commit
8a97d2525c
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
 }