Commit 1fab7330 by guo_minglei@163.com

Merge remote-tracking branch 'origin/developer' into developer

parents f6289813 52e75519
...@@ -48,7 +48,9 @@ public class RunRecordingServiceImpl implements RunRecordingService { ...@@ -48,7 +48,9 @@ public class RunRecordingServiceImpl implements RunRecordingService {
public boolean findRunRecordingIsRunning(Integer flowId) { public boolean findRunRecordingIsRunning(Integer flowId) {
List<RunRecording> runRecordings = runRecordingMapper.findRunRecordingByFlowId(flowId); List<RunRecording> runRecordings = runRecordingMapper.findRunRecordingByFlowId(flowId);
for (RunRecording runRecording : runRecordings) { for (RunRecording runRecording : runRecordings) {
if (!RunRecordingEnum.FLOW_STATUS_IS_END.getCode().equals(runRecording.getFlowStatus())) { //判断当前的实例 中是否有 未完成的
if (RunRecordingEnum.FLOW_STATUS_RUN_ING.getCode().equals(runRecording.getFlowStatus()) &&
RunRecordingEnum.FLOW_STATUS_IS_STOP.getCode().equals(runRecording.getFlowStatus())) {
return true; return true;
} }
} }
......
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