This commit is contained in:
77
2024-04-07 23:26:28 +08:00
parent 0ec8bc5be7
commit 70104b6c29

View File

@@ -29,22 +29,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
join xq_user t2 on t1.user_id = t2.id
left join xq_dynamic_star t3 on t1.id = t3.dynamic_id
where t1.audit_status = 2 and t2.status = 0
<where>
<if test="query.gender != null">
and t2.gender = #{query.gender}
</if>
<if test="query.birthdayBegin != null">
and t2.birthday >= #{query.birthdayBegin}
</if>
<if test="query.birthdayEnd != null">
<![CDATA[
and t2.birthday <= #{query.birthdayEnd}
]]>
</if>
<if test="query.residenceCode != null and query.residenceCode != ''">
and t1.residence_code like concat(#{query.residenceCode},'%')
</if>
</where>
<if test="query.gender != null">
and t2.gender = #{query.gender}
</if>
<if test="query.birthdayBegin != null">
and t2.birthday >= #{query.birthdayBegin}
</if>
<if test="query.birthdayEnd != null">
<![CDATA[
and t2.birthday <= #{query.birthdayEnd}
]]>
</if>
<if test="query.residenceCode != null and query.residenceCode != ''">
and t1.residence_code like concat(#{query.residenceCode},'%')
</if>
group by t1.id
<choose>
<when test="query.sortBy != null and query.sortBy == 2">