| 
					
				 | 
			
			
				@ -115,13 +115,14 @@ public class ArtemisPostTest { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						 980007	监控点在离线消息	7 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						 980008	监测实时信息	8 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					public static void subscription_info(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					public static void subscription_info(String msgType){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						String url = "/api/firepro/v1/subscription/info"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						//消息类型	msgType	String	是 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						//回调URL	postUrl	String	是 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						JSONObject jsonBody = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						jsonBody.put("msgType", 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						jsonBody.put("postUrl", 3); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						jsonBody.put("msgType", msgType); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						jsonBody.put("postUrl", "http://ehr.yihu.com/wlyy/aqg/hvdevice/messageNotification"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						//http://ehr.yihu.com/wlyy/aqg/device/byOnlineStatus 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						//http://ehr.yihu.com/wlyy/aqg 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						String body = jsonBody.toJSONString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						String StringeResult = callPostStringApi(url,body); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -154,27 +155,53 @@ public class ArtemisPostTest { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						System.out.println("StringeResult结果示例: "+StringeResult); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					/** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					 * 查询订阅 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					 */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					public void subscription_list(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						String url = "/api/firepro/v1/subscription/list"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					 * 设备监测信息查询 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					public static void getMonitor(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						String url = "/api/firepro/v1/getMonitor"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						JSONObject jsonBody = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						jsonBody.put("pageNo", 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						jsonBody.put("pageSize", 3); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						jsonBody.put("pageSize", 10); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						jsonBody.put("flagId", ""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						jsonBody.put("offset", 0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						String body = jsonBody.toJSONString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						String StringeResult = callPostStringApi(url,body); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						System.out.println("StringeResult结果示例: "+StringeResult); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					public static void main(String[] args) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						String url = "/api/firepro/v1/getCompany"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					/** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					 * 查询订阅 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					 */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					public void subscription_list(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						String url = "/api/firepro/v1/subscription/list"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						JSONObject jsonBody = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						jsonBody.put("pageNo", 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						jsonBody.put("pageSize", 3); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						String body = jsonBody.toJSONString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						String StringeResult = callPostStringApi(url,body); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						System.out.println("StringeResult结果示例: "+StringeResult); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					public static void main(String[] args) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//		String url = "/api/firepro/v1/getCompany"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//		JSONObject jsonBody = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//		jsonBody.put("pageNo", 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//		jsonBody.put("pageSize", 3); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//		String body = jsonBody.toJSONString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//		String StringeResult = callPostStringApi(url,body); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//		System.out.println("StringeResult结果示例: "+StringeResult); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//		callPostImgStringApi(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						getMonitor(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//		subscription_info("980001"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//		subscription_info("980002"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//		subscription_info("980003"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//		subscription_info("980004"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//		subscription_info("980005"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//		subscription_info("980006"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//		subscription_info("980007"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//		subscription_info("980008"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				} 
			 |