From 1519a7c81e6566dd0cbc6acfb1b5e92c3aaba7df Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期日, 02 三月 2025 10:53:57 +0800
Subject: [PATCH] 赋码定时任务只判断超时,且用红码时间判断

---
 flowable/src/main/resources/mapper/ProcessLogMapper.xml |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/flowable/src/main/resources/mapper/ProcessLogMapper.xml b/flowable/src/main/resources/mapper/ProcessLogMapper.xml
index 6dd004e..1c6c529 100644
--- a/flowable/src/main/resources/mapper/ProcessLogMapper.xml
+++ b/flowable/src/main/resources/mapper/ProcessLogMapper.xml
@@ -78,4 +78,15 @@
             TFL.gmt_create DESC
     </select>
 
+    <select id="getAllHangup" resultType="java.lang.String">
+        SELECT task_id
+        FROM (
+                 SELECT task_id,
+                        COUNT(*) AS num
+                 FROM t_process_log
+                 WHERE task_id IS NOT NULL
+                 GROUP BY task_id
+                 HAVING MOD(num, 2) != 0
+             ) AS t;
+    </select>
 </mapper>

--
Gitblit v1.8.0