Commit 33c1e601 by huangfusuper

工作流实例操作开发

parent c84daafb
......@@ -17,6 +17,13 @@ public interface RunRecordingMapper {
* @return
*/
List<RunRecording> findRunRecordingByEndAndNotIsAlarm();
/**
*根据运行标识查询对应的运行实例
* @param runId
* @return
*/
RunRecording findAllByRunID(String runId);
/**
* 查询运行中的运行实例
* @return
......
......@@ -22,6 +22,13 @@ public interface RunRecordingService {
List<RunRecording> findRunningRunRecording();
/**
*根据运行标识查询对应的运行实例
* @param runId
* @return
*/
RunRecording findAllByRunID(String runId);
/**
* 根据工作流ID查询 是否有正在运行中的实例
* @param flowId
* @return
......
......@@ -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
......
......@@ -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
......
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