From 68b49efb4da346edb42a5d8ebb39af47207402bd Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期一, 12 十月 2026 11:14:13 +0800
Subject: [PATCH] 修改了报销校验
---
ruoyi-project/src/main/resources/mapper/project/ServiceDonationwitnessMapper.xml | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/ruoyi-project/src/main/resources/mapper/project/ServiceDonationwitnessMapper.xml b/ruoyi-project/src/main/resources/mapper/project/ServiceDonationwitnessMapper.xml
index 858a8fb..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`,
--
Gitblit v1.9.3