From 91d9451f7b792d2952772be712af1bb4d82051dd Mon Sep 17 00:00:00 2001 From: liuchengqian Date: Fri, 3 Jun 2022 13:56:49 +0800 Subject: [PATCH] =?UTF-8?q?=E7=81=AB=E7=82=B9=E8=BF=9B=E5=85=A5=E5=B1=B1?= =?UTF-8?q?=E4=B8=9C=E4=B8=B4=E6=97=B6=E8=A1=A8=E5=8F=91=E9=80=81=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E7=BE=A4=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/xkrs/service/impl/FirePointServiceImpl.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/xkrs/service/impl/FirePointServiceImpl.java b/src/main/java/com/xkrs/service/impl/FirePointServiceImpl.java index b735444..710ddf6 100644 --- a/src/main/java/com/xkrs/service/impl/FirePointServiceImpl.java +++ b/src/main/java/com/xkrs/service/impl/FirePointServiceImpl.java @@ -203,8 +203,16 @@ public class FirePointServiceImpl implements FirePointService { log.info("-------发现新山东火点"); ShanDongFirePointEntity savedFirePointEntity = shanDongFirePointDao.save(firePointEntity); try {//微信消息通知工作组 - String content = "【星科瑞升】您注册的区域卫星监测到疑似火点," + firePointEntity.getFirePointAddress() + ",\n请登录系统查看"; -// WDWxSendMsgUtil.sendMsg(weixinId, content, 0); + java.text.DecimalFormat decimalFormat = new DecimalFormat("#.000000"); + String formatLongitude = decimalFormat.format(firePointEntity.getLongitude()); + String formatLatitude = decimalFormat.format(firePointEntity.getLatitude()); + String countyName = firePointEntity.getCountyName(); + String content = firePointEntity.getSatelliteType() + "发现1个火点。\nlongitude:" + formatLongitude + ";\nlatitude:" + formatLatitude + ";\ncountyName:" + countyName; + try { + WDWxSendMsgUtil.sendMsg("18447024917@chatroom", content, 0); + } catch (Exception e) { + e.printStackTrace(); + } } catch (Exception e) { e.printStackTrace(); }