diff --git a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/controller/experiment/ExperimentController.java b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/controller/experiment/ExperimentController.java
index 1bbe9ac9..29210880 100644
--- a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/controller/experiment/ExperimentController.java
+++ b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/controller/experiment/ExperimentController.java
@@ -113,7 +113,7 @@ public class ExperimentController {
*/
@PutMapping("/experiments/{id}")
@ApiOperation("运行实验")
- public AjaxResult runExperiment(@PathVariable("id") Integer id) {
+ public AjaxResult runExperiment(@PathVariable("id") Integer id) throws Exception {
return AjaxResult.success(this.experimentService.runExperiment(id));
}
diff --git a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ExperimentInsServiceImpl.java b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ExperimentInsServiceImpl.java
index efab3a83..e9dcd214 100644
--- a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ExperimentInsServiceImpl.java
+++ b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ExperimentInsServiceImpl.java
@@ -63,6 +63,7 @@ public class ExperimentInsServiceImpl implements ExperimentInsService {
@Override
public ExperimentIns queryById(Integer id) {
ExperimentIns experimentIns = this.experimentInsDao.queryById(id);
+ //获取实例当前状态
String currentStatus = experimentIns.getStatus();
// 检查是否需要调用接口查询状态:当原本状态为null或running或Pending时调用argo接口
diff --git a/ruoyi-modules/management-platform/src/main/resources/mapper/managementPlatform/WorkflowDaoMapper.xml b/ruoyi-modules/management-platform/src/main/resources/mapper/managementPlatform/WorkflowDaoMapper.xml
index 755a11da..fe4a1fac 100644
--- a/ruoyi-modules/management-platform/src/main/resources/mapper/managementPlatform/WorkflowDaoMapper.xml
+++ b/ruoyi-modules/management-platform/src/main/resources/mapper/managementPlatform/WorkflowDaoMapper.xml
@@ -33,7 +33,7 @@
and id = #{workflow.id}
- and name = #{workflow.name}
+ and name like "%"#{workflow.name}"%"
and description = #{workflow.description}
@@ -68,7 +68,7 @@
and id = #{workflow.id}
- and name = #{workflow.name}
+ and name like "%"#{workflow.name}"%"
and description = #{workflow.description}
@@ -171,6 +171,7 @@
state = 1
+
and name like "%"#{workflow.name}"%"