From 6242a346ce5f235c9aecf6c1eaeecb84e672c9e7 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Wed, 22 Oct 2025 12:19:22 +0800 Subject: [PATCH] =?UTF-8?q?feat(device):=20=E6=9B=B4=E6=96=B0=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E5=93=8D=E5=BA=94=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 deviceNo 和 channelNo 字段替换为 previewUrl 和 previewCoverUrl - 修改 DeviceRespVO 类中的字段定义- 在 AppScenicServiceImpl 中更新设备配置信息的设置逻辑 --- .../com/ycwl/basic/model/pc/device/resp/DeviceRespVO.java | 4 ++-- .../ycwl/basic/service/mobile/impl/AppScenicServiceImpl.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/ycwl/basic/model/pc/device/resp/DeviceRespVO.java b/src/main/java/com/ycwl/basic/model/pc/device/resp/DeviceRespVO.java index 920ceea6..c3479bed 100644 --- a/src/main/java/com/ycwl/basic/model/pc/device/resp/DeviceRespVO.java +++ b/src/main/java/com/ycwl/basic/model/pc/device/resp/DeviceRespVO.java @@ -38,6 +38,6 @@ public class DeviceRespVO { private String scenicName; @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private Date keepaliveAt; - private String deviceNo; - private String channelNo; + private String previewUrl; + private String previewCoverUrl; } diff --git a/src/main/java/com/ycwl/basic/service/mobile/impl/AppScenicServiceImpl.java b/src/main/java/com/ycwl/basic/service/mobile/impl/AppScenicServiceImpl.java index 05b1cee2..117e1a0d 100644 --- a/src/main/java/com/ycwl/basic/service/mobile/impl/AppScenicServiceImpl.java +++ b/src/main/java/com/ycwl/basic/service/mobile/impl/AppScenicServiceImpl.java @@ -285,8 +285,8 @@ public class AppScenicServiceImpl implements AppScenicService { deviceRespVO.setNo(device.getNo()); DeviceConfigManager config = deviceRepository.getDeviceConfigManager(device.getId()); - deviceRespVO.setDeviceNo(device.getNo()); - deviceRespVO.setChannelNo(config.getString("channel_no")); + deviceRespVO.setPreviewUrl(config.getString("preview_url")); + deviceRespVO.setPreviewCoverUrl(config.getString("preview_cover_url")); return deviceRespVO; }).collect(Collectors.toList()); for (DeviceRespVO deviceRespVO : deviceRespVOList) {