|
@@ -65,11 +65,11 @@ public class ProjectSceneGpsServiceImpl extends ServiceImpl<IProjectSceneGpsMapp
|
|
|
// }else {
|
|
|
// sceneGpsVo = getByHomeParameters(sceneGpsDb.getDataSource());
|
|
|
// }
|
|
|
-// if(sceneGpsVo == null && StrUtil.isNotBlank(sceneGpsDb.getGps())){
|
|
|
-// String gps = sceneGpsDb.getGps();
|
|
|
-// SceneExtGpsVo extGpsVo = JSONObject.parseObject(gps,SceneExtGpsVo.class);
|
|
|
-// sceneGpsVo = new SceneGpsVo(extGpsVo.getLatitude(),extGpsVo.getLongitude(),extGpsVo.getAltitude(),1);
|
|
|
-// }
|
|
|
+ if(sceneGpsVo == null && StrUtil.isNotBlank(sceneGpsDb.getGps())){
|
|
|
+ String gps = sceneGpsDb.getGps();
|
|
|
+ SceneExtGpsVo extGpsVo = JSONObject.parseObject(gps,SceneExtGpsVo.class);
|
|
|
+ sceneGpsVo = new SceneGpsVo(extGpsVo.getLatitude(),extGpsVo.getLongitude(),extGpsVo.getAltitude(),1);
|
|
|
+ }
|
|
|
if(sceneGpsVo != null
|
|
|
&& StrUtil.isNotBlank(sceneGpsVo.getLat())
|
|
|
&& StrUtil.isNotBlank(sceneGpsVo.getLon())
|