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