Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jz-dmp-cmdexectool
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姚本章
jz-dmp-cmdexectool
Commits
19e75675
Commit
19e75675
authored
Mar 11, 2021
by
mcb
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.ioubuy.cn/yaobenzhang/jz-dmp-cmdexectool
parents
a6e69722
94fc3085
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
SqlParameters.java
.../cmdexectool/scheduler/common/task/sql/SqlParameters.java
+2
-1
sink_api.ftl
src/main/resources/templates/sink_api.ftl
+6
-0
sink_kafka.ftl
src/main/resources/templates/sink_kafka.ftl
+3
-0
No files found.
src/main/java/com/jz/dmp/cmdexectool/scheduler/common/task/sql/SqlParameters.java
View file @
19e75675
...
...
@@ -198,7 +198,7 @@ public class SqlParameters extends AbstractParameters {
String
sqlStr
=
ParameterUtils
.
columnMappingHandler
(
columnFieldsObj
);
Map
<
String
,
String
>
transformMappingSqlModel
=
new
HashMap
<
String
,
String
>();
transformMappingSqlModel
.
put
(
"source_table_name"
,
"t
able_view
"
);
transformMappingSqlModel
.
put
(
"source_table_name"
,
"t"
);
transformMappingSqlModel
.
put
(
"sql"
,
sqlStr
);
transform
=
transform
+
FreeMarkerUtils
.
freemakerJson
(
CommConstant
.
WATERDROP_FTL_TRANSFORM_SQL
,
transformMappingSqlModel
,
freeMarkerConfig
);
...
...
@@ -210,6 +210,7 @@ public class SqlParameters extends AbstractParameters {
sinkApiModel
.
put
(
"method"
,
apiObj
.
getString
(
"method"
));
sinkApiModel
.
put
(
"signType"
,
apiObj
.
getString
(
"signType"
));
sinkApiModel
.
put
(
"authCode"
,
apiObj
.
getString
(
"authCode"
));
sinkApiModel
.
put
(
"salt"
,
apiObj
.
getString
(
"salt"
));
sink
=
FreeMarkerUtils
.
freemakerJson
(
CommConstant
.
WATERDROP_FTL_SINK_API
,
sinkApiModel
,
freeMarkerConfig
);
}
...
...
src/main/resources/templates/sink_api.ftl
View file @
19e75675
Api {
<#if source_table_name??>
source_table_name="${source_table_name!}"
</#if>
<#if url??>
url = "${url!}"
</#if>
...
...
@@ -13,6 +16,9 @@ Api {
</#if>
<#if authCode??>
authCode = "${authCode!}"
</#if>
<#if salt??>
salt = "${salt!}"
</#if>
isTest = "false"
}
src/main/resources/templates/sink_kafka.ftl
View file @
19e75675
Kafka {
<#if source_table_name??>
source_table_name="${source_table_name!}"
</#if>
<#if topic??>
# Kafka 主题
topic = "${topic!}"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment