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/OrderOperationLogMapper.xml |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/oying-system/src/main/resources/mapper/sh/OrderOperationLogMapper.xml b/oying-system/src/main/resources/mapper/sh/OrderOperationLogMapper.xml
index a72896c..c975d0e 100644
--- a/oying-system/src/main/resources/mapper/sh/OrderOperationLogMapper.xml
+++ b/oying-system/src/main/resources/mapper/sh/OrderOperationLogMapper.xml
@@ -22,8 +22,8 @@
         <include refid="Base_Column_List"/>
         from sh_order_operation_log
         <where>
-            <if test="criteria.userId != null">
-                and user_id = #{criteria.userId}
+            <if test="criteria.username != null">
+                and username like concat('%',#{criteria.username},'%')
             </if>
             <if test="criteria.userType != null">
                 and user_type = #{criteria.userType}
@@ -37,4 +37,10 @@
         </where>
         order by log_id desc
     </select>
+    <select id="getByOrderNum" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List"/>
+        from sh_order_operation_log
+        where order_num = #{orderNum} order by log_id desc
+    </select>
 </mapper>

--
Gitblit v1.9.3