From 962c41d912d60f54f21df739596e61c5888684d9 Mon Sep 17 00:00:00 2001
From: zyy <zyy@email.com>
Date: Mon, 14 Jul 2025 20:55:08 +0800
Subject: [PATCH] APP大宗交易接口

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

diff --git a/src/main/resources/mapper/UserPositionMapper.xml b/src/main/resources/mapper/UserPositionMapper.xml
index b3f21b7..63c945d 100644
--- a/src/main/resources/mapper/UserPositionMapper.xml
+++ b/src/main/resources/mapper/UserPositionMapper.xml
@@ -542,7 +542,21 @@
     limit 1
   </select>
 
+  <select id="getUserPositionDzList" resultType="com.nq.pojo.UserPosition">
+        SELECT u.*
+            FROM user_position u
+        LEFT JOIN user_position_check_dz dz ON dz.id = u.dz_id
 
+    <where>
+      <if test="userId != null ">
+        and u.user_id = #{userId}
+      </if>
+      <if test="checkType != null ">
+        and dz.check_type = #{checkType}
+      </if>
+    </where>
+    ORDER BY u.buy_order_time DESC
+  </select>
 
 </mapper>
 

--
Gitblit v1.9.3