Explorar o código

Merge branch 'master' of http://8.136.199.33:3000/hongze/hongze_cygx into cygx_6.4.1_task

xingzai %!s(int64=2) %!d(string=hai) anos
pai
achega
a77c0034e7
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      models/wx_user.go

+ 2 - 1
models/wx_user.go

@@ -319,11 +319,12 @@ func GetUserRegisterList() (items []*WxUser, err error) {
 				AND b.STATUS IN ( '正式', '试用', '冻结' ) 
 				AND cp.product_id = 2 
 			) 
-			AND u.register_time IS NOT NULL
+			AND (u.register_time IS NOT NULL OR u.report_last_view_time <>'')
 			AND cp.product_id = 2
 		GROUP BY
 			u.user_id `
 	_, err = o.Raw(sql).QueryRows(&items)
+	//AND u.register_time IS NOT NULL OR u.report_last_view_time <>'' 统计阅读时间与注册时间不为空的用户
 	return
 }