1、分页查询新增查询条件为''空字符串的判断处理
This commit is contained in:
@@ -104,12 +104,12 @@
|
||||
<select id="queryProtectObjectsTotalNum" resultType="java.lang.Integer">
|
||||
SELECT COUNT(protect_object_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}, '%')
|
||||
@@ -121,7 +121,7 @@
|
||||
<if test="proobj_port_max != null">
|
||||
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