Commit b84b047b authored by tangwei's avatar tangwei

修改过滤条件

parent d668cc89
...@@ -312,7 +312,7 @@ ...@@ -312,7 +312,7 @@
wle.latitude wle.latitude
FROM wl_video wle FROM wl_video wle
where wle.longitude!=null and wle.latitude!=null where wle.longitude is not null and wle.latitude is not null
<if test='distance!=null'> <if test='distance!=null'>
and Round(st_distance(point(wle.longitude,wle.latitude),point(#{longitude},#{latitude}))*111195,1) &lt;= and Round(st_distance(point(wle.longitude,wle.latitude),point(#{longitude},#{latitude}))*111195,1) &lt;=
...@@ -335,7 +335,7 @@ ...@@ -335,7 +335,7 @@
count( wle.id ) num count( wle.id ) num
FROM wl_video wle FROM wl_video wle
where wle.longitude!=null and wle.latitude!=null where wle.longitude is not null and wle.latitude is not null
<if test='distance!=null'> <if test='distance!=null'>
and Round(st_distance(point(wle.longitude,wle.latitude),point(#{longitude},#{latitude}))*111195,1) &lt;= and Round(st_distance(point(wle.longitude,wle.latitude),point(#{longitude},#{latitude}))*111195,1) &lt;=
#{distance} #{distance}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment