Explorar el Código

Merge branch 'crm/6.6'

Roc hace 3 años
padre
commit
2cc7cf1dd2
Se han modificado 1 ficheros con 1 adiciones y 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
 }