From e24ab2fc4d092b4599ef44ddce5ebdbbc0bd8f9a Mon Sep 17 00:00:00 2001
From: sinake <sinake1@qq.com>
Date: 星期二, 13 十月 2026 10:39:22 +0800
Subject: [PATCH] 差旅报销审批流程处理

---
 ruoyi-project/src/main/resources/mapper/project/ServiceDonationwitnessMapper.xml |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/ruoyi-project/src/main/resources/mapper/project/ServiceDonationwitnessMapper.xml b/ruoyi-project/src/main/resources/mapper/project/ServiceDonationwitnessMapper.xml
index 8edb45a..656fc8f 100644
--- a/ruoyi-project/src/main/resources/mapper/project/ServiceDonationwitnessMapper.xml
+++ b/ruoyi-project/src/main/resources/mapper/project/ServiceDonationwitnessMapper.xml
@@ -111,6 +111,23 @@
         </where>
     </select>
 
+    <!--
+      鎵归噺鏌ヨ銆屾崘鐚熀纭�ID -> 姝讳骸鏃堕棿銆嶏紝渚涘垪琛ㄩ〉璁$畻骞撮緞浣跨敤銆�
+      浠f浛鍘熷厛鍦ㄨ褰曞惊鐜腑鎸� InfoID 閫愭潯鏌ヨ鐨� N+1 鍐欐硶锛堥椤垫湁 N 鏉¤褰曞氨鍙� N 娆� SQL锛夈��
+      鍙繑鍥� InfoID 涓� DeathTime 涓ゅ垪锛汭nfoid 涓� DeathTime 鍧囦负绌虹殑琛屾棤鎰忎箟锛岀洿鎺ヨ繃婊わ紝
+      鍚屾椂閬垮厤涓� selectServiceDonationwitnessList 杩斿洖鐨勮鏁颁笉涓�鑷淬��
+    -->
+    <select id="selectDeathTimeByInfoIds" resultMap="ServiceDonationwitnessResult">
+        select InfoID, DeathTime from service_donationwitness
+        where InfoID is not null and DeathTime is not null
+        <if test="infoIds != null and infoIds.size() > 0">
+            and InfoID in
+            <foreach collection="infoIds" item="infoId" open="(" separator="," close=")">
+                #{infoId}
+            </foreach>
+        </if>
+    </select>
+
     <select id="selectVOList" resultType="com.ruoyi.project.domain.vo.DonationWitnessVO">
         SELECT
         `service_donatebaseinfo`.`ID` AS `ID`,
@@ -175,7 +192,7 @@
         `service_donationwitness`.`coordinator_in_operating` AS `coordinatorInOperating`,
         `service_donationwitness`.`coordinator_out_operating` AS `coordinatorOutOperating`,
         `service_donationwitness`.`coordinator_sign` AS `coordinatorSign`,
-        `service_donationwitness`.`coordinator_sign_time` AS `coordinatorSignTime`
+        `service_donationwitness`.`coordinator_sign_time` AS `coordinatorSignTime`,
         `service_donationwitness`.`donate_hospital` AS `donate_hospital`
         FROM
         `service_donatebaseinfo`

--
Gitblit v1.9.3