From 08b6a55a3a111aaee9842999b85afa60b6d61dc3 Mon Sep 17 00:00:00 2001
From: houzhongjian <houzhongyi@126.com>
Date: 星期四, 14 十一月 2024 15:29:38 +0800
Subject: [PATCH] 大华及海康摄像头截图功能开发

---
 iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/job/task/DevCameraDahuaTask.java |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/job/task/DevCameraDahuaTask.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/job/task/DevCameraDahuaTask.java
index f351ec3..133d990 100644
--- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/job/task/DevCameraDahuaTask.java
+++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/job/task/DevCameraDahuaTask.java
@@ -9,6 +9,7 @@
 import com.iailab.module.data.video.service.CameraService;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Component;
 import org.springframework.util.CollectionUtils;
 
@@ -32,13 +33,15 @@
     @Resource
     private CameraService cameraService;
 
-    @Resource
+    @Autowired
     private DHClientFactory dhClientFactory;
 
     @Override
     public void run(String params) {
         logger.info("devCameraDahuaTask定时任务正在执行,参数为:{}", params);
+        //传递租户id
         System.out.println(TenantContextHolder.getTenantId());
+        String tenantId = String.valueOf(TenantContextHolder.getTenantId());
         try {
             CameraPageReqVO cameraPageReqVO = new CameraPageReqVO();
             cameraPageReqVO.setType("2");

--
Gitblit v1.9.3