Commit 33c1e601 by huangfusuper

工作流实例操作开发

parent c84daafb
...@@ -17,6 +17,13 @@ public interface RunRecordingMapper { ...@@ -17,6 +17,13 @@ public interface RunRecordingMapper {
* @return * @return
*/ */
List<RunRecording> findRunRecordingByEndAndNotIsAlarm(); List<RunRecording> findRunRecordingByEndAndNotIsAlarm();
/**
*根据运行标识查询对应的运行实例
* @param runId
* @return
*/
RunRecording findAllByRunID(String runId);
/** /**
* 查询运行中的运行实例 * 查询运行中的运行实例
* @return * @return
......
...@@ -22,6 +22,13 @@ public interface RunRecordingService { ...@@ -22,6 +22,13 @@ public interface RunRecordingService {
List<RunRecording> findRunningRunRecording(); List<RunRecording> findRunningRunRecording();
/** /**
*根据运行标识查询对应的运行实例
* @param runId
* @return
*/
RunRecording findAllByRunID(String runId);
/**
* 根据工作流ID查询 是否有正在运行中的实例 * 根据工作流ID查询 是否有正在运行中的实例
* @param flowId * @param flowId
* @return * @return
......
...@@ -34,6 +34,11 @@ public class RunRecordingServiceImpl implements RunRecordingService { ...@@ -34,6 +34,11 @@ public class RunRecordingServiceImpl implements RunRecordingService {
return runRecordingMapper.findRunningRunRecording(); return runRecordingMapper.findRunningRunRecording();
} }
@Override
public RunRecording findAllByRunID(String runId) {
return runRecordingMapper.findAllByRunID(runId);
}
/** /**
* 是否存在运行的工作流实例 * 是否存在运行的工作流实例
* @param flowId 工作流ID * @param flowId 工作流ID
......
...@@ -38,6 +38,13 @@ ...@@ -38,6 +38,13 @@
from run_recording from run_recording
where flow_status ='4' and is_alarm = '1' where flow_status ='4' and is_alarm = '1'
</select> </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 id="findRunningRunRecording" resultMap="BaseResultMap">
select select
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment