From 042fd6e07c75f20041b71905721e525b53b90cb3 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 21 Dec 2023 21:21:15 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=A8=A1=E7=89=88=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=89=B9=E9=87=8F=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ExtVisualizationTemplateMapper.xml | 13 +++-- .../template/component/DeTemplateImport.vue | 2 +- .../template/component/DeTemplateItem.vue | 37 ++++++++++++-- .../src/views/template/index.vue | 48 ++++++++++++++++++- .../api/template/dto/TemplateManageDTO.java | 2 + 5 files changed, 90 insertions(+), 12 deletions(-) diff --git a/core/core-backend/src/main/resources/mybatis/ExtVisualizationTemplateMapper.xml b/core/core-backend/src/main/resources/mybatis/ExtVisualizationTemplateMapper.xml index 2c0591a1f6..7c18f24e46 100644 --- a/core/core-backend/src/main/resources/mybatis/ExtVisualizationTemplateMapper.xml +++ b/core/core-backend/src/main/resources/mybatis/ExtVisualizationTemplateMapper.xml @@ -118,18 +118,17 @@ - delete from visualization_template_category_map tcm where tcm.template_id in ( - select id from visualization_template vt + delete from visualization_template_category_map tcm - and vt.name = #{templateName} - - - and vt.template_id = #{templateId} + tcm.template_id in ( + select id from visualization_template vt where vt.name = #{templateName}) + + and tcm.template_id = #{templateId} + - )