1、防护对象查询、白名单新建bug解决
This commit is contained in:
@@ -55,24 +55,24 @@
|
||||
,protect_object_display_id
|
||||
FROM t_protect_object
|
||||
<where>
|
||||
<if test="proobj_name != null">AND protect_object_name LIKE CONCAT('%', #{proobj_name}, '%')</if>
|
||||
<if test="proobj_name != null and proobj_name != '' ">AND protect_object_name LIKE CONCAT('%', #{proobj_name}, '%')</if>
|
||||
<if test="proobj_id != null">AND protect_object_id = #{proobj_id}</if>
|
||||
<if test="proobj_system_name != null">
|
||||
<if test="proobj_system_name != null and proobj_system_name != '' ">
|
||||
AND protect_object_system_name LIKE CONCAT('%', #{proobj_system_name}, '%')
|
||||
</if>
|
||||
<if test="proobj_ip != null">
|
||||
<if test="proobj_ip != null and proobj_ip != '' ">
|
||||
AND protect_object_id IN (
|
||||
SELECT protect_object_id FROM t_protect_object_inet_addr_view tpo_view
|
||||
WHERE tpo_view.protect_object_ip LIKE CONCAT('%', #{proobj_ip}, '%')
|
||||
SELECT protect_object_id FROM t_protect_object_inet_addr_view tpo_view
|
||||
WHERE tpo_view.protect_object_ip LIKE CONCAT('%', #{proobj_ip}, '%')
|
||||
)
|
||||
</if>
|
||||
<if test="proobj_port_min != null">
|
||||
AND protect_object_port > #{proobj_port_min}
|
||||
AND protect_object_port >= #{proobj_port_min}
|
||||
</if>
|
||||
<if test="proobj_port_max != null">
|
||||
AND protect_object_port < #{proobj_port_max}
|
||||
AND protect_object_port <= #{proobj_port_max}
|
||||
</if>
|
||||
<if test="proobj_url != null">
|
||||
<if test="proobj_url != null and proobj_url != '' ">
|
||||
AND protect_object_url LIKE CONCAT('%', #{proobj_url}, '%')
|
||||
</if>
|
||||
<if test="proobj_protocol != null">
|
||||
|
||||
Reference in New Issue
Block a user