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
1f0a82b9
Commit
1f0a82b9
authored
Apr 08, 2020
by
guo_minglei@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改记录快照线程
parent
b7eea6f2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
3 deletions
+15
-3
FlowMapper.java
...-admin-core/src/main/java/com/byit/mapper/FlowMapper.java
+7
-0
StatusSnapshootThreadRunHelper.java
...om/byit/thread/helper/StatusSnapshootThreadRunHelper.java
+2
-2
FlowMapper.xml
.../myth-admin-core/src/main/resources/mapper/FlowMapper.xml
+6
-1
No files found.
byit-myth-core/myth-admin-core/src/main/java/com/byit/mapper/FlowMapper.java
View file @
1f0a82b9
...
...
@@ -48,4 +48,10 @@ public interface FlowMapper {
* @return
*/
List
<
Flow
>
findONStartUp
();
/**
* 获取全部的工作流
* @return
*/
List
<
Flow
>
findAll
();
}
\ No newline at end of file
byit-myth-core/myth-admin-core/src/main/java/com/byit/thread/helper/StatusSnapshootThreadRunHelper.java
View file @
1f0a82b9
...
...
@@ -53,8 +53,8 @@ public class StatusSnapshootThreadRunHelper extends BaseThreadRunHelper {
if
(
num
!=
null
&&
num
>=
1
){
return
(
60
-
LocalDateTime
.
now
().
getMinute
())
*
60
*
1000L
;
}
else
{
//获取所有
在调度上
的工作流
List
<
Flow
>
flowList
=
flowMapper
.
find
ONStartUp
();
//获取所有的工作流
List
<
Flow
>
flowList
=
flowMapper
.
find
All
();
if
(
flowList
!=
null
&&
flowList
.
size
()
>
0
){
LocalDateTime
hourDateTime
=
localDateTime
.
minusMinutes
(
localDateTime
.
getMinute
())
//减去分钟
...
...
byit-myth-core/myth-admin-core/src/main/resources/mapper/FlowMapper.xml
View file @
1f0a82b9
...
...
@@ -80,8 +80,13 @@
from flow
where start_up = '0'
</select>
<select
id=
"findAll"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from flow
</select>
<delete
id=
"deleteById"
parameterType=
"java.lang.Integer"
>
<delete
id=
"deleteById"
parameterType=
"java.lang.Integer"
>
<!-- generated @mbg.generated date: 2019-12-31 -->
delete from flow
where flow_id = #{flowId,jdbcType=INTEGER}
...
...
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