From 43c0f7bd6b605b2c71f58e43055144004e7d42e7 Mon Sep 17 00:00:00 2001
From: xufenglei <xufenglei>
Date: Thu, 16 Nov 2017 17:29:26 +0800
Subject: [PATCH] 降序 排序
---
src/main/resources/mapper/HistoryEntityMapper.xml | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/HistoryEntityMapper.xml b/src/main/resources/mapper/HistoryEntityMapper.xml
index e5b64e7..3089c66 100644
--- a/src/main/resources/mapper/HistoryEntityMapper.xml
+++ b/src/main/resources/mapper/HistoryEntityMapper.xml
@@ -266,7 +266,7 @@
<if test="macKey != null and macKey != 'all'">
AND h.mac_key = #{macKey}
GROUP BY e.id
- ORDER BY avg
+ ORDER BY avg desc
</if>
<if test="macKey == 'all'">
GROUP BY h.mac_key
--
Gitblit v1.8.0