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(""); } /**