diff --git a/src/main/java/com/zcloud/controller/map/MapPlatFormElectronicController.java b/src/main/java/com/zcloud/controller/map/MapPlatFormElectronicController.java index c26eb59c..050c6ff0 100644 --- a/src/main/java/com/zcloud/controller/map/MapPlatFormElectronicController.java +++ b/src/main/java/com/zcloud/controller/map/MapPlatFormElectronicController.java @@ -2,6 +2,7 @@ package com.zcloud.controller.map; import com.zcloud.controller.base.BaseController; import com.zcloud.entity.PageData; +import com.zcloud.service.keyProjects.PlatformvideomanagementService; import com.zcloud.service.map.util.HKPostUtil; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; @@ -19,6 +20,9 @@ public class MapPlatFormElectronicController extends BaseController { @Autowired private PlatformelectronicService platformelectronicService; + @Autowired + private PlatformvideomanagementService platformvideomanagementService; + /**总摄像头数 * @throws Exception */ @@ -27,8 +31,7 @@ public class MapPlatFormElectronicController extends BaseController { public Object listAll() throws Exception{ Map map = new HashMap(); String errInfo = "success"; - PageData pd = new PageData(); - pd = this.getPageData(); + PageData pd = this.getPageData(); Integer allForMap = platformelectronicService.countAllForMap(pd); //列出Platformelectronic列表 map.put("allForMap", allForMap); map.put("result", errInfo); @@ -61,8 +64,16 @@ public class MapPlatFormElectronicController extends BaseController { public Object listAllLocation() throws Exception{ Map map = new HashMap(); String errInfo = "success"; - PageData pd = new PageData(); - pd = this.getPageData(); + PageData pd = this.getPageData(); + if ("bianjieruqin".equals(pd.getString("TYPE"))){ + 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; + } pd.put("forMap","1"); List varList = platformelectronicService.listAll(pd); //列出Platformelectronic列表 for (PageData data : varList) { diff --git a/src/main/java/com/zcloud/service/dw/dto/AlarmGet.java b/src/main/java/com/zcloud/service/dw/dto/AlarmGet.java index e4c5044a..07eca741 100644 --- a/src/main/java/com/zcloud/service/dw/dto/AlarmGet.java +++ b/src/main/java/com/zcloud/service/dw/dto/AlarmGet.java @@ -10,5 +10,7 @@ public class AlarmGet { private String status; private String corpId; private Page page; + // 告警来源 + private String sourceNum; }