Skip to content

Commit

Permalink
improve search endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
s39f4lt committed Jan 5, 2021
1 parent 855a238 commit c0d78ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@
FROM (
SELECT *
FROM "user"
WHERE id != #{userId}
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>
Expand Down

0 comments on commit c0d78ef

Please sign in to comment.