From 09ac251a089f5bb79d59a12bf2f932dda12c4ca2 Mon Sep 17 00:00:00 2001
From: xin <1099200748@qq.com>
Date: Thu, 10 Jul 2025 15:53:17 +0800
Subject: [PATCH] 小程序:微信授权登录;根据订单号查询订单操作日志

---
 oying-system/src/main/resources/mapper/sh/OrderMapper.xml |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/oying-system/src/main/resources/mapper/sh/OrderMapper.xml b/oying-system/src/main/resources/mapper/sh/OrderMapper.xml
index c647e5f..7162d03 100644
--- a/oying-system/src/main/resources/mapper/sh/OrderMapper.xml
+++ b/oying-system/src/main/resources/mapper/sh/OrderMapper.xml
@@ -51,28 +51,28 @@
         <include refid="Base_Column_List"/>
         from sh_order
         <where>
-            <if test="criteria.orderNum != null">
+            <if test="criteria.orderNum != null and criteria.orderNum != ''">
                 and order_num like concat('%',#{criteria.orderNum},'%')
             </if>
-            <if test="criteria.orderStatus != null">
+            <if test="criteria.orderStatus != null and criteria.orderStatus != ''">
                 and order_status = #{criteria.orderStatus}
             </if>
-            <if test="criteria.userId != null">
+            <if test="criteria.userId != null and criteria.userId != ''">
                 and user_id = #{criteria.userId}
             </if>
-            <if test="criteria.username != null">
+            <if test="criteria.username != null and criteria.username != ''">
                 and username like concat('%',#{criteria.username},'%')
             </if>
-            <if test="criteria.storeId != null">
+            <if test="criteria.storeId != null and criteria.storeId != ''">
                 and store_id = #{criteria.storeId}
             </if>
-            <if test="criteria.orderDescribe != null">
+            <if test="criteria.orderDescribe != null and criteria.orderDescribe != ''">
                 and order_describe like concat('%',#{criteria.orderDescribe},'%')
             </if>
-            <if test="criteria.payState != null">
+            <if test="criteria.payState != null and criteria.payState != ''">
                 and pay_state = #{criteria.payState}
             </if>
-            <if test="criteria.payType != null">
+            <if test="criteria.payType != null and criteria.payType != ''">
                 and pay_type = #{criteria.payType}
             </if>
             <if test="criteria.payTime != null and criteria.payTime.size() > 0">

--
Gitblit v1.9.3