无关风月
2024-12-31 bf765893039bc7968b8160a70bda778526dca98c
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>