Commit 86f00aaf by levphon

用户账号处理

1 parent 28c2979d
...@@ -12,5 +12,6 @@ public class CTerminalUserModel { ...@@ -12,5 +12,6 @@ public class CTerminalUserModel {
private String account; private String account;
private String username; private String username;
private String avatar; private String avatar;
private Long relUserId;
} }
...@@ -64,9 +64,10 @@ ...@@ -64,9 +64,10 @@
</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, tcula.account, tcula2.username, tcula2.avatar select tcuar.user_id userId, tcu.rel_user_id relUserId, tcula.account, tcula2.username, tcula2.avatar
from t_cust_user_auth_rel tcuar from t_cust_user_auth_rel tcuar
inner join t_cust_user_local_auth tcula on tcuar.auth_id = tcula.id inner join t_cust_user_local_auth tcula on tcuar.auth_id = tcula.id
left join t_cust_user tcu on tcuar.user_id = tcu.id
left join t_cust_user_local_account tcula2 on tcuar.auth_id = tcula2.auth_id left join t_cust_user_local_account tcula2 on tcuar.auth_id = tcula2.auth_id
where tcuar.del_flag = 0 where tcuar.del_flag = 0
and tcuar.auth_type = 'local' and tcuar.auth_type = 'local'
......
...@@ -33,9 +33,10 @@ ...@@ -33,9 +33,10 @@
</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, tcuta.openid account, tcuwa.wechat_name username, tcuwa.wechat_avatar avatar select tcuar.user_id userId, tcu.rel_user_id relUserId, tcuta.openid account, tcuwa.wechat_name 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_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
where tcuar.del_flag = 0 where tcuar.del_flag = 0
and tcuar.auth_type = 'third' and tcuar.auth_type = 'third'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!