Skip to content

Commit

Permalink
fix search
Browse files Browse the repository at this point in the history
  • Loading branch information
s39f4lt committed Jan 5, 2021
1 parent 0a51105 commit ecb759e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@
WHERE id != #{userId} AND id NOT IN (SELECT "to" FROM black_list WHERE "from" = #{userId})
<if test="form.man">AND gender ilike 'man'</if>
<if test="form.woman">AND gender ilike 'woman'</if>
<if test="!form.man and !form.woman">AND gender ILIKE 'man' AND gender ILIKE 'woman'</if>
<if test="!form.man and !form.woman">AND gender ILIKE 'man' OR gender ILIKE 'woman'</if>
<if test="form.rateFrom != null">AND rate &gt;= #{form.rateFrom}</if>
<if test="form.rateTo != null">AND rate &lt;= #{form.rateTo}</if>) as users
INNER JOIN user_ref_tags urt ON id = urt.user_id
Expand Down

0 comments on commit ecb759e

Please sign in to comment.