Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jz-dmp-service
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-service
Commits
1418cbfc
Commit
1418cbfc
authored
Dec 25, 2020
by
mcb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
8a7d0cf1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
4 deletions
+28
-4
update.sql
database/mcb/update.sql
+2
-1
DmpSyncingDatasourceReq.java
...troller/DataIntegration/bean/DmpSyncingDatasourceReq.java
+11
-1
DmpSyncingDatasource.java
...n/java/com/jz/dmp/modules/model/DmpSyncingDatasource.java
+11
-0
DmpSyncingDatasourceDao.xml
src/main/resources/mapper/dmp/DmpSyncingDatasourceDao.xml
+4
-2
No files found.
database/mcb/update.sql
View file @
1418cbfc
...
...
@@ -3,4 +3,5 @@ alter table dmp_develop_task add SOURCE_DB_NAME varchar(64) default NULL COMMENT
alter
table
dmp_develop_task
add
SOURCE_TABLE_NAME
varchar
(
64
)
default
NULL
COMMENT
'源数据表名称'
;
alter
table
dmp_develop_task
add
TARGET_DB_NAME
varchar
(
64
)
default
NULL
COMMENT
'目标数据库名称'
;
alter
table
dmp_develop_task
add
TARGET_TABLE_NAME
varchar
(
64
)
default
NULL
COMMENT
'目标数据表名称'
;
alter
table
dmp_syncing_datasource_type
add
DB_ATTRS
json
default
null
comment
'数据库属性'
;
\ No newline at end of file
alter
table
dmp_syncing_datasource_type
add
DB_ATTRS
json
default
null
comment
'数据库属性'
;
alter
table
dmp_syncing_datasource
add
NETWORK_CONNECTION_TYPE
varchar
(
64
)
default
null
comment
'网络连接类型'
;
\ No newline at end of file
src/main/java/com/jz/dmp/modules/controller/DataIntegration/bean/DmpSyncingDatasourceReq.java
View file @
1418cbfc
...
...
@@ -8,7 +8,7 @@ import javax.validation.constraints.NotNull;
import
java.io.Serializable
;
/**
* 数据源配置(DmpSyncingDatasource)实体类
*
保存
数据源配置(DmpSyncingDatasource)实体类
*
* @author Bellamy
* @since 2020-12-21 17:47:18
...
...
@@ -118,6 +118,9 @@ public class DmpSyncingDatasourceReq implements Serializable {
private
String
isHaveHeader
;
@ApiModelProperty
(
value
=
"网络连接类型"
)
private
String
networkConnectionType
;
public
String
getId
()
{
return
id
;
}
...
...
@@ -278,4 +281,11 @@ public class DmpSyncingDatasourceReq implements Serializable {
this
.
isHaveHeader
=
isHaveHeader
;
}
public
String
getNetworkConnectionType
()
{
return
networkConnectionType
;
}
public
void
setNetworkConnectionType
(
String
networkConnectionType
)
{
this
.
networkConnectionType
=
networkConnectionType
;
}
}
\ No newline at end of file
src/main/java/com/jz/dmp/modules/model/DmpSyncingDatasource.java
View file @
1418cbfc
...
...
@@ -139,6 +139,9 @@ public class DmpSyncingDatasource implements Serializable {
private
String
targetFileName
;
@ApiModelProperty
(
value
=
"网络连接类型"
)
private
String
networkConnectionType
;
public
Integer
getId
()
{
return
id
;
}
...
...
@@ -354,4 +357,12 @@ public class DmpSyncingDatasource implements Serializable {
public
void
setTargetFileName
(
String
targetFileName
)
{
this
.
targetFileName
=
targetFileName
;
}
public
String
getNetworkConnectionType
()
{
return
networkConnectionType
;
}
public
void
setNetworkConnectionType
(
String
networkConnectionType
)
{
this
.
networkConnectionType
=
networkConnectionType
;
}
}
\ No newline at end of file
src/main/resources/mapper/dmp/DmpSyncingDatasourceDao.xml
View file @
1418cbfc
...
...
@@ -126,8 +126,10 @@
<!--新增所有列-->
<insert
id=
"insert"
keyProperty=
"id"
useGeneratedKeys=
"true"
>
insert into dmp_syncing_datasource(DATASOURCE_TYPE, DATASOURCE_NAME, DATASOURCE_DESC, JDBC_URL, DB_NAME, USER_NAME, PASSWORD, ENDPOINT, BUCKET, ACCESS_ID, ACCESS_KEY, PROTOCOL, HOST, PORT, DEFAULT_FS, TABLE_SCHEMA, DATA_STATUS, CREATE_USER_ID, CREATE_TIME, UPDATE_USER_ID, UPDATE_TIME, PROJECT_ID)
values (#{datasourceType}, #{datasourceName}, #{datasourceDesc}, #{jdbcUrl}, #{dbName}, #{userName}, #{password}, #{endpoint}, #{bucket}, #{accessId}, #{accessKey}, #{protocol}, #{host}, #{port}, #{defaultFs}, #{tableSchema}, #{dataStatus}, #{createUserId}, #{createTime}, #{updateUserId}, #{updateTime}, #{projectId})
insert into dmp_syncing_datasource(DATASOURCE_TYPE, DATASOURCE_NAME, DATASOURCE_DESC, JDBC_URL, DB_NAME, USER_NAME, PASSWORD, ENDPOINT, BUCKET, ACCESS_ID
, ACCESS_KEY, PROTOCOL, HOST, PORT, DEFAULT_FS, TABLE_SCHEMA, DATA_STATUS, CREATE_USER_ID, CREATE_TIME, UPDATE_USER_ID, UPDATE_TIME, PROJECT_ID, NETWORK_CONNECTION_TYPE)
values (#{datasourceType}, #{datasourceName}, #{datasourceDesc}, #{jdbcUrl}, #{dbName}, #{userName}, #{password}, #{endpoint}, #{bucket}, #{accessId}, #{accessKey}
, #{protocol}, #{host}, #{port}, #{defaultFs}, #{tableSchema}, #{dataStatus}, #{createUserId}, #{createTime}, #{updateUserId}, #{updateTime}, #{projectId}, #{networkConnectionType})
</insert>
<insert
id=
"insertBatch"
keyProperty=
"id"
useGeneratedKeys=
"true"
>
...
...
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