From 24caea6a373d78bebdc0d400c96778d2776c4b3b Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期四, 21 五月 2026 16:08:22 +0800
Subject: [PATCH] feat(account): 添加是否生成对账单字段到采购和销售相关视图
---
src/main/resources/mapper/account/purchase/AccountPurchasePaymentMapper.xml | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/account/purchase/AccountPurchasePaymentMapper.xml b/src/main/resources/mapper/account/purchase/AccountPurchasePaymentMapper.xml
index 380548e..89a3681 100644
--- a/src/main/resources/mapper/account/purchase/AccountPurchasePaymentMapper.xml
+++ b/src/main/resources/mapper/account/purchase/AccountPurchasePaymentMapper.xml
@@ -24,10 +24,12 @@
sm.supplier_name,
sm.bank_account_num,
sm.bank_account_name,
- apa.invoice_application_no AS invoiceApplicationNo
+ apa.invoice_application_no AS invoiceApplicationNo,
+ if(asd.receipt_number is not null, true, false) as isAccountStatemen
from account_purchase_payment app
left join supplier_manage sm on app.supplier_id = sm.id
left join account_payment_application apa on app.account_payment_application_id=apa.id
+ left join account_statement_details asd on app.payment_number = asd.receipt_number
<where>
<if test="req.supplierId != null">
AND app.supplier_id = #{req.supplierId}
--
Gitblit v1.9.3