From ff7b9bb5b4db897ac0ea7566540ccaa491325a28 Mon Sep 17 00:00:00 2001 From: xuhy <3313886187@qq.com> Date: 星期六, 13 九月 2025 09:07:32 +0800 Subject: [PATCH] 修改 --- applet/src/main/resources/mapping/TStoreMapper.xml | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/applet/src/main/resources/mapping/TStoreMapper.xml b/applet/src/main/resources/mapping/TStoreMapper.xml index df89297..7bdac75 100644 --- a/applet/src/main/resources/mapping/TStoreMapper.xml +++ b/applet/src/main/resources/mapping/TStoreMapper.xml @@ -55,7 +55,12 @@ </if> from t_store where isDelete = ${@com.jilongda.common.enums.DisabledEnum@NO.getCode()} - ORDER BY IFNULL(distance,0),createTime DESC + and status = 1 + 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