From 850edd78f6c0841c8494750d08532b5837003f44 Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期五, 27 十二月 2024 09:46:31 +0800
Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/eyes

---
 applet/src/main/resources/mapping/TStoreMapper.xml |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/applet/src/main/resources/mapping/TStoreMapper.xml b/applet/src/main/resources/mapping/TStoreMapper.xml
index df89297..b8f9c4c 100644
--- a/applet/src/main/resources/mapping/TStoreMapper.xml
+++ b/applet/src/main/resources/mapping/TStoreMapper.xml
@@ -55,7 +55,11 @@
                </if>
         from t_store
         where isDelete = ${@com.jilongda.common.enums.DisabledEnum@NO.getCode()}
-        ORDER BY IFNULL(distance,0),createTime DESC
+        ORDER BY
+        <if test="query.lon != null and query.lon != '' and query.lat != null and query.lat != ''">
+            IFNULL(distance,0),
+        </if>
+            createTime DESC
     </select>
 
 </mapper>

--
Gitblit v1.7.1