From 8ebbfce918f12ce02ace2e614fa54ab1059f7334 Mon Sep 17 00:00:00 2001
From: zj <1772600164@qq.com>
Date: Wed, 14 Jan 2026 15:35:43 +0800
Subject: [PATCH] 1

---
 src/main/resources/mapper/UserStockSubscribeMapper.xml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/UserStockSubscribeMapper.xml b/src/main/resources/mapper/UserStockSubscribeMapper.xml
index 5e10fc3..df5034f 100644
--- a/src/main/resources/mapper/UserStockSubscribeMapper.xml
+++ b/src/main/resources/mapper/UserStockSubscribeMapper.xml
@@ -257,7 +257,7 @@
         ,s.stock_type,s.list_date,s.subscription_time
         FROM user_stock_subscribe u
         LEFT JOIN stock_subscribe s on s.newlist_id = u.new_stock_id
-        WHERE 1=1
+        WHERE 1=1 AND s.newlist_id is not null
             <if test="userId != null">
                 and u.user_id = #{userId}
             </if>

--
Gitblit v1.9.3