parent
							
								
									a6f36e8b43
								
							
						
					
					
						commit
						82a173a6f3
					
				|  | @ -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<String,Object> map = new HashMap<String,Object>(); | ||||
|         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<String,Object> map = new HashMap<String,Object>(); | ||||
|         String errInfo = "success"; | ||||
|         PageData pd = new PageData(); | ||||
|         pd = this.getPageData(); | ||||
|         PageData pd = this.getPageData(); | ||||
|         if ("bianjieruqin".equals(pd.getString("TYPE"))){ | ||||
|             List<PageData>	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<PageData> varList = platformelectronicService.listAll(pd);	//列出Platformelectronic列表
 | ||||
|         for (PageData data : varList) { | ||||
|  |  | |||
|  | @ -10,5 +10,7 @@ public class AlarmGet { | |||
|     private String status; | ||||
|     private String corpId; | ||||
|     private Page page; | ||||
|     // 告警来源
 | ||||
|     private String sourceNum; | ||||
| 
 | ||||
| } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue