From 9e31a333ceb9e6a51d18c808eabffd8cebc8cb4e Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期四, 21 五月 2026 11:35:49 +0800
Subject: [PATCH] refactor(core): 删除销售台账及相关代码中与发票和待付款金额关联的逻辑

---
 src/main/resources/mapper/account/purchase/AccountPurchasePaymentMapper.xml |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/account/purchase/AccountPurchasePaymentMapper.xml b/src/main/resources/mapper/account/purchase/AccountPurchasePaymentMapper.xml
index 3256586..3571783 100644
--- a/src/main/resources/mapper/account/purchase/AccountPurchasePaymentMapper.xml
+++ b/src/main/resources/mapper/account/purchase/AccountPurchasePaymentMapper.xml
@@ -43,5 +43,13 @@
             </if>
         </where>
     </select>
+    <select id="selectPayment" resultType="com.ruoyi.home.dto.IncomeExpenseAnalysisDto">
+        SELECT DATE_FORMAT(payment_date, #{dateFormat}) AS dateStr,
+               IFNULL(SUM(payment_amount), 0)            AS amount
+        FROM account_purchase_payment
+        WHERE payment_date BETWEEN #{startDate} AND #{endDate}
+        GROUP BY dateStr
+        ORDER BY dateStr
+    </select>
 
 </mapper>

--
Gitblit v1.9.3