Commit 44431766 by levphon

bug修复

1 parent ea069d7f
...@@ -33,11 +33,13 @@ ...@@ -33,11 +33,13 @@
</select> </select>
<select id="selectByUserIds" resultType="cn.com.glsx.app.modules.model.CTerminalUserModel"> <select id="selectByUserIds" resultType="cn.com.glsx.app.modules.model.CTerminalUserModel">
select tcuar.user_id userId, tcu.rel_user_id relUserId, tcuta.openid account, ifnull(tcuwa.wechat_name, 'wechat_user') username, tcuwa.wechat_avatar avatar select tcuar.user_id userId, tcu.rel_user_id relUserId, tcula.account, ifnull(tcuwa.wechat_name, tcula.account) username, tcuwa.wechat_avatar avatar
from t_cust_user_auth_rel tcuar from t_cust_user_auth_rel tcuar
inner join t_cust_user_third_auth tcuta on tcuar.auth_id = tcuta.id inner join t_cust_user_third_auth tcuta on tcuar.auth_id = tcuta.id
left join t_cust_user tcu on tcuar.user_id = tcu.id left join t_cust_user tcu on tcuar.user_id = tcu.id
left join t_cust_user_wechat_account tcuwa on tcuar.auth_id = tcuwa.auth_id left join t_cust_user_wechat_account tcuwa on tcuar.auth_id = tcuwa.auth_id
left join t_cust_user_auth_rel tcuar2 on tcu.id = tcuar2.user_id and tcuar2.auth_type = 'local'
left join t_cust_user_local_auth tcula on tcuar2.auth_id = tcula.id
where tcuar.del_flag = 0 where tcuar.del_flag = 0
and tcuar.auth_type = 'third' and tcuar.auth_type = 'third'
and tcuta.login_type = 'wechat' and tcuta.login_type = 'wechat'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!