Browse Source

workflow mapper文件修改

tags/v20240126
西大锐 2 years ago
parent
commit
12da7d2c4f
3 changed files with 5 additions and 3 deletions
  1. +1
    -1
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/controller/experiment/ExperimentController.java
  2. +1
    -0
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ExperimentInsServiceImpl.java
  3. +3
    -2
      ruoyi-modules/management-platform/src/main/resources/mapper/managementPlatform/WorkflowDaoMapper.xml

+ 1
- 1
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/controller/experiment/ExperimentController.java View File

@@ -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));
}



+ 1
- 0
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ExperimentInsServiceImpl.java View File

@@ -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接口


+ 3
- 2
ruoyi-modules/management-platform/src/main/resources/mapper/managementPlatform/WorkflowDaoMapper.xml View File

@@ -33,7 +33,7 @@
and id = #{workflow.id}
</if>
<if test="workflow.name != null and workflow.name != ''">
and name = #{workflow.name}
and name like "%"#{workflow.name}"%"
</if>
<if test="workflow.description != null and workflow.description != ''">
and description = #{workflow.description}
@@ -68,7 +68,7 @@
and id = #{workflow.id}
</if>
<if test="workflow.name != null and workflow.name != ''">
and name = #{workflow.name}
and name like "%"#{workflow.name}"%"
</if>
<if test="workflow.description != null and workflow.description != ''">
and description = #{workflow.description}
@@ -171,6 +171,7 @@
<where>
state = 1
<if test="workflow.name != null and workflow.name != ''">

and name like "%"#{workflow.name}"%"
</if>
</where>


Loading…
Cancel
Save