Browse Source

流水线,实验增加名字模糊搜

dev-complex-computation
chenzhihang 1 year ago
parent
commit
0edb2d60ce
2 changed files with 4 additions and 3 deletions
  1. +3
    -2
      ruoyi-modules/management-platform/src/main/resources/mapper/managementPlatform/ExperimentDaoMapper.xml
  2. +1
    -1
      ruoyi-modules/management-platform/src/main/resources/mapper/managementPlatform/WorkflowDaoMapper.xml

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

@@ -75,7 +75,8 @@
<!--查询指定行数据-->
<select id="queryAllByLimit" resultMap="ExperimentMap">
select
id,name, workflow_id, global_param, status_list, description, create_by, create_time, update_by, update_time, state
id,name, workflow_id, global_param, status_list, description, create_by, create_time, update_by, update_time,
state
from experiment
<where>
state = 1
@@ -83,7 +84,7 @@
and id = #{experiment.id}
</if>
<if test="experiment.name != null and experiment.name != ''">
and name = #{experiment.name}
and name LIKE CONCAT('%', #{experiment.name}, '%')
</if>
<if test="experiment.workflowId != null">
and workflow_id = #{experiment.workflowId}


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

@@ -34,7 +34,7 @@
and id = #{workflow.id}
</if>
<if test="workflow.name != null and workflow.name != ''">
and name like "%"#{workflow.name}"%"
and name like CONCAT('%', #{workflow.name}, '%')
</if>
<if test="workflow.description != null and workflow.description != ''">
and description = #{workflow.description}


Loading…
Cancel
Save