From c7bf4b8773f888fd5be613b7bb6fb8ae4a47b028 Mon Sep 17 00:00:00 2001
From: zyx <zyx123456>
Date: 星期二, 23 四月 2024 16:53:57 +0800
Subject: [PATCH] #

---
 src/main/resources/mapper/ManPakOutMapper.xml |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/ManPakOutMapper.xml b/src/main/resources/mapper/ManPakOutMapper.xml
index 88af7a5..c89b305 100644
--- a/src/main/resources/mapper/ManPakOutMapper.xml
+++ b/src/main/resources/mapper/ManPakOutMapper.xml
@@ -6,13 +6,18 @@
         <if test="docnum != null and docnum != '' ">
             and doc_num like '%' + #{docnum} + '%'
         </if>
+        <if test="custName != null and custName != ''">
+            and cust_name like '%' + #{custName} + '%'
+        </if>
         <if test="stime != null">
             and create_time >= #{stime}
         </if>
         <if test="etime != null">
             and create_time &lt;= #{etime}
         </if>
-        and (create_by = #{userId} or create_by is null)
+        <if test="userId != null">
+            and (create_by = #{userId} or create_by is null)
+        </if>
 
     </sql>
 

--
Gitblit v1.9.1