|
@@ -30,7 +30,7 @@ func GetUserViewListByDate(dayStr string) (list []*UserViewMobileTotalSlice, err
|
|
o := orm.NewOrm()
|
|
o := orm.NewOrm()
|
|
sql := `SELECT mobile,sum(view_num) total
|
|
sql := `SELECT mobile,sum(view_num) total
|
|
FROM user_view_statistics
|
|
FROM user_view_statistics
|
|
- WHERE 1=1 and date >= ? group by mobile`
|
|
|
|
|
|
+ WHERE 1=1 and date >= ? and mobile !="" group by mobile`
|
|
_, err = o.Raw(sql, dayStr).QueryRows(&list)
|
|
_, err = o.Raw(sql, dayStr).QueryRows(&list)
|
|
return
|
|
return
|
|
}
|
|
}
|