|
@@ -110,7 +110,7 @@ func GetUserRecordRegisterByUserIdsMyfx(userIds string) (items []*UserRecordRegi
|
|
|
// 根据手机号获取用户的openid
|
|
|
func GeCygxtUserRecordListByMobile(bindAccount string) (items []*OpenIdList, err error) {
|
|
|
var sql string
|
|
|
- o := orm.NewOrmUsingDB("cygx")
|
|
|
+ o := orm.NewOrmUsingDB("hz_cygx")
|
|
|
sql = `SELECT
|
|
|
cr.open_id,
|
|
|
cr.cygx_user_id as user_id
|
|
@@ -122,10 +122,11 @@ func GeCygxtUserRecordListByMobile(bindAccount string) (items []*OpenIdList, err
|
|
|
}
|
|
|
|
|
|
func GetWxOpenIdByMobileList(mobile string) (items []*OpenIdList, err error) {
|
|
|
+ o := orm.NewOrmUsingDB("hz_cygx")
|
|
|
sql := ` SELECT
|
|
|
union_id,open_id,
|
|
|
cygx_user_id AS user_id
|
|
|
FROM cygx_user_record WHERE 1 = 1 AND cygx_bind_account IN (` + mobile + `)`
|
|
|
- _, err = orm.NewOrm().Raw(sql).QueryRows(&items)
|
|
|
+ _, err = o.Raw(sql).QueryRows(&items)
|
|
|
return
|
|
|
}
|