Browse Source

Task group queue supports fuzzy search. (#9784)

WangJPLeo 3 years ago
parent
commit
f839b527bf

+ 2 - 2
dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/TaskGroupQueueMapper.xml

@@ -136,10 +136,10 @@
         join t_ds_project as p on p_f.project_code = p.code
         join t_ds_project as p on p_f.project_code = p.code
         where queue.group_id = #{groupId}
         where queue.group_id = #{groupId}
         <if test="taskName != null and taskName != ''">
         <if test="taskName != null and taskName != ''">
-            and task_name =#{taskName}
+            and task_name like concat('%', #{taskName}, '%')
         </if>
         </if>
         <if test="processName != null and processName != ''">
         <if test="processName != null and processName != ''">
-            and process.name =#{processName}
+            and process.name like concat('%', #{processName}, '%')
         </if>
         </if>
         <if test="status != null">
         <if test="status != null">
             and queue.status =#{status}
             and queue.status =#{status}