Roc %!s(int64=2) %!d(string=hai) anos
pai
achega
e501320e02
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
 }