From 78262545593c52fa75aa1072b864121cb918897c Mon Sep 17 00:00:00 2001
From: zj <1772600164@qq.com>
Date: Wed, 13 Aug 2025 01:28:44 +0800
Subject: [PATCH] 1

---
 trading-order-service/src/main/resources/mapper/UserMapper.xml |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/trading-order-service/src/main/resources/mapper/UserMapper.xml b/trading-order-service/src/main/resources/mapper/UserMapper.xml
index 6a97229..4871ca0 100644
--- a/trading-order-service/src/main/resources/mapper/UserMapper.xml
+++ b/trading-order-service/src/main/resources/mapper/UserMapper.xml
@@ -45,12 +45,11 @@
             #{r}
         </foreach>
 
-        <if test="userCode!=null and userCode!=''">
-            and u.user_code=#{userCode}
-        </if>
-
+<!--        <if test="userCode!=null and userCode!=''">-->
+<!--            and u.user_code=#{userCode}-->
+<!--        </if>-->
         <if test="userName!=null and userName!=''">
-            and u.user_name=#{userName}
+            and u.user_name=#{userName} or  u.user_code=#{userName}
         </if>
 
         <if test="checkedList!=null">

--
Gitblit v1.9.3