From ba5f378ea4634b9b1c71b138e13fd5a8b2cfed10 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Tue, 09 Jun 2026 16:34:22 +0800
Subject: [PATCH] fix(gateApi): 修复多空仓位追挂止损时最远止损gridId计算逻辑
---
src/main/resources/mapper/walletCoinOrder/OrderCoinDealDao.xml | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/walletCoinOrder/OrderCoinDealDao.xml b/src/main/resources/mapper/walletCoinOrder/OrderCoinDealDao.xml
index f498ab6..03a89ae 100644
--- a/src/main/resources/mapper/walletCoinOrder/OrderCoinDealDao.xml
+++ b/src/main/resources/mapper/walletCoinOrder/OrderCoinDealDao.xml
@@ -28,4 +28,19 @@
select * from coins_order_deal where order_id= #{orderId} and member_id = #{memberId}
</select>
+ <select id="findAllWalletCoinOrderInPage" resultType="com.xcong.excoin.modules.coin.entity.OrderCoinsDealEntity">
+ select * from coins_order_deal
+ <if test="record != null">
+ <where>
+ <if test="record.memberId != null" >
+ and member_id=#{record.memberId}
+ </if>
+ <if test="record.symbol != null and record.symbol != ''">
+ and symbol = #{record.symbol}
+ </if>
+ </where>
+ </if>
+ order by create_time desc
+ </select>
+
</mapper>
--
Gitblit v1.9.1