From a26015e5d93b6ebfd3c67ac45f7da1a87c0f489b Mon Sep 17 00:00:00 2001
From: zj <1772600164@qq.com>
Date: Thu, 04 Dec 2025 16:08:45 +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