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

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

@ -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 &lt;= a.accept_range distance &lt;= a.accept_range
ORDER BY ORDER BY

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

Loading…
Cancel
Save