...
|
...
|
@@ -141,17 +141,28 @@ |
|
|
<if test="params.hostIp != null && params.hostIp != ''" >
|
|
|
and a.host_ip = #{params.hostIp}
|
|
|
</if>
|
|
|
<if test="params.hostIpList != null && params.hostIpList.size()>0" >
|
|
|
and a.host_ip in
|
|
|
<foreach open="(" close=")" item="item" index="index" collection="params.hostIpList" separator=",">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
|
|
|
<choose>
|
|
|
<when test="params.onlyShowTagsIsNull != null && params.onlyShowTagsIsNull != '' ">
|
|
|
and ( ISNULL(a.tags) or trim(a.tags) = "")
|
|
|
</when>
|
|
|
<otherwise>
|
|
|
<if test="params.tagsList != null && params.tagsList.size()>0" >
|
|
|
and
|
|
|
<foreach collection="params.tagsList" index="index" item="item" separator="and">
|
|
|
instr(a.tags, concat(#{item},',')) > 0
|
|
|
</foreach>
|
|
|
</if>
|
|
|
<when test='params.onlyShowTagsIsNull != null && params.onlyShowTagsIsNull == "1" '>
|
|
|
and ( ISNULL(a.tags) or trim(a.tags) = "")
|
|
|
</when>
|
|
|
<otherwise>
|
|
|
<if test='params.onlyShowTagsIsNull != null && params.onlyShowTagsIsNull == "0" '>
|
|
|
and (a.tags is not null and a.tags !='')
|
|
|
</if>
|
|
|
|
|
|
<if test="params.tagsList != null && params.tagsList.size()>0" >
|
|
|
and
|
|
|
<foreach collection="params.tagsList" index="index" item="item" separator="and">
|
|
|
instr(a.tags, concat(#{item},',')) > 0
|
|
|
</foreach>
|
|
|
</if>
|
|
|
</otherwise>
|
|
|
</choose>
|
|
|
</select>
|
...
|
...
|
@@ -171,12 +182,22 @@ |
|
|
<if test="params.hostIp != null && params.hostIp != ''" >
|
|
|
and a.host_ip = #{params.hostIp}
|
|
|
</if>
|
|
|
<if test="params.hostIpList != null && params.hostIpList.size()>0" >
|
|
|
and a.host_ip in
|
|
|
<foreach open="(" close=")" item="item" index="index" collection="params.hostIpList" separator=",">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
|
|
|
<choose>
|
|
|
<when test="params.onlyShowTagsIsNull != null && params.onlyShowTagsIsNull != '' ">
|
|
|
<when test='params.onlyShowTagsIsNull != null && params.onlyShowTagsIsNull == "1" '>
|
|
|
and ( ISNULL(a.tags) or trim(a.tags) = "")
|
|
|
</when>
|
|
|
<otherwise>
|
|
|
<if test='params.onlyShowTagsIsNull != null && params.onlyShowTagsIsNull == "0" '>
|
|
|
and (a.tags is not null and a.tags !='')
|
|
|
</if>
|
|
|
|
|
|
<if test="params.tagsList != null && params.tagsList.size()>0" >
|
|
|
and
|
|
|
<foreach collection="params.tagsList" index="index" item="item" separator="and">
|
...
|
...
|
|