From cd6de797868cd3ba10b4bd7fad0d3fdea208b2d5 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期二, 11 二月 2025 11:45:55 +0800 Subject: [PATCH] 按时完成、超时事项、即将超时的统计逻辑更换 --- flowable/src/main/resources/mapper/ProcessCodingMapper.xml | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/flowable/src/main/resources/mapper/ProcessCodingMapper.xml b/flowable/src/main/resources/mapper/ProcessCodingMapper.xml index c87910b..ad0c884 100644 --- a/flowable/src/main/resources/mapper/ProcessCodingMapper.xml +++ b/flowable/src/main/resources/mapper/ProcessCodingMapper.xml @@ -10,7 +10,9 @@ <result column="process_ins_id" property="processInsId" /> <result column="yellow_time" property="yellowTime" /> <result column="red_time" property="redTime" /> + <result column="overtime" property="overtime" /> <result column="status" property="status" /> + <result column="overtime_status" property="overtimeStatus" /> </resultMap> @@ -22,7 +24,9 @@ TPC.process_ins_id, TPC.yellow_time, TPC.red_time, + TPC.overtime, TPC.status, + TPC.overtime_status, TPC.id FROM t_process_coding TPC @@ -39,7 +43,9 @@ TPC.process_ins_id, TPC.yellow_time, TPC.red_time, + TPC.overtime, TPC.status, + TPC.overtime_status, TPC.id FROM t_process_coding TPC @@ -63,6 +69,11 @@ when id=#{item.id} then #{item.status} </foreach> </trim> + <trim prefix="overtime_status =case" suffix="end,"><!-- 鏋勯�燾ase璇硶 鏈熬鍔犱笂end锛屽鏋滈渶瑕佹洿鏂板涓瓧娈靛鍒惰繖涓猼rim --> + <foreach collection="list" item="item"> + when id=#{item.id} then #{item.overtimeStatus} + </foreach> + </trim> </trim> where id in <foreach collection="list" index="index" item="item" separator="," open="(" close=")"> -- Gitblit v1.8.0