From 1c23bfe752fea2e815daa4bdd93859dee9e5b87c Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Thu, 22 Apr 2021 18:44:50 +0800
Subject: [PATCH] 20210422
---
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