执法记录仪视频配置null修复

This commit is contained in:
guoshengxiong 2025-10-09 17:56:18 +08:00
parent a9955d50b5
commit b851bebabc

View File

@ -315,6 +315,9 @@ public class PoliceCameraItemServiceImpl extends ServiceImpl<PoliceCameraItemMap
QueryWrapper<PoliceCameraVideoConfig> queryWrapper = new QueryWrapper<>();
queryWrapper.lambda().eq(PoliceCameraVideoConfig::getProjectSn, item.getProjectSn());
PoliceCameraVideoConfig config = policeCameraVideoConfigService.getOne(queryWrapper);
if (config == null) {
throw new OpenAlertException("请先配置ISC服务器");
}
vo.setConfig(config);
//海康ISC
String url = HikVideoUtil.callPostApiGetPreviewURL(item.getMonitoringNumber(), MapUtils.getString(map, "type"),