Просмотр исходного кода

fix(video): 驾驶舱设备接口接入方式字段对齐 sourceType

参考后端 VideoDeviceRecord 与旧视频设备页的字段口径,接入方式键由
accessType 对齐为 sourceType(GB28181/MANUAL),与业务设备编码、国标设备/通道、
安装位置、厂商一并返回,供监控面板展示。仅改字段名。

zksy-system 编译通过。
Kazerin 2 недель назад
Родитель
Сommit
14072655b7

+ 1 - 1
pipe-network-service/zksy-system/src/main/java/com/zksy/cockpit/video/CockpitVideoService.java

@@ -43,7 +43,7 @@ public class CockpitVideoService {
         data.put("bound", bound);
         // Video-specific fields the panel shows. All come from the existing binding; no new source.
         data.put("businessCode", binding != null && binding.getDeviceCode() != null ? binding.getDeviceCode() : device.getEquipmentCode());
-        data.put("accessType", binding == null ? null : binding.getSourceType());
+        data.put("sourceType", binding == null ? null : binding.getSourceType());
         data.put("gbDeviceId", binding == null ? null : binding.getGbDeviceId());
         data.put("gbChannelId", binding == null ? null : binding.getGbChannelId());
         data.put("manufacturer", device.getManufacturer());