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