diff --git a/src/main/java/xyz/wbsite/dbtool/javafx/po/Module.java b/src/main/java/xyz/wbsite/dbtool/javafx/po/Module.java
index 3f38c77d..35c9948d 100644
--- a/src/main/java/xyz/wbsite/dbtool/javafx/po/Module.java
+++ b/src/main/java/xyz/wbsite/dbtool/javafx/po/Module.java
@@ -61,6 +61,13 @@ public class Module extends TreeItem {
return true;
}
+ public boolean hasHtml() {
+ for (Table table : tables) {
+ if (table.getHtml()) return true;
+ }
+ return false;
+ }
+
public List
getTables() {
return tables;
}
@@ -82,7 +89,7 @@ public class Module extends TreeItem {
}
public void setModulePrefix(String modulePrefix) {
- this.modulePrefix = modulePrefix!=null?modulePrefix:"";
+ this.modulePrefix = modulePrefix != null ? modulePrefix : "";
}
public String getProjectName() {
diff --git a/src/main/resources/modules/SpringBoot/resources/templates/screen/index.ftl b/src/main/resources/modules/SpringBoot/resources/templates/screen/index.ftl
index 96a191cc..2c376e71 100644
--- a/src/main/resources/modules/SpringBoot/resources/templates/screen/index.ftl
+++ b/src/main/resources/modules/SpringBoot/resources/templates/screen/index.ftl
@@ -20,15 +20,19 @@
文件管理
<#list modules as item>
+<#if item.hasHtml()>
${item.moduleComment}
<#list item.tables as table>
+ <#if table.getHtml()>
${table.tableComment}
+ #if>
#list>
+#if>
#list>