From c19b95a69362394bf2f43af796e3af10c6bf70de Mon Sep 17 00:00:00 2001
From: chenrui <1187576398@qq.com>
Date: 星期一, 19 五月 2025 11:30:51 +0800
Subject: [PATCH] 回款台账
---
src/main/resources/mapper/sales/InvoiceLedgerMapper.xml | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/sales/InvoiceLedgerMapper.xml b/src/main/resources/mapper/sales/InvoiceLedgerMapper.xml
index 6d38405..e08366b 100644
--- a/src/main/resources/mapper/sales/InvoiceLedgerMapper.xml
+++ b/src/main/resources/mapper/sales/InvoiceLedgerMapper.xml
@@ -109,5 +109,18 @@
WHERE T1.id = #{id}
</select>
+ <select id="invoiceLedgerSalesAccount" resultType="com.ruoyi.sales.dto.InvoiceLedgerDto">
+ SELECT
+ customer_id,
+ T2.customer_name,
+ SUM( invoice_amount ) invoiceAmount
+ FROM
+ invoice_ledger T1
+ LEFT JOIN customer T2 ON T1.customer_id = T2.id
+ GROUP BY
+ customer_id,
+ T2.customer_name;
+ </select>
+
</mapper>
\ No newline at end of file
--
Gitblit v1.9.3