From dd45ec019a6ab255ad5c7bfd5a379ea4a5ed0fb0 Mon Sep 17 00:00:00 2001 From: masaimu Date: Mon, 5 Feb 2024 12:27:13 +0800 Subject: [PATCH] parse --- .../server/home/web/controller/AlertTemplateFacadeImpl.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/home/home-web/src/main/java/io/holoinsight/server/home/web/controller/AlertTemplateFacadeImpl.java b/server/home/home-web/src/main/java/io/holoinsight/server/home/web/controller/AlertTemplateFacadeImpl.java index 4ea6841c5..47845a889 100644 --- a/server/home/home-web/src/main/java/io/holoinsight/server/home/web/controller/AlertTemplateFacadeImpl.java +++ b/server/home/home-web/src/main/java/io/holoinsight/server/home/web/controller/AlertTemplateFacadeImpl.java @@ -48,7 +48,7 @@ /** * alert template facade - * + * * @author masaimu * @version 2023-02-21 16:43:00 */ @@ -305,12 +305,14 @@ public void doManage() { } if (StringUtils.isNotEmpty(template.text)) { + if (template.parseText()) { + result.setData(templateDTO); + } result.setSuccess(template.parseText()); } else if (!CollectionUtils.isEmpty(template.fieldMap)) { template.text = template.getTemplateJson(); result.setSuccess(true); } - result.setData(templateDTO); } });