| 
															
																@ -65,26 +65,22 @@ public class HongLingJinUtil { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        return null; 
															 | 
															
															 | 
															
																        return null; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    } 
															 | 
															
															 | 
															
																    } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    public static void main(String[] args) throws Exception{ 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																/*    public static void main(String[] args) throws Exception{ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																//        String url = "http://10.18.40.101:7688/api/zzd/common"; 
															 | 
															
															 | 
															
																//        String url = "http://10.18.40.101:7688/api/zzd/common"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        String url = "https://zhyzh.gongshu.gov.cn/zzdcommon"; 
															 | 
															
															 | 
															
																        String url = "https://zhyzh.gongshu.gov.cn/zzdcommon"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        JSONObject params = new JSONObject(); 
															 | 
															
															 | 
															
																        JSONObject params = new JSONObject(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        JSONObject eventAssistName = new JSONObject(); 
															 | 
															
															 | 
															
																        JSONObject eventAssistName = new JSONObject(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        JSONObject test1 = new JSONObject(); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        test1.put("deptName",""); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        test1.put("mobile",""); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        test1.put("realName",""); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        eventAssistName.put("test",test1); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        eventAssistName.put("deptName",""); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        eventAssistName.put("mobile",""); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        eventAssistName.put("realName",""); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        JSONObject eventChargeName = new JSONObject(); 
															 | 
															
															 | 
															
																        JSONObject eventChargeName = new JSONObject(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        JSONObject test2 = new JSONObject(); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        test2.put("deptName",""); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        test2.put("mobile","15659713528"); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        test2.put("realName","测试账号"); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																/*        test1.put("mobile","15545430148"); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        test1.put("realName","李康硕");*/ 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        eventChargeName.put("test",test2); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        eventChargeName.put("deptName",""); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        eventChargeName.put("mobile","15545430148"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        eventChargeName.put("realName","李康硕"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																*//*        test1.put("mobile","15545430148"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        test1.put("realName","李康硕");*//* 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        params.put("eventAssistName",eventAssistName); 
															 | 
															
															 | 
															
																        params.put("eventAssistName",eventAssistName); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        params.put("eventChargeName",eventChargeName); 
															 | 
															
															 | 
															
																        params.put("eventChargeName",eventChargeName); 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -92,29 +88,56 @@ public class HongLingJinUtil { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        params.put("eventLocation","测试地址"); 
															 | 
															
															 | 
															
																        params.put("eventLocation","测试地址"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        params.put("eventName","测试事件"); 
															 | 
															
															 | 
															
																        params.put("eventName","测试事件"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        params.put("taskDescription","测试事件1"); 
															 | 
															
															 | 
															
																        params.put("taskDescription","测试事件1"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        params.put("eventState","0"); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        params.put("taskId",0); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        params.put("eventState","1"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        params.put("taskId","1234"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        RestTemplate restTemplate = new RestTemplate(); 
															 | 
															
															 | 
															
																        RestTemplate restTemplate = new RestTemplate(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        HttpHeaders headers = new HttpHeaders(); 
															 | 
															
															 | 
															
																        HttpHeaders headers = new HttpHeaders(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        headers.add("Authorization", "Bearer "+"a8d1f682-9281-4d88-84ed-3643e738da09"); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        headers.add("Authorization", "Bearer "+"6540793f-a3a3-4e4c-8d65-76c3697e3adb"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        headers.add("Content-Type", MediaType.APPLICATION_JSON_VALUE); 
															 | 
															
															 | 
															
																        headers.add("Content-Type", MediaType.APPLICATION_JSON_VALUE); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        headers.add("Accept",MediaType.ALL_VALUE); 
															 | 
															
															 | 
															
																        headers.add("Accept",MediaType.ALL_VALUE); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        org.springframework.http.HttpEntity<String> formEntity = new org.springframework.http.HttpEntity<String>(params.toString(), headers); 
															 | 
															
															 | 
															
																        org.springframework.http.HttpEntity<String> formEntity = new org.springframework.http.HttpEntity<String>(params.toString(), headers); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        String ret = restTemplate.postForObject(url, formEntity, String.class); 
															 | 
															
															 | 
															
																        String ret = restTemplate.postForObject(url, formEntity, String.class); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        System.out.println(ret); 
															 | 
															
															 | 
															
																        System.out.println(ret); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    } 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																    }*/ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    /** 
															 | 
															
															 | 
															
																    /** 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     * 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																     * 预警消息推送 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     */ 
															 | 
															
															 | 
															
																     */ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    public void zzdcommon(){ 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																    public void zzdcommon(String mobile,String name,String eventHappenTime 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            ,String eventName,String taskDescription,String eventLocation,String taskId){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        try { 
															 | 
															
															 | 
															
																        try { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            String url = "http://10.18.40.101:7688/api/zzd/common"; 
															 | 
															
															 | 
															
																            String url = "http://10.18.40.101:7688/api/zzd/common"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																//            String url = "https://zhyzh.gongshu.gov.cn/zzdcommon"; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            JSONObject params = new JSONObject(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            JSONObject eventAssistName = new JSONObject(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            eventAssistName.put("deptName",""); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            eventAssistName.put("mobile",""); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            eventAssistName.put("realName",""); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            JSONObject eventChargeName = new JSONObject(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            eventChargeName.put("deptName",""); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            eventChargeName.put("mobile", mobile); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            eventChargeName.put("realName", name); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            params.put("eventAssistName",eventAssistName); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            params.put("eventChargeName",eventChargeName); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            params.put("eventHappenTime",eventHappenTime); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            params.put("eventLocation",eventLocation); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            params.put("eventName", eventName); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            params.put("taskDescription", taskDescription); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            params.put("eventState","1"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            params.put("eventSource","2"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            params.put("taskId", taskId); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            RestTemplate restTemplate = new RestTemplate(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            HttpHeaders headers = new HttpHeaders(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            headers.add("Authorization", "Bearer "+getToken()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            headers.add("Content-Type", MediaType.APPLICATION_JSON_VALUE); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            headers.add("Accept",MediaType.ALL_VALUE); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            org.springframework.http.HttpEntity<String> formEntity = new org.springframework.http.HttpEntity<String>(params.toString(), headers); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            String ret = restTemplate.postForObject(url, formEntity, String.class); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            logger.info("ret:"+ret); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        }catch (Exception e){ 
															 | 
															
															 | 
															
																        }catch (Exception e){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            e.printStackTrace(); 
															 | 
															
															 | 
															
																            e.printStackTrace(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        } 
															 | 
															
															 | 
															
																        } 
															 |