From 94f452cff44cf83cc35e2fd427c3f136ffaada84 Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期一, 18 五月 2026 16:32:21 +0800
Subject: [PATCH] 新增编辑销售合同号,可以自动生成,也可自定义

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

diff --git a/src/main/resources/mapper/purchase/PurchaseLedgerMapper.xml b/src/main/resources/mapper/purchase/PurchaseLedgerMapper.xml
index 1aed9b4..ac248cd 100644
--- a/src/main/resources/mapper/purchase/PurchaseLedgerMapper.xml
+++ b/src/main/resources/mapper/purchase/PurchaseLedgerMapper.xml
@@ -28,6 +28,7 @@
         pl.template_name,
         pl.approve_user_ids,
         sm.is_white,
+        sm.supplier_type AS supplierType,
         pl.approval_status,
         pl.payment_method,
         pl.remarks
@@ -65,8 +66,8 @@
             <if test="c.supplierId != null">
                 AND pl.supplier_id = #{c.supplierId}
             </if>
-            <if test="c.approvalStatus != null">
-                AND pl.approval_status = #{c.approvalStatus}
+            <if test="c.supplierType != null">
+                AND sm.supplier_type = #{c.supplierType}
             </if>
         </where>
         ORDER BY pl.entry_date DESC

--
Gitblit v1.9.3