From 978a6a97c1497a44f271c3380bb160667b07aead Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Tue, 24 Aug 2021 14:46:02 +0800
Subject: [PATCH] 20210824

---
 gc-user/src/main/resources/mapper/user/UserMapper.xml |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/gc-user/src/main/resources/mapper/user/UserMapper.xml b/gc-user/src/main/resources/mapper/user/UserMapper.xml
index 9fdad63..d077cdd 100644
--- a/gc-user/src/main/resources/mapper/user/UserMapper.xml
+++ b/gc-user/src/main/resources/mapper/user/UserMapper.xml
@@ -305,4 +305,30 @@
             and user_id=#{userId}
         </if>
     </select>
+
+    <select id="tgmxInfo" resultType="com.xzx.gc.user.vo.TgmxInfoListVo">
+        SELECT
+            a.mobile_phone yqrPhone,
+            from_base64(b.nick_name) yqrName,
+            from_base64(c.nick_name) zcName,
+            a.register_mobile_phone zcPhone,
+            a.register_time zcDate
+        FROM xzx_user_share_info a
+        LEFT JOIN xzx_user_info b ON a.mobile_phone=b.mobile_phone
+        LEFT JOIN xzx_user_info c ON a.register_mobile_phone=c.mobile_phone
+        <where>
+            1=1
+            <if test="record.yqrName != null and record.yqrName != ''">
+                and from_base64(b.nick_name) like concat('%',#{record.yqrName},'%')
+            </if>
+            <if test="record.zcName != null and record.zcName != ''">
+                and from_base64(c.nick_name) like concat('%',#{record.zcName},'%')
+            </if>
+            <if test="record.phone != null and record.phone != ''">
+                and (a.register_mobile_phone like concat('%',#{record.phone},'%')
+                    or a.mobile_phone like concat('%',#{record.phone},'%'))
+            </if>
+        </where>
+        order by a.register_time desc
+    </select>
 </mapper>

--
Gitblit v1.9.1