Skip to content

Commit

Permalink
fixed CollectionMapper.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
marcos-lg committed Jul 11, 2024
1 parent 69a9314 commit c1d4db0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,10 @@
<if test="params.query != null" >,query</if>
<if test="params.fuzzyName != null">,similarity(c.name, #{params.fuzzyName,jdbcType=VARCHAR}) AS similarity_score</if>
FROM collection c
<include refid="LIST_FILTER" />
<if test="params.query != null" >
<include refid="FULLTEXT_SEARCH"/>
</if>
<include refid="LIST_FILTER" />
) AS c
ORDER BY
<include refid="org.gbif.registry.persistence.mapper.collections.Common.sortBy">
Expand All @@ -222,10 +222,10 @@
<select id="count" resultType="Long">
SELECT count(DISTINCT c.key)
FROM collection c
<include refid="LIST_FILTER" />
<if test="params.query != null" >
<include refid="FULLTEXT_SEARCH"/>
</if>
<include refid="LIST_FILTER" />
</select>

<sql id="LIST_FILTER">
Expand Down

0 comments on commit c1d4db0

Please sign in to comment.