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
c68c2a12
Commit
c68c2a12
authored
Mar 11, 2021
by
mcb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sync 修改
parent
a6e6592e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
OfflineSynchServiceImpl.java
.../jz/dmp/modules/service/impl/OfflineSynchServiceImpl.java
+4
-2
DmpDevelopTaskMapper.xml
src/main/resources/mapper/dmp/DmpDevelopTaskMapper.xml
+2
-2
No files found.
src/main/java/com/jz/dmp/modules/service/impl/OfflineSynchServiceImpl.java
View file @
c68c2a12
...
...
@@ -633,7 +633,7 @@ public class OfflineSynchServiceImpl implements OfflineSynchService {
e
.
printStackTrace
();
}
task
.
setData
(
data
);
//json 数据
task
.
setScript
(
body
.
toString
());
//
task.setScript(body.toString());
task
.
setTargetDbName
(
targetDb
);
task
.
setTargetTableName
(
targetTable
);
task
.
setSourceTableName
(
sourceTableName
);
...
...
@@ -988,7 +988,9 @@ public class OfflineSynchServiceImpl implements OfflineSynchService {
}
List
<
SynchTableColumnsReq
>
list
=
req
.
get
(
"params"
);
Long
id
=
list
.
get
(
0
).
getSourceDbId
();
int
num
=
0
;
for
(
SynchTableColumnsReq
str
:
list
)
{
num
++;
//通过源数据库id ,查询数据源配置
DmpAgentDatasourceInfo
dsInfos
=
offlineSynchDao
.
querySourceDbInfoBySourceId
(
str
.
getSourceDbId
());
DmpAgentDatasourceInfo
dsInfo
=
new
DmpAgentDatasourceInfo
();
...
...
@@ -1017,7 +1019,7 @@ public class OfflineSynchServiceImpl implements OfflineSynchService {
map
.
put
(
"isPk"
,
0
);
//主键
map
.
put
(
"isPt"
,
0
);
//分区
returnData
.
add
(
map
);
if
(
id
==
str
.
getSourceDbId
()
)
{
if
(
num
==
1
)
{
syncData
.
add
(
map
);
}
}
...
...
src/main/resources/mapper/dmp/DmpDevelopTaskMapper.xml
View file @
c68c2a12
...
...
@@ -100,8 +100,8 @@
<if
test=
"taskDesc != null and taskDesc != ''"
>
TASK_DESC = #{taskDesc},
</if>
<if
test=
"
script
!= null"
>
SCRIPT = #{
script
, jdbcType=BLOB},
<if
test=
"
data
!= null"
>
SCRIPT = #{
data
, jdbcType=BLOB},
</if>
<if
test=
"dataStatus != null and dataStatus != ''"
>
DATA_STATUS = #{dataStatus},
...
...
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