Commit 512bdbc5 authored by sml's avatar sml

sql2api 盐值

parent 526f94fa
...@@ -198,7 +198,7 @@ public class SqlParameters extends AbstractParameters { ...@@ -198,7 +198,7 @@ public class SqlParameters extends AbstractParameters {
String sqlStr = ParameterUtils.columnMappingHandler(columnFieldsObj); String sqlStr = ParameterUtils.columnMappingHandler(columnFieldsObj);
Map<String, String> transformMappingSqlModel = new HashMap<String, String>(); Map<String, String> transformMappingSqlModel = new HashMap<String, String>();
transformMappingSqlModel.put("source_table_name", "table_view"); transformMappingSqlModel.put("source_table_name", "t");
transformMappingSqlModel.put("sql", sqlStr); transformMappingSqlModel.put("sql", sqlStr);
transform = transform + FreeMarkerUtils.freemakerJson(CommConstant.WATERDROP_FTL_TRANSFORM_SQL, transformMappingSqlModel, freeMarkerConfig); transform = transform + FreeMarkerUtils.freemakerJson(CommConstant.WATERDROP_FTL_TRANSFORM_SQL, transformMappingSqlModel, freeMarkerConfig);
...@@ -210,6 +210,7 @@ public class SqlParameters extends AbstractParameters { ...@@ -210,6 +210,7 @@ public class SqlParameters extends AbstractParameters {
sinkApiModel.put("method", apiObj.getString("method")); sinkApiModel.put("method", apiObj.getString("method"));
sinkApiModel.put("signType", apiObj.getString("signType")); sinkApiModel.put("signType", apiObj.getString("signType"));
sinkApiModel.put("authCode", apiObj.getString("authCode")); sinkApiModel.put("authCode", apiObj.getString("authCode"));
sinkApiModel.put("slat", apiObj.getString("slat"));
sink = FreeMarkerUtils.freemakerJson(CommConstant.WATERDROP_FTL_SINK_API, sinkApiModel, freeMarkerConfig); sink = FreeMarkerUtils.freemakerJson(CommConstant.WATERDROP_FTL_SINK_API, sinkApiModel, freeMarkerConfig);
} }
......
...@@ -13,6 +13,9 @@ Api { ...@@ -13,6 +13,9 @@ Api {
</#if> </#if>
<#if authCode??> <#if authCode??>
authCode = "${authCode!}" authCode = "${authCode!}"
</#if>
<#if salt??>
salt = "${salt!}"
</#if> </#if>
isTest = "false" isTest = "false"
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment