Authored by qinchao

主机根据tag查询 mapper bug

... ... @@ -149,7 +149,7 @@
<if test="params.tagsList != null &amp;&amp; params.tagsList.size()>0" >
and
<foreach collection="params.tagsList" index="index" item="item" separator="and">
instr(a.tags, #{item}) &gt; 0
instr(a.tags, concat(#{item},',')) &gt; 0
</foreach>
</if>
</otherwise>
... ... @@ -180,7 +180,7 @@
<if test="params.tagsList != null &amp;&amp; params.tagsList.size()>0" >
and
<foreach collection="params.tagsList" index="index" item="item" separator="and">
instr(a.tags, #{item}) &gt; 0
instr(a.tags, concat(#{item},',')) &gt; 0
</foreach>
</if>
</otherwise>
... ... @@ -201,7 +201,7 @@
select
<include refid="Base_Column_List" />
from host_info
where instr(tags, LOWER(#{tag})) &gt; 0
where instr(tags, concat(#{tag},',')) &gt; 0
</select>
<select id="selectHostInfosByTagList" resultMap="BaseResultMap">
... ... @@ -212,7 +212,7 @@
<if test="tagsList != null &amp;&amp; tagsList.size > 0" >
and
<foreach open="(" close=")" item="item" index="index" collection="tagsList" separator="and">
instr(tags, #{item}) &gt; 0
instr(tags, concat(#{item},',')) &gt; 0
</foreach>
</if>
</select>
... ... @@ -225,7 +225,7 @@
<if test="tagsList != null &amp;&amp; tagsList.size > 0" >
and
<foreach open="(" close=")" item="item" index="index" collection="tagsList" separator="and">
instr(tags, #{item}) &gt; 0
instr(tags, concat(#{item},',')) &gt; 0
</foreach>
</if>
... ... @@ -242,7 +242,7 @@
select
<include refid="Base_Column_List" />
from host_info
where instr(tags, LOWER(#{tag})) &gt; 0
where instr(tags, concat(#{tag},',')) &gt; 0
AND cloud_type = #{cloudType}
</select>
... ...