From dc0a33f391e23d4565e0cfd5d77a03784ec8c84d Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Fri, 19 Jun 2020 10:44:34 +0800
Subject: [PATCH] add sale list view

---
 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