火点进入山东临时表发送微信群通知
This commit is contained in:
parent
747dfd0815
commit
91d9451f7b
@ -203,8 +203,16 @@ public class FirePointServiceImpl implements FirePointService {
|
|||||||
log.info("-------发现新山东火点");
|
log.info("-------发现新山东火点");
|
||||||
ShanDongFirePointEntity savedFirePointEntity = shanDongFirePointDao.save(firePointEntity);
|
ShanDongFirePointEntity savedFirePointEntity = shanDongFirePointDao.save(firePointEntity);
|
||||||
try {//微信消息通知工作组
|
try {//微信消息通知工作组
|
||||||
String content = "【星科瑞升】您注册的区域卫星监测到疑似火点," + firePointEntity.getFirePointAddress() + ",\n请登录系统查看";
|
java.text.DecimalFormat decimalFormat = new DecimalFormat("#.000000");
|
||||||
// WDWxSendMsgUtil.sendMsg(weixinId, content, 0);
|
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) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user