From 900a936eea730bad3066179a50a6cdda9cc8938f Mon Sep 17 00:00:00 2001 From: "382696293@qq.com" <382696293@qq.com> Date: Fri, 5 Jan 2024 11:58:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=9D=E6=9C=AF=E7=AE=A1=E7=90=86=E7=9B=B8?= =?UTF-8?q?=E5=85=B3bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/flossom/common/core/domain/vo/TreeSelect.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/domain/vo/TreeSelect.java b/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/domain/vo/TreeSelect.java index 13e367a..f897109 100644 --- a/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/domain/vo/TreeSelect.java +++ b/flossom-common/flossom-common-core/src/main/java/com/flossom/common/core/domain/vo/TreeSelect.java @@ -63,7 +63,11 @@ public class TreeSelect implements Serializable { public TreeSelect(WxScriptTemplate wxScriptTemplate) { this.id = wxScriptTemplate.getId(); - this.label = wxScriptTemplate.getTitile(); + if (wxScriptTemplate.getParentId() == 0) { + this.label = wxScriptTemplate.getScriptName(); + } else { + this.label = wxScriptTemplate.getTitile(); + } this.content = wxScriptTemplate.getContent(); this.children = wxScriptTemplate.getScriptTemplateChildren().stream().map(TreeSelect::new).collect(Collectors.toList()); }