fix(任务中心): 优化批量停止耗时过长
--bug=1048141 --user=王旭 【组织任务中心】即时任务列表-全选当前页批量停止-且无进行中任务-接口耗时20s+ https://www.tapd.cn/55049933/s/1598955
This commit is contained in:
parent
21e24ab055
commit
afb7b0569e
|
@ -243,9 +243,10 @@
|
|||
|
||||
|
||||
<select id="getIds" resultType="java.lang.String">
|
||||
select id from exec_task_item
|
||||
select exec_task_item.id from exec_task_item
|
||||
inner join exec_task on exec_task_item.task_id = exec_task.id
|
||||
<where>
|
||||
exec_task_item.status = 'RUNNING'
|
||||
<if test="projectId != null and projectId != ''">
|
||||
and exec_task_item.project_id = #{projectId}
|
||||
</if>
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
<select id="getIds" resultType="java.lang.String">
|
||||
select id from exec_task
|
||||
<where>
|
||||
status = 'RUNNING'
|
||||
<if test="projectId != null and projectId != ''">
|
||||
and exec_task.project_id = #{projectId}
|
||||
</if>
|
||||
|
|
|
@ -436,7 +436,7 @@
|
|||
select id, enable from schedule
|
||||
<where>
|
||||
<if test="projectIds != null and projectIds.size() > 0">
|
||||
and task.project_id IN
|
||||
and project_id IN
|
||||
<foreach collection="projectIds" item="projectId" separator="," open="(" close=")">
|
||||
#{projectId}
|
||||
</foreach>
|
||||
|
|
Loading…
Reference in New Issue