|
@@ -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=? `
|