diff --git a/src/main/java/com/hisense/monitormanage/controller/Controller.java b/src/main/java/com/hisense/monitormanage/controller/Controller.java index b1c96c3..0b60e2e 100644 --- a/src/main/java/com/hisense/monitormanage/controller/Controller.java +++ b/src/main/java/com/hisense/monitormanage/controller/Controller.java @@ -1,9 +1,6 @@ package com.hisense.monitormanage.controller; -import com.hisense.monitormanage.dto.CameraChannelDto; -import com.hisense.monitormanage.dto.ChannelLabelDto; -import com.hisense.monitormanage.dto.ChengguanDto; -import com.hisense.monitormanage.dto.ScenicCameraDto; +import com.hisense.monitormanage.dto.*; import com.hisense.monitormanage.entity.*; import com.hisense.monitormanage.mapper.*; import com.hisense.monitormanage.service.*; @@ -121,6 +118,23 @@ public class Controller { return success; + } + + /** + * 根据channelId查询摄像头详细信息 + * @param channelId + * @return + */ + @RequestMapping("selectByChannelId") + public Result selectByChannelId(String channelId){ + + List list = cameraChannelMapper.selectByChannelId(channelId); + + Result success = Result.success(list); + + return success; + + } /**