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