From ea5ec6cc6839485487e6eb8cb8e166eeec31db46 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Wed, 10 Nov 2021 16:01:29 +0800 Subject: [PATCH] fix --- gc-user/src/main/resources/mapper/user/UserMapper.xml | 29 ++++++++++++++++++++++++++++- 1 files changed, 28 insertions(+), 1 deletions(-) diff --git a/gc-user/src/main/resources/mapper/user/UserMapper.xml b/gc-user/src/main/resources/mapper/user/UserMapper.xml index fc7665b..d077cdd 100644 --- a/gc-user/src/main/resources/mapper/user/UserMapper.xml +++ b/gc-user/src/main/resources/mapper/user/UserMapper.xml @@ -250,10 +250,11 @@ </update> <select id="queryCuserDetail" resultType="java.util.HashMap"> - SELECT a.*, b.money, b.withdraw_money, c.pay_type, SUM(c.money) as moneyx FROM xzx_user_info a + SELECT e.mobile_phone tgrPhone,a.*, b.money,b.collect_score collectScore, b.withdraw_money, c.pay_type, SUM(c.money) as moneyx FROM xzx_user_info a LEFT JOIN xzx_account_info b ON a.user_id=b.user_id LEFT JOIN xzx_pay_info c ON b.account_id=c.account_id LEFT JOIN xzx_sys_config_info d ON c.pay_type=d.config_value AND d.config_type_code='PAY_TYPE' + LEFT JOIN xzx_user_share_info e ON e.register_mobile_phone=a.mobile_phone WHERE a.mobile_phone=#{phone} AND a.user_type=#{userType} AND a.del_flag=0 GROUP BY c.pay_type </select> @@ -304,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