From 1e3b25b350ba8abc5f886ef484e697a308554384 Mon Sep 17 00:00:00 2001 From: wuweida <2918581207@qq.com> Date: Tue, 10 May 2022 09:03:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=A0=B9=E6=8D=AE=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E5=90=8D=E5=AD=97=E6=A8=A1=E7=B3=8A=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=20=E6=B7=BB=E5=8A=A0=E6=A0=B9=E6=8D=AE?= =?UTF-8?q?=E6=91=84=E5=83=8F=E5=A4=B4=E5=90=8D=E5=AD=97=E6=A8=A1=E7=B3=8A?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=91=84=E5=83=8F=E5=A4=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../monitormanage/controller/Controller.java | 29 +++++++++++++++++++ .../mapper/CameraChannelMapper.java | 6 ++++ 2 files changed, 35 insertions(+) diff --git a/src/main/java/com/hisense/monitormanage/controller/Controller.java b/src/main/java/com/hisense/monitormanage/controller/Controller.java index 0cc966a..5816014 100644 --- a/src/main/java/com/hisense/monitormanage/controller/Controller.java +++ b/src/main/java/com/hisense/monitormanage/controller/Controller.java @@ -106,6 +106,21 @@ public class Controller { } + /** + * 根据摄像头名字模糊查询摄像头 + * @param channelName + * @return + */ + @RequestMapping("selectByChannelName") + public Result selectByChannelName(String channelName){ + + List labels = cameraChannelMapper.selectByChannelName(channelName); + + Result success = Result.success(labels); + + return success; + } + /** * 根据parentId查询摄像头 * @param parentId @@ -150,6 +165,20 @@ public class Controller { return success; } + /** + * 根据标签名字模糊查询标签 + * @param labelName + * @return + */ + @RequestMapping("selectByLabelName") + public Result selectByLabelName(String labelName){ + + List