gaodd vor 3 Monaten
Ursprung
Commit
4e68e58ab6

+ 21 - 1
src/main/java/com/chinaitop/depot/basic/mapper/MonitorCameraMapper.xml

@@ -607,7 +607,7 @@
607 607
       WHERE camera.isremove = '1' AND nvr.delete_mark = '1' AND camera.org_id = #{orgid,jdbcType=VARCHAR} AND nvr.org_id = #{orgid,jdbcType=VARCHAR}
608 608
     )a where rn = 1 -->
609 609
     
610
-    SELECT
610
+    <!-- SELECT
611 611
         camera.id camera_id,
612 612
         camera.alias,
613 613
         camera.factory,
@@ -631,6 +631,26 @@
631 631
       LEFT JOIN monitor_nvr nvr ON nvr.id = camera.nvr_id
632 632
       LEFT JOIN camera_storehouse s on s.camera_id = camera.id
633 633
       WHERE camera.isremove = '1' AND nvr.delete_mark = '1' AND camera.org_id = #{orgid,jdbcType=VARCHAR} AND nvr.org_id = #{orgid,jdbcType=VARCHAR}
634
+    group by camera.id -->
635
+    
636
+    SELECT
637
+        camera.id camera_id,
638
+        camera.alias,
639
+        camera.factory,
640
+        camera.live,
641
+        camera.ip camera_ip,
642
+        camera.username camera_name,
643
+        camera.password camera_password,
644
+        camera.port camera_port,
645
+        camera.type camera_type,
646
+        camera.channel_number,
647
+        camera.org_id,
648
+        camera.camera_index_code cameraIndexCode,
649
+        s.storehouse_id storehouseId
650
+      FROM
651
+          monitor_camera camera
652
+      LEFT JOIN camera_storehouse s on s.camera_id = camera.id
653
+      WHERE camera.isremove = '1' AND camera.org_id = #{orgid,jdbcType=VARCHAR}
634 654
     group by camera.id
635 655
   </select>
636 656