| | |
| | | import com.ruoyi.common.utils.spring.SpringUtils; |
| | | import com.ruoyi.device.camera.domain.ArdCameras; |
| | | import com.ruoyi.device.camera.mapper.ArdCamerasMapper; |
| | | import com.ruoyi.device.camera.service.IArdCamerasService; |
| | | import com.ruoyi.device.hiksdk.common.GlobalVariable; |
| | | import com.sun.jna.Pointer; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | camera.setChannel(0); |
| | | camera.setLoginId(-1); |
| | | } |
| | | ArdCamerasMapper ardCamerasMapper = SpringUtils.getBean(ArdCamerasMapper.class); |
| | | ardCamerasMapper.updateArdCameras(camera); |
| | | IArdCamerasService ardCamerasService = SpringUtils.getBean(IArdCamerasService.class); |
| | | ardCamerasService.updateArdCameras(camera); |
| | | return 1; |
| | | } |
| | | } |