From e85cd3fe826efe0baaa3fc09ea371467127c370c Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期二, 15 七月 2025 18:11:31 +0800
Subject: [PATCH] Merge branch 'dev'

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

diff --git a/flowable/src/main/resources/mapper/ProcessCodingMapper.xml b/flowable/src/main/resources/mapper/ProcessCodingMapper.xml
index 4febc7a..eebbdf5 100644
--- a/flowable/src/main/resources/mapper/ProcessCodingMapper.xml
+++ b/flowable/src/main/resources/mapper/ProcessCodingMapper.xml
@@ -14,6 +14,21 @@
         <result column="status" property="status" />
         <result column="overtime_status" property="overtimeStatus" />
     </resultMap>
+    <resultMap id="processOvertimeTimesVO" type="com.ycl.domain.vo.ProcessOvertimeTimesVO">
+        <id column="id" property="id"/>
+        <result column="task_overtime_num" property="taskOvertimeNum"/>
+        <result column="process_ins_id" property="processInsId"/>
+    </resultMap>
+
+    <select id="countProjectOvertimeTimes" resultMap="processOvertimeTimesVO">
+        select TPC.id,
+               TPC.process_ins_id,
+               COUNT(TPC.overtime_status) as task_overtime_num
+        FROM t_process_coding TPC
+        where
+                TPC.overtime_status = 'overtime'
+        GROUP BY TPC.process_ins_id
+    </select>
 
 
     <select id="getById" resultMap="BaseResultMap">
@@ -77,6 +92,11 @@
                     when id=#{item.id} then #{item.overtimeStatus}
                 </foreach>
             </trim>
+            <trim prefix="start_task_time =case" suffix="end,"><!-- 鏋勯�燾ase璇硶 鏈熬鍔犱笂end锛屽鏋滈渶瑕佹洿鏂板涓瓧娈靛鍒惰繖涓猼rim -->
+                <foreach collection="list" item="item">
+                    when id=#{item.id} then #{item.startTaskTime}
+                </foreach>
+            </trim>
         </trim>
         where id in
         <foreach collection="list" index="index" item="item" separator="," open="(" close=")">

--
Gitblit v1.8.0