|
@@ -87,6 +87,7 @@ public class ProjectSceneGpsServiceImpl extends ServiceImpl<IProjectSceneGpsMapp
|
|
|
}
|
|
|
ProjectSceneGps sceneGps = new ProjectSceneGps();
|
|
|
sceneGps.setNum(sceneGpsDb.getNum());
|
|
|
+ sceneGps.setWebSite(sceneGpsDb.getWebSite());
|
|
|
sceneGps.setGpsSource(0);
|
|
|
sceneGps.setSceneSource(sceneGpsDb.getSceneSource());
|
|
|
return sceneGps;
|
|
@@ -120,6 +121,27 @@ public class ProjectSceneGpsServiceImpl extends ServiceImpl<IProjectSceneGpsMapp
|
|
|
|
|
|
@Override
|
|
|
public void updateGps(String num,String lat,String lon,Integer type) {
|
|
|
+ ProjectSceneGps projectSceneGps = this.getByNum(num);
|
|
|
+ if(projectSceneGps == null){
|
|
|
+ ScenePlus scenePlus = scenePlusService.getByNum(num);
|
|
|
+ if(scenePlus == null){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ HashMap<String, JSONObject> ssMap = laserService.list(Arrays.asList(num), scenePlus.getSceneSource());
|
|
|
+ if(ssMap.get(num) == null){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ ProjectSceneGps sceneGps = new ProjectSceneGps();
|
|
|
+ sceneGps.setNum(num);
|
|
|
+ sceneGps.setWebSite(ssMap.get(num).getString("webSite"));
|
|
|
+ sceneGps.setLat(lat);
|
|
|
+ sceneGps.setLon(lon);
|
|
|
+ sceneGps.setGpsSource(2);
|
|
|
+ sceneGps.setSceneSource(scenePlus.getSceneSource());
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
LambdaUpdateWrapper<ProjectSceneGps> wrapper = new LambdaUpdateWrapper<>();
|
|
|
wrapper.eq(ProjectSceneGps::getNum,num);
|
|
|
wrapper.set(ProjectSceneGps::getLat,lat);
|