Roc 2 年 前
コミット
58c5a3d8a8
1 ファイル変更1 行追加1 行削除
  1. 1 1
      models/tables/wx_user/wx_user.go

+ 1 - 1
models/tables/wx_user/wx_user.go

@@ -43,7 +43,7 @@ func GetOpenIdList(openIdStr string) (items []*OpenIdList, err error) {
 
 //根据手机号获取用户的openid列表
 func GetOpenIdListByMobile(mobile, openIdStr string) (items []*OpenIdList, err error) {
-	sql := `SELECT DISTINCT ur.open_id, FROM wx_user AS wu 
+	sql := `SELECT DISTINCT ur.open_id,wu.user_id FROM wx_user AS wu 
           INNER JOIN company AS c ON c.company_id = wu.company_id 
           INNER join user_record  as ur on wu.user_id=ur.user_id
           WHERE ur.open_id != "" and ur.create_platform=1 AND wu.mobile=? `