| | |
| | | import com.ruoyi.device.hiksdk.service.IHikClientService; |
| | | import org.hibernate.validator.internal.util.stereotypes.Lazy; |
| | | import org.springframework.scheduling.annotation.Async; |
| | | import org.springframework.scheduling.annotation.EnableAsync; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | @Resource |
| | | IDhClientService dhClientService; |
| | | |
| | | @Async |
| | | @Async("loginExecutor") |
| | | public void hikLogin(ArdCameras ardCameras) { |
| | | Threads.sleep(200); |
| | | hikClientService.login(ardCameras); |
| | | } |
| | | |
| | | @Async |
| | | |
| | | @Async("loginExecutor") |
| | | public void dhLogin(ArdCameras ardCameras) { |
| | | Threads.sleep(200); |
| | | dhClientService.login(ardCameras); |
| | | } |
| | | } |
| | | } |