修改一键告警构建socket坐标

This commit is contained in:
wanghao
2025-12-15 15:59:17 +08:00
parent 428992ca6d
commit 3b25a26540
6 changed files with 21 additions and 7 deletions
@@ -288,6 +288,8 @@ public class WatchMonitorDataServiceImpl extends ServiceImpl<WatchMonitorDataMap
if (Stream.of(data.getLon(), data.getLat()).allMatch(value -> ObjUtil.isNotEmpty(value) && value != 0)) {
Gps gps = GPS84ToGCJ02(data.getLon(), data.getLat());
if (null != gps) {
monitorDataEntity.setLon(gps.getLongitude());
monitorDataEntity.setLat(gps.getLatitude());
monitorDataEntity.setLonGd(BigDecimal.valueOf(gps.getLongitude()));
monitorDataEntity.setLatGd(BigDecimal.valueOf(gps.getLatitude()));
//获取高德地址信息