定点、到站回收订单业务功能开发v6

door
LI-CCONG\李聪聪 7 months ago
parent 711913a20e
commit a025384180

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

@ -11,7 +11,12 @@
LEFT JOIN nx_price_recycle b ON a.id = b.price_id
WHERE
b.recycle_id = #{stationId}
and ${ew.sqlSegment}
<if test="ew != null">
<if test="ew.nonEmptyOfWhere">
AND
</if>
${ew.sqlSegment}
</if>
ORDER BY
a.f_creator_time DESC
LIMIT 1;

Loading…
Cancel
Save