xuhy
2025-09-13 ff7b9bb5b4db897ac0ea7566540ccaa491325a28
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>