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
33c1e601
Commit
33c1e601
authored
Mar 14, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工作流实例操作开发
parent
c84daafb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
0 deletions
+26
-0
RunRecordingMapper.java
...ore/src/main/java/com/byit/mapper/RunRecordingMapper.java
+7
-0
RunRecordingService.java
...e/src/main/java/com/byit/service/RunRecordingService.java
+7
-0
RunRecordingServiceImpl.java
...n/java/com/byit/service/impl/RunRecordingServiceImpl.java
+5
-0
RunRecordingMapper.xml
...min-core/src/main/resources/mapper/RunRecordingMapper.xml
+7
-0
No files found.
byit-myth-core/myth-admin-core/src/main/java/com/byit/mapper/RunRecordingMapper.java
View file @
33c1e601
...
...
@@ -17,6 +17,13 @@ public interface RunRecordingMapper {
* @return
*/
List
<
RunRecording
>
findRunRecordingByEndAndNotIsAlarm
();
/**
*根据运行标识查询对应的运行实例
* @param runId
* @return
*/
RunRecording
findAllByRunID
(
String
runId
);
/**
* 查询运行中的运行实例
* @return
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/service/RunRecordingService.java
View file @
33c1e601
...
...
@@ -22,6 +22,13 @@ public interface RunRecordingService {
List
<
RunRecording
>
findRunningRunRecording
();
/**
*根据运行标识查询对应的运行实例
* @param runId
* @return
*/
RunRecording
findAllByRunID
(
String
runId
);
/**
* 根据工作流ID查询 是否有正在运行中的实例
* @param flowId
* @return
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/service/impl/RunRecordingServiceImpl.java
View file @
33c1e601
...
...
@@ -34,6 +34,11 @@ public class RunRecordingServiceImpl implements RunRecordingService {
return
runRecordingMapper
.
findRunningRunRecording
();
}
@Override
public
RunRecording
findAllByRunID
(
String
runId
)
{
return
runRecordingMapper
.
findAllByRunID
(
runId
);
}
/**
* 是否存在运行的工作流实例
* @param flowId 工作流ID
...
...
byit-myth-core/myth-admin-core/src/main/resources/mapper/RunRecordingMapper.xml
View file @
33c1e601
...
...
@@ -38,6 +38,13 @@
from run_recording
where flow_status ='4' and is_alarm = '1'
</select>
<select
id=
"findAllByRunID"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from run_recording
where runId=#{runId,jdbcType=VARCHAR} and is_inner = '1'
</select>
<!--查询运行中的-->
<select
id=
"findRunningRunRecording"
resultMap=
"BaseResultMap"
>
select
...
...
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