提交 b7a1a520 authored 作者: liufei's avatar liufei

#2234 SQL慢查询脚本问题

上级 3b4067a7
...@@ -247,15 +247,16 @@ ...@@ -247,15 +247,16 @@
</update> </update>
<select id="findLostJobIds" resultType="long" > <select id="findLostJobIds" resultType="long" >
SELECT t.id SELECT
FROM xxl_job_log AS t t.id
WHERE t.trigger_code = 200 FROM
and t.handle_code = 0 xxl_job_log t
and t.trigger_time <![CDATA[ <= ]]> #{losedTime} LEFT JOIN xxl_job_registry t2 ON t.executor_address = t2.registry_value
and t.executor_address not in ( WHERE
SELECT t2.registry_value t.trigger_code = 200
FROM xxl_job_registry AS t2 AND t.handle_code = 0
) AND t.trigger_time <![CDATA[ <= ]]> #{losedTime}
AND t2.id IS NULL;
</select> </select>
</mapper> </mapper>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论