删除对林火的火点推送功能

This commit is contained in:
liuchengqian 2023-03-14 09:53:22 +08:00
parent 97a8e9c6c2
commit 8aa7fd11eb

View File

@ -121,33 +121,9 @@ public class FirePointServiceImpl implements FirePointService {
} }
log.info("-------发现新火点"); log.info("-------发现新火点");
firePointDao.save(firePointEntity); firePointDao.save(firePointEntity);
forwardPoint(firePointEntity);
//发送消息通知 //发送消息通知
sendBroadcast(firePointEntity); sendBroadcast(firePointEntity);
return true; 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();
}
} }
/** /**