From a87b4573c7f4e8aa2ae52cc1fe9ccd2d2d44482d Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Sat, 11 Jul 2020 17:55:15 +0800 Subject: [PATCH] modify --- src/main/resources/mapper/system/UserMapper.xml | 16 ++++++++++++++-- 1 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mapper/system/UserMapper.xml b/src/main/resources/mapper/system/UserMapper.xml index 96e72c1..7c0c290 100644 --- a/src/main/resources/mapper/system/UserMapper.xml +++ b/src/main/resources/mapper/system/UserMapper.xml @@ -175,8 +175,7 @@ a.create_time, a.status, b.return_ratio, - c.phone telphone, - c.email, + a.mobile telphone, c.referer_id refererId, c.certify_status from t_user a @@ -194,4 +193,17 @@ <select id="selectUserByInviteId" resultType="user"> select * from t_user where invite_id=#{inviteId} </select> + + <select id="selectUserInfoById" resultType="user"> + select + a.user_id, + a.agent_name, + a.username, + a.mobile, + a.invite_id, + b.return_ratio + from t_user a + left join agent_friend_relation b on a.user_id=b.user_id + where a.user_id=#{id} + </select> </mapper> -- Gitblit v1.9.1