From e4174aed067985155c157f10b0c4294f18eb2359 Mon Sep 17 00:00:00 2001
From: zj <1772600164@qq.com>
Date: Sun, 07 Sep 2025 19:06:18 +0800
Subject: [PATCH] 1

---
 trading-order-service/src/main/resources/mapper/contract/ContractOrderMapper.xml |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/trading-order-service/src/main/resources/mapper/contract/ContractOrderMapper.xml b/trading-order-service/src/main/resources/mapper/contract/ContractOrderMapper.xml
index eeb6fae..dcd5137 100644
--- a/trading-order-service/src/main/resources/mapper/contract/ContractOrderMapper.xml
+++ b/trading-order-service/src/main/resources/mapper/contract/ContractOrderMapper.xml
@@ -41,7 +41,7 @@
 
 
     <select id="listRecord" resultType="com.yami.trading.bean.contract.dto.ContractOrderDTO">
-        select *,b.role_name AS "roleName",b.user_code AS "userCode",c.money,item.name AS "symbolName" from t_contract_order a
+        select a.*,b.role_name AS "roleName",b.user_code AS "userCode",c.money,item.name AS "symbolName" from t_contract_order a
         left join tz_user b on a.PARTY_ID = b.user_id
         left join tz_wallet c ON c.user_id = b.user_id
         left join t_item item on a.symbol = item.SYMBOL
@@ -86,6 +86,7 @@
                 #{query.userName}, '%'))
             </if>
         </where>
+        GROUP BY a.order_no
         order by a.create_time desc
     </select>
 

--
Gitblit v1.9.3