高德地址转换
This commit is contained in:
+12
@@ -204,6 +204,18 @@ public class WatchMonitorDataServiceImpl extends ServiceImpl<WatchMonitorDataMap
|
|||||||
// 构建异常数据
|
// 构建异常数据
|
||||||
WatchMonitorData monitorDataEntity = createMonitorData(data);
|
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());
|
String bindUserId = watchBindHisService.getBindUserId(data.getWatchNo(), DateUtils.getDateYMD());
|
||||||
|
|
||||||
if (StrUtil.isEmpty(bindUserId)) {
|
if (StrUtil.isEmpty(bindUserId)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user