|
|
@ -13,9 +13,15 @@
|
|
|
|
) AS distance
|
|
|
|
) AS distance
|
|
|
|
FROM
|
|
|
|
FROM
|
|
|
|
nx_enterprise_recycle_station a
|
|
|
|
nx_enterprise_recycle_station a
|
|
|
|
${ew.customSqlSegment}
|
|
|
|
WHERE
|
|
|
|
AND a.latitude IS NOT NULL
|
|
|
|
a.latitude IS NOT NULL
|
|
|
|
AND a.longitude IS NOT NULL
|
|
|
|
AND a.longitude IS NOT NULL
|
|
|
|
|
|
|
|
<if test="ew != null">
|
|
|
|
|
|
|
|
<if test="ew.nonEmptyOfWhere">
|
|
|
|
|
|
|
|
AND
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
${ew.sqlSegment}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
HAVING
|
|
|
|
HAVING
|
|
|
|
distance <= a.accept_range
|
|
|
|
distance <= a.accept_range
|
|
|
|
ORDER BY
|
|
|
|
ORDER BY
|
|
|
|