高德地址转换

This commit is contained in:
2025-12-15 13:40:30 +08:00
parent a59914b95c
commit 428992ca6d
@@ -204,6 +204,18 @@ public class WatchMonitorDataServiceImpl extends ServiceImpl<WatchMonitorDataMap
// 构建异常数据
WatchMonitorData monitorDataEntity = createMonitorData(data);
// 后面不知道在写什么,这里把原始数据也修改一下吧,以免后面胡乱取值
if(monitorDataEntity.getLonGd() != null){
data.setLon(monitorDataEntity.getLonGd().doubleValue());
}
if(monitorDataEntity.getLatGd() != null){
data.setLat(monitorDataEntity.getLatGd().doubleValue());
}
if(StrUtil.isNotBlank(monitorDataEntity.getAddressGd())){
data.setAddress(monitorDataEntity.getAddressGd());
}
String bindUserId = watchBindHisService.getBindUserId(data.getWatchNo(), DateUtils.getDateYMD());
if (StrUtil.isEmpty(bindUserId)) {