|
@@ -24,26 +24,23 @@
|
24
|
24
|
|
25
|
25
|
<select id="selectByNVRDates" resultType="java.util.HashMap" parameterType="java.util.Map" >
|
26
|
26
|
SELECT
|
27
|
|
- camera.id camera_id,
|
28
|
|
- camera.alias,
|
29
|
|
- camera.factory,
|
30
|
|
- camera.live,
|
31
|
|
- camera.ip camera_ip,
|
32
|
|
- camera.username camera_name,
|
33
|
|
- camera.password camera_password,
|
34
|
|
- camera.port camera_port,
|
35
|
|
- camera.type camera_type,
|
36
|
|
- nvr.ip nvr_ip,
|
37
|
|
- nvr.username nvr_name,
|
38
|
|
- nvr. PASSWORD nvr_password,
|
39
|
|
- nvr. PORT nvr_port,
|
40
|
|
- nvr.factory nvr_factory,
|
41
|
|
- camera.channel_number,
|
42
|
|
- camera.org_id
|
|
27
|
+ camera.id camera_id,
|
|
28
|
+ camera.alias,
|
|
29
|
+ camera.factory,
|
|
30
|
+ camera.live,
|
|
31
|
+ camera.ip camera_ip,
|
|
32
|
+ camera.username camera_name,
|
|
33
|
+ camera.password camera_password,
|
|
34
|
+ camera.port camera_port,
|
|
35
|
+ camera.type camera_type,
|
|
36
|
+ camera.channel_number,
|
|
37
|
+ camera.org_id,
|
|
38
|
+ camera.camera_index_code cameraIndexCode,
|
|
39
|
+ s.storehouse_id storehouseId
|
43
|
40
|
FROM
|
44
|
|
- depot_qh.monitor_camera camera
|
45
|
|
- LEFT JOIN depot_qh.monitor_nvr nvr ON nvr.id = camera.nvr_id
|
46
|
|
- WHERE camera.isremove = '1' AND nvr.delete_mark = '1' AND camera.org_id = #{orgId,jdbcType=VARCHAR} AND nvr.org_id = #{orgId,jdbcType=VARCHAR}
|
|
41
|
+ monitor_camera camera
|
|
42
|
+ LEFT JOIN camera_storehouse s on s.camera_id = camera.id
|
|
43
|
+ WHERE camera.isremove = '1' AND camera.org_id = #{orgid,jdbcType=VARCHAR}
|
47
|
44
|
group by camera.id
|
48
|
45
|
</select>
|
49
|
46
|
</mapper>
|