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
f28f06dc
Commit
f28f06dc
authored
Mar 14, 2021
by
mcb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
bdaa23b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
DmpRealtimeSyncInfoServiceImpl.java
.../modules/service/impl/DmpRealtimeSyncInfoServiceImpl.java
+8
-5
OfflineSynchMapper.xml
src/main/resources/mapper/dmp/OfflineSynchMapper.xml
+1
-1
No files found.
src/main/java/com/jz/dmp/modules/service/impl/DmpRealtimeSyncInfoServiceImpl.java
View file @
f28f06dc
...
...
@@ -1049,6 +1049,7 @@ public class DmpRealtimeSyncInfoServiceImpl implements DmpRealtimeSyncInfoServic
* kafka rest api 获取任务状态
* */
public
String
getExecuteKafkaStatus
(
String
statusUrl
,
Map
params
)
throws
Exception
{
String
status
=
""
;
String
respData
=
HttpClientUtils
.
getJsonForParam
(
statusUrl
,
new
HashMap
<>());
if
(
StringUtils
.
isEmpty
(
respData
))
{
throw
new
RuntimeException
(
"get status failed!"
);
...
...
@@ -1062,13 +1063,15 @@ public class DmpRealtimeSyncInfoServiceImpl implements DmpRealtimeSyncInfoServic
return tasksStatus;
}*/
Map
connector
=
(
Map
)
map
.
get
(
"connector"
);
if
(!
connector
.
containsKey
(
"state"
))
{
throw
new
RuntimeException
(
"get status failed!"
);
if
(
null
!=
connector
&&
connector
.
size
()
>
0
)
{
if
(!
connector
.
containsKey
(
"state"
))
{
throw
new
RuntimeException
(
"get status failed!"
);
}
status
=
(
String
)
connector
.
get
(
"state"
);
logger
.
info
(
"response connector status{}"
+
status
);
}
String
status
=
(
String
)
connector
.
get
(
"state"
);
logger
.
info
(
"response connector status{}"
+
status
);
if
(
StringUtils
.
isNotEmpty
((
String
)
params
.
get
(
"id"
)))
{
if
(
StringUtils
.
isNotEmpty
((
String
)
params
.
get
(
"id"
))
&&
StringUtils
.
isEmpty
(
status
)
)
{
Thread
thread
=
new
Thread
(
new
Runnable
()
{
@Override
public
void
run
()
{
...
...
src/main/resources/mapper/dmp/OfflineSynchMapper.xml
View file @
f28f06dc
...
...
@@ -182,7 +182,7 @@
left join dmp_member t3 on ddt.create_user_id=t3.user_id
WHERE ddt.data_status ='1' and dnt.TYPE ='01' and dnt.IS_LEVEL ='1'
and dnt.PROJECT_ID =#{projectId}
<if
test=
"treeName != null and treeName != ''"
>
dnt.NAME like concat('%',#{treeName},'%')
</if>
<if
test=
"treeName != null and treeName != ''"
>
and
dnt.NAME like concat('%',#{treeName},'%')
</if>
ORDER BY ddt.create_time DESC
</select>
</mapper>
\ No newline at end of file
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