|
@@ -37,7 +37,7 @@ func GetWxOpenIdByMobileList(mobile string) (items []*OpenIdList, err error) {
|
|
// WHERE bind_account IN (` + mobile + `) AND create_platform = 4`
|
|
// WHERE bind_account IN (` + mobile + `) AND create_platform = 4`
|
|
|
|
|
|
sql := ` SELECT
|
|
sql := ` SELECT
|
|
- union_id,
|
|
|
|
|
|
+ union_id,open_id,
|
|
cygx_user_id AS user_id
|
|
cygx_user_id AS user_id
|
|
FROM cygx_user_record WHERE 1 = 1 AND cygx_bind_account IN (` + mobile + `)`
|
|
FROM cygx_user_record WHERE 1 = 1 AND cygx_bind_account IN (` + mobile + `)`
|
|
_, err = orm.NewOrm().Raw(sql).QueryRows(&items)
|
|
_, err = orm.NewOrm().Raw(sql).QueryRows(&items)
|