Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
byit-myth-job
Overview
Overview
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
liyuan
byit-myth-job
Commits
7c7c2b03
Commit
7c7c2b03
authored
May 09, 2020
by
guominglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补批枷锁
parent
f82b8dab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
ApiFlowServiceImpl.java
...c/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
+6
-1
No files found.
byit-myth-admin/src/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
View file @
7c7c2b03
...
@@ -16,6 +16,7 @@ import com.byit.model.*;
...
@@ -16,6 +16,7 @@ import com.byit.model.*;
import
com.byit.model.vo.RunRecordingVo
;
import
com.byit.model.vo.RunRecordingVo
;
import
com.byit.service.ApiFlowService
;
import
com.byit.service.ApiFlowService
;
import
com.byit.util.ApiFlowDagCheck
;
import
com.byit.util.ApiFlowDagCheck
;
import
com.byit.util.lock.RedissLockUtil
;
import
com.byit.utils.ValidationUtil
;
import
com.byit.utils.ValidationUtil
;
import
com.google.common.base.Joiner
;
import
com.google.common.base.Joiner
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
@@ -971,6 +972,7 @@ public class ApiFlowServiceImpl implements ApiFlowService {
...
@@ -971,6 +972,7 @@ public class ApiFlowServiceImpl implements ApiFlowService {
@Override
@Override
public
void
repairFlow
(
String
param
)
{
public
void
repairFlow
(
String
param
)
{
ValidationUtil
.
dataNotBank
(
param
,
"请求参数不允许为空!"
);
ValidationUtil
.
dataNotBank
(
param
,
"请求参数不允许为空!"
);
JSONObject
jsonObject
=
JSON
.
parseObject
(
param
);
JSONObject
jsonObject
=
JSON
.
parseObject
(
param
);
//获取工作空间名称
//获取工作空间名称
...
@@ -996,6 +998,8 @@ public class ApiFlowServiceImpl implements ApiFlowService {
...
@@ -996,6 +998,8 @@ public class ApiFlowServiceImpl implements ApiFlowService {
ValidationUtil
.
dataNotNull
(
flow
,
flowName
+
"工作流不存在"
);
ValidationUtil
.
dataNotNull
(
flow
,
flowName
+
"工作流不存在"
);
List
<
Node
>
nodeList
=
nodeMapper
.
findByFlowIdAndName
(
flow
.
getFlowId
(),
nodeNameList
);
List
<
Node
>
nodeList
=
nodeMapper
.
findByFlowIdAndName
(
flow
.
getFlowId
(),
nodeNameList
);
RedissLockUtil
.
lock
(
flow
.
getFlowId
().
toString
(),
60
);
//设置触发时间
//设置触发时间
Long
triggerTime
=
System
.
currentTimeMillis
();
Long
triggerTime
=
System
.
currentTimeMillis
();
...
@@ -1035,9 +1039,10 @@ public class ApiFlowServiceImpl implements ApiFlowService {
...
@@ -1035,9 +1039,10 @@ public class ApiFlowServiceImpl implements ApiFlowService {
waitingTask
.
setWaitId
(
waitingRecord
.
getWaitId
());
waitingTask
.
setWaitId
(
waitingRecord
.
getWaitId
());
waitingTaskMapper
.
insertSelective
(
waitingTask
);
waitingTaskMapper
.
insertSelective
(
waitingTask
);
});
});
}
}
RedissLockUtil
.
unlock
(
flow
.
getFlowId
().
toString
());
}
}
...
...
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