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
f8911063
Commit
f8911063
authored
Mar 14, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修噶工作流扫描帮助定义
parent
bbe22ad8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
FlowThreadRunHelper.java
...main/java/com/byit/thread/helper/FlowThreadRunHelper.java
+2
-1
No files found.
byit-myth-core/myth-admin-core/src/main/java/com/byit/thread/helper/FlowThreadRunHelper.java
View file @
f8911063
...
@@ -21,6 +21,7 @@ import java.util.concurrent.TimeUnit;
...
@@ -21,6 +21,7 @@ import java.util.concurrent.TimeUnit;
@Component
@Component
@Slf4j
@Slf4j
public
class
FlowThreadRunHelper
extends
BaseThreadRunHelper
{
public
class
FlowThreadRunHelper
extends
BaseThreadRunHelper
{
private
final
int
PRE_TIME
=
30
;
private
static
final
String
LOCK_NAME
=
"flow_lock"
;
private
static
final
String
LOCK_NAME
=
"flow_lock"
;
private
final
DataSource
dataSource
;
private
final
DataSource
dataSource
;
...
@@ -38,7 +39,7 @@ public class FlowThreadRunHelper extends BaseThreadRunHelper {
...
@@ -38,7 +39,7 @@ public class FlowThreadRunHelper extends BaseThreadRunHelper {
@Override
@Override
public
Long
start
()
{
public
Long
start
()
{
Long
preTestTime
=
System
.
currentTimeMillis
()+
TimeUnit
.
HOURS
.
toMillis
(
30
);
Long
preTestTime
=
System
.
currentTimeMillis
()+
TimeUnit
.
HOURS
.
toMillis
(
PRE_TIME
);
//这个查询时有一个条件是 剩余次数不等于0也就是说 等于0的就查询不出来
//这个查询时有一个条件是 剩余次数不等于0也就是说 等于0的就查询不出来
List
<
Flow
>
halfAnHourFlow
=
flowService
.
findHalfAnHourFlow
(
preTestTime
);
List
<
Flow
>
halfAnHourFlow
=
flowService
.
findHalfAnHourFlow
(
preTestTime
);
if
(
CollectionUtil
.
isNotEmpty
(
halfAnHourFlow
))
{
if
(
CollectionUtil
.
isNotEmpty
(
halfAnHourFlow
))
{
...
...
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