From 8733ad32a53128ae9116043b520d6fc973fd272d Mon Sep 17 00:00:00 2001 From: limingyu Date: Tue, 23 Apr 2024 14:42:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E6=91=84=E5=83=8F=E5=A4=B4?= =?UTF-8?q?=E7=82=B9=E4=BD=8D=E4=B8=8D=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PlatformvideomanagementController.java | 18 ++++++++++++++++++ .../PlatformvideomanagementMapper.xml | 6 +++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/zcloud/controller/keyProjects/PlatformvideomanagementController.java b/src/main/java/com/zcloud/controller/keyProjects/PlatformvideomanagementController.java index 0f41a466..b1a85702 100644 --- a/src/main/java/com/zcloud/controller/keyProjects/PlatformvideomanagementController.java +++ b/src/main/java/com/zcloud/controller/keyProjects/PlatformvideomanagementController.java @@ -127,8 +127,26 @@ public class PlatformvideomanagementController extends BaseController { PageData pd = new PageData(); pd = this.getPageData(); List varList = platformvideomanagementService.listAll(pd); //列出Platformvideomanagement列表 + for (PageData data : varList) { + data.put("MAP_POINT_NAME", data.getString("NAME")); + } map.put("varList", varList); map.put("result", errInfo); return map; } + + /**列表 + * @throws Exception + */ + @RequestMapping(value="/getHlsPathById") + @ResponseBody + public Object getHlsPathById() throws Exception{ + Map map = new HashMap(); + PageData pd =this.getPageData(); + pd = platformvideomanagementService.findById(pd); + map = HKUtil.camerasPreviewURLs(pd.getString("INDEXCODE"),"hls"); + map.put("pd",pd); + map.put("result", "success"); + return map; + } } diff --git a/src/main/resources/mybatis/datasource/keyProjects/PlatformvideomanagementMapper.xml b/src/main/resources/mybatis/datasource/keyProjects/PlatformvideomanagementMapper.xml index 2bdfe30a..5752216b 100644 --- a/src/main/resources/mybatis/datasource/keyProjects/PlatformvideomanagementMapper.xml +++ b/src/main/resources/mybatis/datasource/keyProjects/PlatformvideomanagementMapper.xml @@ -162,9 +162,13 @@