| | |
| | | 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; |
| | | |
| | |
| | | @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"); |