From b2b5bdf6f42597e582da96aa56707e1f68d3936e Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期二, 10 五月 2022 11:41:44 +0800
Subject: [PATCH] 优化 费用
---
java110-generator/src/main/java/com/java110/code/relationship/GeneratorFlow.java | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 45 insertions(+), 0 deletions(-)
diff --git a/java110-generator/src/main/java/com/java110/code/relationship/GeneratorFlow.java b/java110-generator/src/main/java/com/java110/code/relationship/GeneratorFlow.java
new file mode 100755
index 0000000..7421def
--- /dev/null
+++ b/java110-generator/src/main/java/com/java110/code/relationship/GeneratorFlow.java
@@ -0,0 +1,45 @@
+package com.java110.code.relationship;
+
+
+import com.alibaba.fastjson.JSONObject;
+import com.java110.code.back.BaseGenerator;
+import com.java110.code.web.GeneratorStart;
+
+public class GeneratorFlow extends BaseGenerator {
+
+ public void generator(JSONObject data) {
+
+ //澶勭悊缁勪欢
+// generatorComponentHtml(data);
+
+
+
+
+ }
+
+ /**
+ * 鐢熸垚 html js java 绫�
+ *
+ * @param data
+ */
+ private void generatorComponentHtml(JSONObject data) {
+
+ StringBuffer sb = readFile(GeneratorStart.class.getResource("/relationship/flow.html").getFile());
+ String fileContext = sb.toString();
+
+ fileContext = super.replaceBindingTemplateContext(fileContext, data);
+
+
+ String writePath = this.getClass().getResource("/").getPath()
+ + "out/relationship/" + data.getString("templateCode") + "/" + data.getString("templateCode") + "Flow.html";
+ System.out.printf("writePath: " + writePath);
+ writeFile(writePath,
+ fileContext);
+
+
+ }
+
+
+
+
+}
--
Gitblit v1.8.0