From b933bf8cfb7e0b3d231e7bc721b749fae54e911a Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期二, 23 四月 2019 18:03:24 +0800
Subject: [PATCH] 删除feign工程
---
java110-code-generator/src/main/java/com/java110/code/GeneratorAbstractBussiness.java | 30 +++++++++++++++---------------
1 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/java110-code-generator/src/main/java/com/java110/code/GeneratorAbstractBussiness.java b/java110-code-generator/src/main/java/com/java110/code/GeneratorAbstractBussiness.java
index 4a80806..b906008 100644
--- a/java110-code-generator/src/main/java/com/java110/code/GeneratorAbstractBussiness.java
+++ b/java110-code-generator/src/main/java/com/java110/code/GeneratorAbstractBussiness.java
@@ -6,31 +6,31 @@
/**
* 鐢熸垚浠g爜
+ *
* @param data
*/
- public void generator(Data data){
+ public void generator(Data data) {
StringBuffer sb = readFile(this.getClass().getResource("/template/AbstractBusinessServiceDataFlowListener.txt").getFile());
String fileContext = sb.toString();
- fileContext = fileContext.replace("store",toLowerCaseFirstOne(data.getName()))
- .replace("Store",toUpperCaseFirstOne(data.getName()))
- .replace("鍟嗘埛",data.getDesc())
- ;
- Map<String,String> param = data.getParams();
- String mappingContext="";
- String autoMappingContext ="";
- for(String key : param.keySet()){
- if("statusCd".equals(key) || "bId".equals(key)){
+ fileContext = fileContext.replace("store", toLowerCaseFirstOne(data.getName()))
+ .replace("Store", toUpperCaseFirstOne(data.getName()))
+ .replace("鍟嗘埛", data.getDesc());
+ Map<String, String> param = data.getParams();
+ String mappingContext = "";
+ String autoMappingContext = "";
+ for (String key : param.keySet()) {
+ if ("statusCd".equals(key) || "bId".equals(key)) {
continue;
}
- mappingContext += "business"+toUpperCaseFirstOne(data.getName())+"Info.put(\""+key+"\",business"+toUpperCaseFirstOne(data.getName())+"Info.get(\""+param.get(key)+"\"));\n";
- autoMappingContext += "current"+toUpperCaseFirstOne(data.getName())+"Info.put(\""+key+"\",current"+toUpperCaseFirstOne(data.getName())+"Info.get(\""+param.get(key)+"\"));\n";
+ mappingContext += "business" + toUpperCaseFirstOne(data.getName()) + "Info.put(\"" + key + "\",business" + toUpperCaseFirstOne(data.getName()) + "Info.get(\"" + param.get(key) + "\"));\n";
+ autoMappingContext += "current" + toUpperCaseFirstOne(data.getName()) + "Info.put(\"" + key + "\",current" + toUpperCaseFirstOne(data.getName()) + "Info.get(\"" + param.get(key) + "\"));\n";
}
- fileContext = fileContext.replace("$flushBusinessInfo$",mappingContext);
- fileContext = fileContext.replace("$autoSaveDelBusiness$",autoMappingContext);
+ fileContext = fileContext.replace("$flushBusinessInfo$", mappingContext);
+ fileContext = fileContext.replace("$autoSaveDelBusiness$", autoMappingContext);
System.out.println(this.getClass().getResource("/listener").getPath());
- String writePath = this.getClass().getResource("/listener").getPath()+"/Abstract"+toUpperCaseFirstOne(data.getName())+"BusinessServiceDataFlowListener.java";
+ String writePath = this.getClass().getResource("/listener").getPath() + "/Abstract" + toUpperCaseFirstOne(data.getName()) + "BusinessServiceDataFlowListener.java";
writeFile(writePath,
fileContext);
}
--
Gitblit v1.8.0