houzhongjian
2024-11-14 08b6a55a3a111aaee9842999b85afa60b6d61dc3
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");