|
@@ -3,18 +3,21 @@
|
|
|
<mapper namespace="com.fdkankan.manage_jp.mapper.IProjectSceneGpsMapper">
|
|
|
|
|
|
<select id="getNotGpsScene" resultType="com.fdkankan.manage_jp.vo.response.SceneGpsDb">
|
|
|
- SELECT s.num,s.scene_source,e.web_site,e.gps,e.data_source ,'v4' as scene_version FROM t_scene_plus s
|
|
|
- LEFT JOIN t_scene_plus_ext e on s.id = e.plus_id
|
|
|
- LEFT JOIN t_project_scene_gps gps on s.num = gps.num
|
|
|
- WHERE s.rec_status = 'A' and e.gps is not null and s.scene_status = -2 and s.scene_source in (4,5) and gps.num is null
|
|
|
+ SELECT s.num,s.scene_source,e.web_site,e.gps,e.data_source ,'v4' as scene_version
|
|
|
+ FROM t_scene_plus s
|
|
|
+ LEFT JOIN t_scene_plus_ext e on s.id = e.plus_id
|
|
|
+ LEFT JOIN t_project_scene_gps gps on s.num = gps.num
|
|
|
+ LEFT JOIN tm_cold_storage cs on s.num = cs.scene_num
|
|
|
+ WHERE s.rec_status = 'A' and e.gps is not null and s.scene_status = -2 and s.scene_source in (4,5) and gps.num is null and cs.rec_status = 'A' and cs.scene_num is null
|
|
|
LIMIT 1000
|
|
|
</select>
|
|
|
|
|
|
<select id="listGps" resultType="com.fdkankan.manage_jp.vo.response.SceneGpsDbVp">
|
|
|
- SELECT s.num,s.title ,s.laser_title,s.scene_source,'v4' as scene_version ,gps.lat,gps.lon,gps.alt,gps.web_site
|
|
|
+ SELECT s.num,s.title ,s.laser_title,s.scene_source,'v4' as scene_version ,gps.lat,gps.lon,gps.alt,gps.web_site,c.sn_code
|
|
|
FROM t_project_scene_gps gps
|
|
|
LEFT JOIN t_scene_plus s on gps.num = s.num
|
|
|
LEFT JOIN t_scene_plus_ext e on s.id = e.plus_id
|
|
|
+ LEFT JOIN t_camera c on s.camera_id = c.id
|
|
|
LEFT JOIN t_user u on s.user_id = u.id
|
|
|
LEFT JOIN t_company co on u.company_id = co.id
|
|
|
WHERE s.rec_status = 'A' and s.scene_status = -2 and s.map_show = 1 and s.num is not null
|