From e062e6b76fb7870aeb4faeafab2cb73daed52f07 Mon Sep 17 00:00:00 2001 From: chenhj <1263187585@qq.com> Date: 星期五, 16 五月 2025 17:52:01 +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