Commit 623119af authored by 周健威's avatar 周健威

Merge remote-tracking branch 'origin/dev' into dev

parents 3e53962f 2836d950
...@@ -191,4 +191,9 @@ public class AppUserManageVo { ...@@ -191,4 +191,9 @@ public class AppUserManageVo {
* 上级手机号 * 上级手机号
*/ */
private String superiorMobileNumber; private String superiorMobileNumber;
/**
* 注册时间
*/
private Long createtime;
} }
...@@ -157,38 +157,13 @@ ...@@ -157,38 +157,13 @@
d.channel, d.channel,
d.source, d.source,
d.realname, d.realname,
ml. NAME AS memberName, l.createtime,
aup. NAME AS positionName, l.status,
m.crt_time AS timeOfMembership, d.headimgurl,
m.total_number AS totalNumber, d.nickname
m.rent_free_days AS rentFreeDays,
IFNULL(pd.realname, pd.nickname) AS nameOfSuperior,
pl.username AS superiorMobileNumber
FROM FROM
app_user_login l app_user_login l
LEFT JOIN app_user_detail 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
LEVEL,
NAME
FROM
base_user_member_level
WHERE
isdel = 0
) ml ON m.member_level = ml. LEVEL
LEFT JOIN app_user_position aup ON aup.id = d.position_id
LEFT JOIN (
SELECT
user_id,
parent_id
FROM
app_user_relation
WHERE
is_del = 0
) r ON l.id = r.user_id
LEFT JOIN app_user_login pl ON r.parent_id = pl.id
LEFT JOIN app_user_detail pd ON pl.id = pd.userid
WHERE WHERE
l.isdel = 0 l.isdel = 0
and and
...@@ -196,49 +171,25 @@ ...@@ -196,49 +171,25 @@
<if test="mobile !=null and mobile !='' "> <if test="mobile !=null and mobile !='' ">
and l.username like CONCAT('%',#{mobile},'%') and l.username like CONCAT('%',#{mobile},'%')
</if> </if>
<if test="channel !=null ">
and d.channel=#{channel}
</if>
<if test="memberLevel !=null and memberLevel != -1">
and m.member_level = #{memberLevel}
</if>
<if test="memberLevel == -1">
and m.member_level in (select level from base_user_member_level)
</if>
<if test="registrationTimeBegin !=null "> <if test="registrationTimeBegin !=null ">
and l.createtime &gt;= #{registrationTimeBegin} and l.createtime &gt;= #{registrationTimeBegin}
</if> </if>
<if test="registrationTimeEnd !=null "> <if test="registrationTimeEnd !=null ">
and l.createtime &lt;= #{registrationTimeEnd} and l.createtime &lt;= #{registrationTimeEnd}
</if> </if>
<if test="source !=null ">
and d.source = #{source}
</if>
<if test="userId!=null"> <if test="userId!=null">
and l.id=#{userId} and l.id=#{userId}
</if> </if>
<if test="status != null"> <if test="status != null">
and l.status = #{status} and l.status = #{status}
</if> </if>
<if test="postionState != null"> <if test="nickname !=null and nickname != ''">
<choose> and d.nickname like CONCAT('%',#{nickname},'%')
<when test="postionState == 6">
and d.position_id =#{postionState}
</when>
<otherwise>
and <![CDATA[d.`position_id`<>6]]>
</otherwise>
</choose>
</if> </if>
<if test="realName !=null and realName != ''"> <if test="realName !=null and realName != ''">
and d.realname like CONCAT('%',#{realName},'%') and d.realname like CONCAT('%',#{realName},'%')
</if> </if>
<if test="citySet != null ">
and d.city_code in
<foreach collection="citySet" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</if>
order by l.id ASC order by l.id ASC
</select> </select>
......
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