From b2e717310b8a177b435e0a3532f520839ec26402 Mon Sep 17 00:00:00 2001
From: wujianwei <wjw@11.com>
Date: 星期五, 20 三月 2026 15:39:09 +0800
Subject: [PATCH] 新增日志

---
 service/src/main/resources/mapper/cwgl/PayableBillManagementMapper.xml |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/service/src/main/resources/mapper/cwgl/PayableBillManagementMapper.xml b/service/src/main/resources/mapper/cwgl/PayableBillManagementMapper.xml
index eaf0fcc..430f466 100644
--- a/service/src/main/resources/mapper/cwgl/PayableBillManagementMapper.xml
+++ b/service/src/main/resources/mapper/cwgl/PayableBillManagementMapper.xml
@@ -65,7 +65,16 @@
         <if test="billGenerateDate != null "> and thisTab.bill_generate_date = #{billGenerateDate}</if>
         <if test="billSendDate != null "> and thisTab.bill_send_date = #{billSendDate}</if>
         <if test="billDueDate != null "> and thisTab.bill_due_date = #{billDueDate}</if>
-        <if test="status != null  and status != ''"> and thisTab.status = #{status}</if>
+        <if test="status != null and status != ''">
+            <choose>
+                <when test="status == -1">
+                    and thisTab.status in (0, 1)
+                </when>
+                <when test="status > 0">
+                    and thisTab.status = #{status}
+                </when>
+            </choose>
+        </if>
         <if test="deleted != null "> and thisTab.deleted = #{deleted}</if>
     </sql>
 

--
Gitblit v1.8.0