Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
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
项目统一框架
amos-boot-biz
Commits
f1a3f0fd
Commit
f1a3f0fd
authored
Nov 08, 2021
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
b0551ad2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
LatentDangerServiceImpl.java
...patrol/business/service/impl/LatentDangerServiceImpl.java
+4
-0
RemoteWorkFlowService.java
...join/amos/patrol/common/remote/RemoteWorkFlowService.java
+1
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/LatentDangerServiceImpl.java
View file @
f1a3f0fd
...
...
@@ -90,6 +90,7 @@ import org.springframework.transaction.interceptor.TransactionAspectSupport;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.StringUtils
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
java.net.InetAddress
;
import
java.util.ArrayList
;
...
...
@@ -1674,6 +1675,9 @@ public class LatentDangerServiceImpl implements ILatentDangerService {
String
taskId
=
null
;
JSONObject
taskJson
=
remoteWorkFlowService
.
queryTask
(
processInstanceId
);
if
(
null
!=
taskJson
)
{
if
(
ValidationUtil
.
isEmpty
(
taskJson
.
get
(
"data"
)))
{
return
null
;
}
JSONObject
dataJson
=
(
JSONObject
)
taskJson
.
get
(
"data"
);
taskId
=
(
String
)
dataJson
.
get
(
"id"
);
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/common/remote/RemoteWorkFlowService.java
View file @
f1a3f0fd
...
...
@@ -269,7 +269,7 @@ public class RemoteWorkFlowService {
public
JSONObject
queryTask
(
String
id
)
{
Map
<
String
,
String
>
map
=
Maps
.
newHashMap
();
map
.
put
(
"processInstanceId"
,
id
);
String
url
=
buildUrl
(
address
,
WorkFlowUriEnum
.
当前
任务
,
map
);
String
url
=
buildUrl
(
address
,
WorkFlowUriEnum
.
流程
任务
,
map
);
Map
<
String
,
String
>
headerMap
=
Maps
.
newHashMap
();
headerMap
.
put
(
XJConstant
.
TOKEN_KEY
,
RequestContext
.
getToken
());
headerMap
.
put
(
XJConstant
.
PRODUCT
,
RequestContext
.
getProduct
());
...
...
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