|
@@ -45,7 +45,7 @@ type UserViewStatisticsInfo struct {
|
|
|
// GetUserViewStatisticsByMobile 根据手机号获取联系人的浏览次数
|
|
|
func GetUserViewStatisticsByMobile(mobile string) (item *UserViewStatisticsInfo, err error) {
|
|
|
o := orm.NewOrm()
|
|
|
- sql := `SELECT mobile,sum(view_num) view_total,max(last_view_time) last_view_time FROM user_view_statistics WHERE mobile = ? `
|
|
|
+ sql := `SELECT mobile,sum(view_num) total,max(last_view_time) last_view_time FROM user_view_statistics WHERE mobile = ? `
|
|
|
err = o.Raw(sql, mobile).QueryRow(&item)
|
|
|
return
|
|
|
}
|