Commit 19ed2228 authored by hanfeng's avatar hanfeng

开票

parent 0ff28b77
......@@ -110,7 +110,7 @@
pl.username AS superiorMobileNumber
FROM
app_user_login l
LEFT JOIN (select * from app_user_detail where channel > 0) d ON d.userid = l.id
LEFT JOIN app_user_detail d ON d.userid = l.id
LEFT JOIN app_user_login ul ON ul.id = d.inviter_account
LEFT JOIN base_user_member m ON d.userid = m.user_id
LEFT JOIN
......@@ -137,6 +137,8 @@
LEFT JOIN app_user_login pl ON r.parent_id = pl.id
LEFT JOIN app_user_detail pd ON pl.id = pd.userid
WHERE
d.channel>0
and
l.id = #{userId}
</select>
......@@ -163,7 +165,7 @@
pl.username AS superiorMobileNumber
FROM
app_user_login l
LEFT JOIN (select * from app_user_detail where channel>0) d ON d.userid = l.id
LEFT JOIN app_user_detail d ON d.userid = l.id
LEFT JOIN base_user_member m ON d.userid = m.user_id
LEFT JOIN (
SELECT
......@@ -188,6 +190,8 @@
LEFT JOIN app_user_detail pd ON pl.id = pd.userid
WHERE
l.isdel = 0
and
d.channel>0
<if test="mobile !=null and mobile !='' ">
and l.username like CONCAT('%',#{mobile},'%')
</if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment