火点进入山东临时表发送微信群通知

This commit is contained in:
liuchengqian 2022-06-03 13:56:49 +08:00
parent 747dfd0815
commit 91d9451f7b

View File

@ -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();
}