Pārlūkot izejas kodu

Merge branch 'dev' of depot-qinghai/depot-monitor-qinghai into dev-2.15.0

TangSong 3 mēneši atpakaļ
vecāks
revīzija
77871bfd59

+ 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
 

+ 4 - 4
src/main/java/com/chinaitop/depot/monitor/controller/PreviewPlaybackController.java

@@ -143,18 +143,18 @@ public class PreviewPlaybackController {
143 143
         CaptureReqDTO captureReqDTO = (CaptureReqDTO)mapper1.readValue(captureReqDTOJson, CaptureReqDTO.class);
144 144
         
145 145
         // JSON字符串转对象
146
-        ObjectMapper mapper = new ObjectMapper();
147
-        CameraCapture cameraCapture = (CameraCapture)mapper.readValue(cameraCaptureJson, CameraCapture.class);
146
+        /*ObjectMapper mapper = new ObjectMapper();
147
+        CameraCapture cameraCapture = (CameraCapture)mapper.readValue(cameraCaptureJson, CameraCapture.class);*/
148 148
         
149 149
     	CaptureResDTO captureResDTO = hkService.manualCapture(captureReqDTO);
150 150
          
151 151
     	
152 152
          //加到表里
153
-    	CameraCapture cameraCapture1 = cameraCaptureService.save(cameraCapture,captureResDTO.getPicUrl());
153
+    	/*CameraCapture cameraCapture1 = cameraCaptureService.save(cameraCapture,captureResDTO.getPicUrl());
154 154
          if(cameraCapture1.getId()>0){
155 155
         	 //传到国家局
156 156
         	 this.gjjjk(cameraCapture1.getId(), Integer.valueOf(cameraCapture1.getOrgId()), "i");
157
-         }
157
+         }*/
158 158
          
159 159
          return captureResDTO.getPicUrl();
160 160
     }

+ 2 - 1
src/main/resources/bootstrap-prod.yml

@@ -55,7 +55,8 @@ windows-path: /home/depot/monitorzd/
55 55
 jsgjjsjUrl: http://localhost:9022/recPublish/sendMessage
56 56
 # 海康
57 57
 hk:
58
-  host: 59.220.180.103:443 #平台(nginx)IP 和端口
58
+  #host: 59.220.180.103:443 #平台(nginx)IP 和端口
59
+  host: 172.18.93.217:443 #平台(nginx)IP 和端口
59 60
   app-key: 22161302 #合作方 key
60 61
   app-secret: aSDjmmd5S4uSKkQSygiV #合作方 Secret
61 62
   

+ 2 - 2
src/test/java/com/chinaitop/depot/hk/service/HkServiceTest.java

@@ -56,7 +56,7 @@ public class HkServiceTest {
56 56
 
57 57
     @Test
58 58
     public void recordStart() {
59
-        log.info("recordStart:{}", JSON.toJSONString(hkService.recordStart(new RecordStartReqDTO("1234", 6, 1))));
59
+        //log.info("recordStart:{}", JSON.toJSONString(hkService.recordStart(new RecordStartReqDTO("1234", 6, 1))));
60 60
     }
61 61
 
62 62
     @Test
@@ -66,7 +66,7 @@ public class HkServiceTest {
66 66
 
67 67
     @Test
68 68
     public void manualCapture() {
69
-        log.info("manualCapture:{}", JSON.toJSONString(hkService.manualCapture(new CaptureReqDTO("1234"))));
69
+        //log.info("manualCapture:{}", JSON.toJSONString(hkService.manualCapture(new CaptureReqDTO("1234"))));
70 70
     }
71 71
 
72 72
     @Test