From bac2105efb84c67bd77a0ef7d589e928491cba09 Mon Sep 17 00:00:00 2001 From: wuweida <2918581207@qq.com> Date: Thu, 12 May 2022 10:39:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E6=A0=87=E7=AD=BE=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=91=84=E5=83=8F=E5=A4=B4=E6=8E=A5=E5=8F=A3=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../monitormanage/controller/Controller.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/hisense/monitormanage/controller/Controller.java b/src/main/java/com/hisense/monitormanage/controller/Controller.java index 6322904..7da161a 100644 --- a/src/main/java/com/hisense/monitormanage/controller/Controller.java +++ b/src/main/java/com/hisense/monitormanage/controller/Controller.java @@ -13,6 +13,7 @@ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; +import java.sql.Array; import java.time.Clock; import java.time.LocalDateTime; import java.util.HashMap; @@ -180,9 +181,17 @@ public class Controller { List channelLabelDtos = cameraChannelMapper.selectLabel(labelCode); - Result success = Result.success(channelLabelDtos); + for (ChannelLabelDto channelLabelDto :channelLabelDtos) { + String nodeName = channelLabelDto.getNodeName(); + String[] splits = nodeName.split("->"); + String split = splits[1]; + channelLabelDto.setNodeName(split); - return success; + Result success = Result.success(channelLabelDto); + + return success; + } + return Result.error(""); } /**