From 77f227d8b1d00f6507184f8cd2fdec19deacd936 Mon Sep 17 00:00:00 2001
From: zyy <zyy@email.com>
Date: Mon, 22 Dec 2025 11:18:03 +0800
Subject: [PATCH] 1

---
 trading-order-service/src/main/resources/mapper/dz/StockDzMapper.xml |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/trading-order-service/src/main/resources/mapper/dz/StockDzMapper.xml b/trading-order-service/src/main/resources/mapper/dz/StockDzMapper.xml
index 7372f14..e8e2b19 100644
--- a/trading-order-service/src/main/resources/mapper/dz/StockDzMapper.xml
+++ b/trading-order-service/src/main/resources/mapper/dz/StockDzMapper.xml
@@ -87,6 +87,12 @@
         <if test="stockType != null and stockType != '' ">
             AND s.stock_type = #{stockType}
         </if>
+        <if test="userName != null and userName != '' ">
+            AND (
+            u.user_name LIKE CONCAT('%', #{userName}, '%')
+            OR u.user_code LIKE CONCAT('%', #{userName}, '%')
+            )
+        </if>
         <if test="checkedList!=null">
             and u.user_id in
             <foreach collection="checkedList" separator="," index="index" open="(" close=")" item="r">

--
Gitblit v1.9.3