From c2bb9c768d5214ae7b61de22e352a23f598200c1 Mon Sep 17 00:00:00 2001
From: yaowanxin <3588231647@qq.com>
Date: 星期一, 29 十二月 2025 13:31:33 +0800
Subject: [PATCH] 添加客户分类字段,零售客户和进销商客户

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

diff --git a/src/main/resources/mapper/purchase/PurchaseLedgerMapper.xml b/src/main/resources/mapper/purchase/PurchaseLedgerMapper.xml
index bc6c38a..6aaaad5 100644
--- a/src/main/resources/mapper/purchase/PurchaseLedgerMapper.xml
+++ b/src/main/resources/mapper/purchase/PurchaseLedgerMapper.xml
@@ -21,9 +21,11 @@
         pl.contract_amount-sum(pr.tickets_amount) AS unReceipt_payment_amount,
         pl.entry_date,
         pl.recorder_name,
+        sm.is_white,
         pl.payment_method
         from purchase_ledger pl
         left join product_record pr on pl.id = pr.purchase_ledger_id
+        left join supplier_manage sm on pl.supplier_id = sm.id
         <where>
             1 = 1
             <if test="c.purchaseContractNumber != null and c.purchaseContractNumber != ''">
@@ -49,6 +51,7 @@
         pl.project_name,pl.entry_date,
         pl.recorder_name,
         pl.contract_amount
+        order by pl.entry_date desc
 
     </select>
     <select id="getPaymentRegistrationDtoById" resultType="com.ruoyi.purchase.dto.PaymentRegistrationDto">

--
Gitblit v1.9.3