From 53ba4cc2332e4704b26bc0945c93e58be84d654d Mon Sep 17 00:00:00 2001
From: zyy <zyy@email.com>
Date: Mon, 27 Oct 2025 17:59:55 +0800
Subject: [PATCH] 股票大宗购买审核
---
trading-order-service/src/main/resources/mapper/dz/StockDzMapper.xml | 43 +++++++++++++++++++++++++++++++++++++++++++
1 files changed, 43 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 826b2d6..16ffc97 100644
--- a/trading-order-service/src/main/resources/mapper/dz/StockDzMapper.xml
+++ b/trading-order-service/src/main/resources/mapper/dz/StockDzMapper.xml
@@ -10,6 +10,10 @@
WHERE start_time < #{formatDate} AND end_time > #{formatDate}
+ <if test="stockType != null and stockType != '' ">
+ AND stock_type = #{stockType}
+ </if>
+
<if test="keyWords != null and keyWords != '' ">
AND (stock_spell LIKE #{keyWords} OR stock_name LIKE #{keyWords})
</if>
@@ -30,10 +34,49 @@
*
FROM t_stock_dz
WHERE 1=1
+ <if test="stockType != null and stockType != '' ">
+ AND stock_type = #{stockType}
+ </if>
<if test="keyWords != null and keyWords != '' ">
AND (stock_code LIKE #{keyWords} OR stock_name LIKE #{keyWords})
</if>
ORDER BY add_time DESC
</select>
+ <select id="getDzOrderList" resultType="com.yami.trading.bean.dz.ExchangeApplyOrderDz" parameterType="map">
+ SELECT
+ *
+ FROM t_exchange_apply_order_dz
+ WHERE 1=1
+ <if test="stockType != null and stockType != '' ">
+ AND stock_type = #{stockType}
+ </if>
+ <if test="state != null and state != ''">
+ AND t.state = #{state}
+ </if>
+ <if test="userId != null and userId != '' ">
+ AND party_id = #{userId}
+ </if>
+ ORDER BY create_time DESC
+ </select>
+
+ <select id="getDzCheckList" resultType="com.yami.trading.bean.dz.dto.ExchangeApplyOrderDzDto" parameterType="map">
+ SELECT
+ t.*,u.user_name,u.user_code,s.stock_type
+ FROM t_exchange_apply_order_dz t
+ LEFT JOIN tz_user u ON t.party_id = u.user_id
+ LEFT JOIN t_stock_dz s ON s.uuid = t.dz_id
+ WHERE 1=1
+ <if test="state != null and state != ''">
+ AND t.state = #{state}
+ </if>
+ <if test="stockCode != null and stockCode != '' ">
+ AND t.symbol = #{stockCode}
+ </if>
+ <if test="stockType != null and stockType != '' ">
+ AND s.stock_type = #{stockType}
+ </if>
+ ORDER BY t.create_time DESC
+ </select>
+
</mapper>
--
Gitblit v1.9.3