|
|
@@ -49,7 +49,7 @@
|
|
|
<select id="findByWestGeoGroup" resultMap="mapMarker">
|
|
|
select id, manufacturer as cup,x(geo) as lng,y(geo) as lat
|
|
|
from geo_camera_photo
|
|
|
- where `type`=#{itemType}
|
|
|
+ where `type`=#{itemType} and geo is not null
|
|
|
group by geo
|
|
|
order by shot_at desc
|
|
|
limit #{pageSize}
|
|
|
@@ -58,7 +58,7 @@
|
|
|
select photo.id,photo.manufacturer as cup,photo.photo_url,x(photo.geo) as lng,y(photo.geo) as lat
|
|
|
from geo_camera_photo photo
|
|
|
inner join geo_mall_reply reply
|
|
|
- on photo.album_id=reply.reply_id
|
|
|
+ on photo.album_id=reply.reply_id and photo.geo is not null
|
|
|
group by photo.album_id
|
|
|
order by photo.id desc
|
|
|
limit #{pageSize}
|
|
|
@@ -68,7 +68,7 @@
|
|
|
select photo.id,reply.cup,photo.photo_url,x(photo.geo) as lng,y(photo.geo) as lat
|
|
|
from geo_camera_photo photo
|
|
|
inner join geo_mall_reply reply
|
|
|
- on photo.album_id=reply.reply_id
|
|
|
+ on photo.album_id=reply.reply_id and photo.geo is not null
|
|
|
and reply.item_type=#{itemType}
|
|
|
group by photo.album_id
|
|
|
order by photo.id desc
|
|
|
@@ -79,16 +79,16 @@
|
|
|
photo.object_id as upload_id,photo.channel_id,photo.photo_url
|
|
|
from geo_camera_photo photo
|
|
|
inner join geo_mall_reply reply
|
|
|
- on photo.album_id=reply.reply_id and photo.id=#{id}
|
|
|
+ on photo.album_id=reply.reply_id and photo.id=#{id} and photo.geo is not null
|
|
|
</select>
|
|
|
<select id="findMarkerInfo" resultType="cn.reghao.tnb.content.app.geo.model.vo.MarkerInfo">
|
|
|
select object_id as upload_id,channel_id,photo_url
|
|
|
from geo_camera_photo
|
|
|
- where id=#{id}
|
|
|
+ where id=#{id} and geo is not null
|
|
|
</select>
|
|
|
<select id="findAlbumMarkerInfo" resultType="cn.reghao.tnb.content.app.geo.model.vo.MarkerInfo">
|
|
|
select object_id as upload_id,album_id as item_id,channel_id,photo_url
|
|
|
from geo_camera_photo
|
|
|
- where id=#{id}
|
|
|
+ where id=#{id} and geo is not null
|
|
|
</select>
|
|
|
</mapper>
|