From a14adcad31cbd3159f0055dbf1d234ca79f62071 Mon Sep 17 00:00:00 2001
From: zyy <zyy@email.com>
Date: Tue, 15 Jul 2025 18:45:24 +0800
Subject: [PATCH] 基金修改

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

diff --git a/src/main/resources/mapper/UserStockSubscribeMapper.xml b/src/main/resources/mapper/UserStockSubscribeMapper.xml
index edf5e0e..5e10fc3 100644
--- a/src/main/resources/mapper/UserStockSubscribeMapper.xml
+++ b/src/main/resources/mapper/UserStockSubscribeMapper.xml
@@ -231,4 +231,44 @@
         WHERE phone = #{phone}  order by id
     </select>
 
+    <select id="getListByParam" resultType="com.nq.vo.subscribe.UserStockSubscribeVo">
+        SELECT id,
+        order_no,
+        user_id,
+        real_name,
+        phone,
+        agent_id,
+        agent_name,
+        new_code,
+        new_name,
+        bond,
+        buy_price,
+        apply_nums,
+        apply_number,
+        status,
+        add_time,
+        submit_time,
+        end_time,
+        fix_time,
+        remarks,
+        u.type,
+        db_money,
+        new_stock_id
+        ,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
+            <if test="userId != null">
+                and u.user_id = #{userId}
+            </if>
+            <if test="type != null and type != ''">
+                and u.type = #{type}
+            </if>
+            <if test="status != null">
+                and u.status = #{status}
+            </if>
+        order by u.add_time desc
+    </select>
+
+
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3