From 485b0820dc36e2bb94bf618173c2588cc003362a Mon Sep 17 00:00:00 2001 From: wzy <wzy19931122ai@163.com> Date: Wed, 24 Nov 2021 19:08:41 +0800 Subject: [PATCH] fix --- 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