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