| | |
| | | </update> |
| | | |
| | | <select id="queryCuserDetail" resultType="java.util.HashMap"> |
| | | SELECT a.*, b.money,b.collect_score collectScore, 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> |
| | | |
| | |
| | | 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> |