|
@@ -128,8 +128,8 @@
|
|
|
SELECT id
|
|
|
FROM "${tableName}" inTbale
|
|
|
where public.st_distance(
|
|
|
- inTbale.geom::geography,
|
|
|
- public.st_geomfromewkt(${ewkt})::geography) < #{distance}
|
|
|
+ inTbale.geom::public.geography,
|
|
|
+ public.st_geomfromewkt(#{ewkt})::public.geography) < #{distance}
|
|
|
<if test="tableIds != null and tableIds.size()>0 ">
|
|
|
and (inTbale.id)::VARCHAR in
|
|
|
<foreach collection="tableIds" item="tableId" open="(" close=")" separator=",">#{tableId}</foreach>
|
|
@@ -140,8 +140,8 @@
|
|
|
SELECT id
|
|
|
FROM "${tableName}" inTbale
|
|
|
where public.st_distance(
|
|
|
- inTbale.geom::geography,
|
|
|
- public.st_geomfromewkt(#{ewkt})::geography) < #{distance}
|
|
|
+ inTbale.geom::public.geography,
|
|
|
+ public.st_geomfromewkt(#{ewkt})::public.geography) < #{distance}
|
|
|
<if test="inputIds != null and inputIds.size()>0 ">
|
|
|
and (inTbale.id)::VARCHAR in
|
|
|
<foreach collection="inputIds" item="id" open="(" close=")" separator=",">#{id}</foreach>
|