Commit 19e75675 authored by mcb's avatar mcb
parents a6e69722 94fc3085
...@@ -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("salt", apiObj.getString("salt"));
sink = FreeMarkerUtils.freemakerJson(CommConstant.WATERDROP_FTL_SINK_API, sinkApiModel, freeMarkerConfig); sink = FreeMarkerUtils.freemakerJson(CommConstant.WATERDROP_FTL_SINK_API, sinkApiModel, freeMarkerConfig);
} }
......
Api { Api {
<#if source_table_name??>
source_table_name="${source_table_name!}"
</#if>
<#if url??> <#if url??>
url = "${url!}" url = "${url!}"
</#if> </#if>
...@@ -13,6 +16,9 @@ Api { ...@@ -13,6 +16,9 @@ Api {
</#if> </#if>
<#if authCode??> <#if authCode??>
authCode = "${authCode!}" authCode = "${authCode!}"
</#if>
<#if salt??>
salt = "${salt!}"
</#if> </#if>
isTest = "false" isTest = "false"
} }
Kafka { Kafka {
<#if source_table_name??>
source_table_name="${source_table_name!}"
</#if>
<#if topic??> <#if topic??>
# Kafka 主题 # Kafka 主题
topic = "${topic!}" topic = "${topic!}"
......
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