From 336061334751e05c03cc49c6d1b872b79cd3ddd3 Mon Sep 17 00:00:00 2001 From: liuchengqian Date: Fri, 10 Mar 2023 10:22:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/FirePointServiceImpl.java | 27 ------------------- src/main/resources/application.properties | 2 +- 2 files changed, 1 insertion(+), 28 deletions(-) diff --git a/src/main/java/com/xkrs/service/impl/FirePointServiceImpl.java b/src/main/java/com/xkrs/service/impl/FirePointServiceImpl.java index 4c62c76..6b253dc 100644 --- a/src/main/java/com/xkrs/service/impl/FirePointServiceImpl.java +++ b/src/main/java/com/xkrs/service/impl/FirePointServiceImpl.java @@ -1,6 +1,5 @@ package com.xkrs.service.impl; -import com.fasterxml.jackson.databind.ObjectMapper; import com.xkrs.common.encapsulation.PromptMessageEnum; import com.xkrs.dao.*; import com.xkrs.model.entity.CountyCodeWeiXinEntity; @@ -121,33 +120,7 @@ public class FirePointServiceImpl implements FirePointService { } log.info("-------发现新火点"); firePointDao.save(firePointEntity); - forwardPoint(firePointEntity); - //发送消息通知 - sendBroadcast(firePointEntity); return true; -// if (firePointEntity.getCountyCode().startsWith("37")) { -// //如果开关已打开,就只将未审核的火点添加到山东临时表 -// log.info("-------发现新山东火点"); -// ShanDongFirePointEntity shanDongFirePointByFirePoint = getShanDongFirePointByFirePoint(firePointEntity); -// ShanDongFirePointEntity savedShanDongFirePoint = shanDongFirePointDao.save(shanDongFirePointByFirePoint); -// //微信消息通知火点审核工作组 -// try { -// String messageContent = getMessageContent(savedShanDongFirePoint); -// WDWxSendMsgUtil.sendMsg("18447024917@chatroom", messageContent, 0); -// } catch (Exception e) { -// e.printStackTrace(); -// } -// return true; -// } - } - - private void forwardPoint(FirePointEntity firePointEntity) { - try { - String url = "http://121.36.229.60:6811/insertfirepointchannelThree"; - HttpClientUtils.sendHttpPostTextPlain(url, new ObjectMapper().writeValueAsString(firePointEntity)); - } catch (Exception e) { - e.printStackTrace(); - } } /** diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 08e4171..987b328 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,7 +1,7 @@ server.port = 6801 ## 数据源配置 -spring.datasource.url = jdbc:postgresql://8.142.26.238:5432/fire_point +spring.datasource.url = jdbc:postgresql://118.24.27.47:5432/fire_point spring.datasource.userName = fire_manage spring.datasource.password = fire456 spring.datasource.driverClassName = org.postgresql.Driver