...
|
...
|
@@ -141,8 +141,11 @@ |
|
|
<if test="params.hostIp != null && params.hostIp != ''" >
|
|
|
and a.host_ip = #{params.hostIp}
|
|
|
</if>
|
|
|
<if test="params.tags != null && params.tags != ''" >
|
|
|
and instr(a.tags, #{params.tags}) > 0
|
|
|
<if test="params.tagsList != null && params.tagsList != ''" >
|
|
|
and
|
|
|
<foreach collection="params.tagsList" index="index" item="item" separator="and">
|
|
|
instr(a.tags, #{item}) > 0
|
|
|
</foreach>
|
|
|
</if>
|
|
|
</select>
|
|
|
|
...
|
...
|
@@ -161,9 +164,13 @@ |
|
|
<if test="params.hostIp != null && params.hostIp != ''" >
|
|
|
and a.host_ip = #{params.hostIp}
|
|
|
</if>
|
|
|
<if test="params.tags != null && params.tags != ''" >
|
|
|
and instr(a.tags, #{params.tags}) > 0
|
|
|
<if test="params.tagsList != null && params.tagsList != ''" >
|
|
|
and
|
|
|
<foreach collection="params.tagsList" index="index" item="item" separator="and">
|
|
|
instr(a.tags, #{item}) > 0
|
|
|
</foreach>
|
|
|
</if>
|
|
|
|
|
|
order by a.create_time desc
|
|
|
limit #{startIndex},#{pageSize}
|
|
|
</select>
|
...
|
...
|
|