用户列表 报错

This commit is contained in:
wangw 2025-01-06 10:03:45 +08:00
parent ec789a8df1
commit 400fce2c41
1 changed files with 15 additions and 14 deletions

View File

@ -5,15 +5,16 @@
<select id="selectUserPage" resultType="com.sqx.modules.app.entity.UserEntity">
select u.*,v.is_vip as member,v.end_time as endTime,v.vip_type as vipType,
-- select u.*,v.is_vip as member,v.end_time as endTime,v.vip_type as vipType,
select u.*,1 as member,
s.username as sysUserName
from tb_user u
left join user_vip v on v.user_id=u.user_id
-- left join user_vip v on v.user_id=u.user_id
left join sys_user s on s.qd_code=u.qd_code
where s.sys_user_id is null
<if test="vipType!=null">
and v.vip_type = #{vipType}
</if>
<!-- <if test="vipType!=null">-->
<!-- and v.vip_type = #{vipType}-->
<!-- </if>-->
<if test="search!=null and search!=''">
and (u.user_id=#{search} or u.phone = #{search} or u.user_name =#{search} )
</if>
@ -32,15 +33,15 @@
<if test="sysPhone!=null and sysPhone!=''">
and u.sys_phone=#{sysPhone}
</if>
<if test="status!=null and status!=0">
and u.status=#{status}
</if>
<if test="member!=null and member!=-1 and member!=1">
and v.is_vip=#{member}
</if>
<if test="member!=null and member==1">
and (v.is_vip=1 or v.is_vip is null)
</if>
<!-- <if test="status!=null and status!=0">-->
<!-- and u.status=#{status}-->
<!-- </if>-->
<!-- <if test="member!=null and member!=-1 and member!=1">-->
<!-- and v.is_vip=#{member}-->
<!-- </if>-->
<!-- <if test="member!=null and member==1">-->
<!-- and (v.is_vip=1 or v.is_vip is null)-->
<!-- </if>-->
<if test="inviterCode!=null and inviterCode!=''">
and u.inviter_code like concat("%",#{inviterCode},"%")
</if>