From 32a4abb5705499f49dfc4508aae0c4aa63a4e59d Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Wed, 17 Jun 2026 10:32:14 +0800
Subject: [PATCH] fix(gateApi): 修复网格交易追加止损单ID计算逻辑

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

diff --git a/src/main/resources/mapper/contract/ContractOrderDao.xml b/src/main/resources/mapper/contract/ContractOrderDao.xml
index 19f315d..a9b11dd 100644
--- a/src/main/resources/mapper/contract/ContractOrderDao.xml
+++ b/src/main/resources/mapper/contract/ContractOrderDao.xml
@@ -46,7 +46,7 @@
                 </if>
             </where>
         </if>
-        order by id desc
+        order by create_time desc, id desc
     </select>
 
     <select id="selectOrderDetailByIdAndMemberId" resultType="com.xcong.excoin.modules.contract.entity.ContractOrderEntity">

--
Gitblit v1.9.1