修改一键告警构建socket坐标
This commit is contained in:
+2
@@ -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()));
|
||||
//获取高德地址信息
|
||||
|
||||
Reference in New Issue
Block a user