From 922b66d30b4fdbff64768286bf330da027621ce6 Mon Sep 17 00:00:00 2001 From: "1437892690@qq.com" <1437892690@qq.com> Date: Mon, 10 Mar 2025 18:42:14 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E5=A4=8D]=20=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E7=BB=84=E5=90=88=E5=B7=A5=E5=85=B7-=E5=85=B3?= =?UTF-8?q?=E9=94=AE=E5=AD=97=E6=90=9C=E7=B4=A2=E5=90=8E=EF=BC=8C=E5=8C=B9?= =?UTF-8?q?=E9=85=8D=E5=88=B0=E5=90=8D=E7=A7=B0=E4=B8=8D=E5=8C=85=E5=90=AB?= =?UTF-8?q?=E5=85=B3=E9=94=AE=E5=AD=97=E7=9A=84=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E5=B7=A5=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 关联 #[1373986011709440]自定义组合工具-关键字搜索后,匹配到名称不包含关键字的自定义工具 http://192.168.0.96:8090/demo/rdm.html#/bug-detail/939050947543040/939050947543057/1373986011709440 --- .../dao/mapper/AutoexecScriptMapper.xml | 56 ++++++------------- 1 file changed, 18 insertions(+), 38 deletions(-) diff --git a/src/main/java/neatlogic/framework/autoexec/dao/mapper/AutoexecScriptMapper.xml b/src/main/java/neatlogic/framework/autoexec/dao/mapper/AutoexecScriptMapper.xml index 39f50ce7..af216db9 100644 --- a/src/main/java/neatlogic/framework/autoexec/dao/mapper/AutoexecScriptMapper.xml +++ b/src/main/java/neatlogic/framework/autoexec/dao/mapper/AutoexecScriptMapper.xml @@ -776,56 +776,45 @@ - and ( - `name` like CONCAT('%', #{keyword}, '%') - or `description` like CONCAT('%', #{keyword}, '%') - or exists (select 1 from `fulltextindex_word` fw - join `fulltextindex_field_autoexec` ff on fw.`id` = ff.`word_id` - join `autoexec_script_version` asv on ff.`target_id` = asv.`id` - where a.`id` = asv.`script_id` and fw.`word` in - - #{k} - - ) - ) + and a.`name` like CONCAT('%', #{keyword}, '%') - and `exec_mode` = #{execMode} + and a.`exec_mode` = #{execMode} - and `is_lib` = #{isLib} + and a.`is_lib` = #{isLib} - and `type_id` in + and a.`type_id` in #{item} - and `catalog_id` in + and a.`catalog_id` in #{item} - and `risk_id` in + and a.`risk_id` in #{item} - and `id` not in + and a.`id` not in #{item} - and `customtemplate_id` is not null + and a.`customtemplate_id` is not null - and `customtemplate_id` in + and a.`customtemplate_id` in #{item} @@ -848,7 +837,7 @@ @@ -864,9 +853,6 @@ - - - @@ -877,25 +863,19 @@