feat: job 列表接口新增 params.q 查询参数

1. 模糊查询 package,environment,playbook
This commit is contained in:
shizhendong
2024-10-23 11:29:51 +08:00
parent b4b3184bbd
commit 806ba7a01b

View File

@@ -80,6 +80,9 @@
<if test="params.workspaceId != null and params.workspaceId != ''">
AND job.workspace_id = #{params.workspaceId}
</if>
<if test="params.q != null and params.q != ''">
AND ( locate(#{params.q}, pkg.name) OR locate(#{params.q}, env.name) OR locate(#{params.q}, pb.name) )
</if>
</where>
GROUP BY