From 2fd9f70e4c0cd0a2e3feaa6ccf2cd10346b73901 Mon Sep 17 00:00:00 2001
From: zj <1772600164@qq.com>
Date: Tue, 30 Apr 2024 14:08:48 +0800
Subject: [PATCH] 1

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

diff --git a/src/main/resources/mapper/OrderEchoMapper.xml b/src/main/resources/mapper/OrderEchoMapper.xml
index 52d1b8f..12eae6e 100644
--- a/src/main/resources/mapper/OrderEchoMapper.xml
+++ b/src/main/resources/mapper/OrderEchoMapper.xml
@@ -35,7 +35,7 @@
         from order_echo  o
                  join echo e
                       on o.eid = e.id
-        where user_id = #{id}
+        where user_id = #{id} GROUP BY o.buy_time desc
     </select>
 
     <select id="queryAll" resultType="com.nq.pojo.reponse.OrderEChoReponse">

--
Gitblit v1.9.3