#2234 SQL慢查询脚本问题
This commit is contained in:
parent
3b4067a7b5
commit
b7a1a5200d
|
@ -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>
|
Loading…
Reference in New Issue