From 10a06cf876b3dfce68d36ee71cba0cb4fa393b94 Mon Sep 17 00:00:00 2001
From: zyy <zyy@email.com>
Date: Thu, 04 Sep 2025 16:11:21 +0800
Subject: [PATCH] 计算金额(待补金额)

---
 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