From 1ab74940e8ae9fdb7fc75be2b27d6002b49dfca9 Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期五, 03 四月 2026 15:14:46 +0800
Subject: [PATCH] feat: 新增销售台账取消新增订单,区分对公/对私

---
 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..30b4286 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 c.supplierType != ''">
+                AND sm.supplier_type = #{c.supplierType}
             </if>
         </where>
         ORDER BY pl.entry_date DESC

--
Gitblit v1.9.3