fix(接口测试): 任务重跑后,更新任务状态有误

--bug=1049629 --user=陈建星 【任务中心】即时任务重跑成功后执行结果和操作项未更新 https://www.tapd.cn/55049933/s/1618725
This commit is contained in:
AgAngle 2024-11-27 14:52:07 +08:00 committed by 刘瑞斌
parent 469dceb6d8
commit 53cf2d2d82
1 changed files with 4 additions and 4 deletions

View File

@ -201,15 +201,15 @@
<select id="hasErrorItem" resultType="java.lang.Boolean">
SELECT COUNT(1)
FROM exec_task_item
WHERE task_id = #{taskId} AND `result` = 'ERROR'
limit 1
WHERE task_id = #{taskId} AND `result` = 'ERROR' and deleted = 0
limit 1
</select>
<select id="hasFakeErrorItem" resultType="java.lang.Boolean">
SELECT COUNT(1)
FROM exec_task_item
WHERE task_id = #{taskId} AND `result` = 'FAKE_ERROR'
limit 1
WHERE task_id = #{taskId} AND `result` = 'FAKE_ERROR' and deleted = 0
limit 1
</select>
<select id="getItemIdByTaskIds" resultType="java.lang.String">