|
|
@@ -22,6 +22,7 @@ import com.fdkankan.download.bean.*;
|
|
|
import com.fdkankan.download.entity.ScenePlus;
|
|
|
import com.fdkankan.download.entity.ScenePlusExt;
|
|
|
import com.fdkankan.download.entity.ScenePro;
|
|
|
+import com.fdkankan.download.httpclient.LaserHttpClient;
|
|
|
import com.fdkankan.download.service.IScenePlusExtService;
|
|
|
import com.fdkankan.download.service.IScenePlusService;
|
|
|
import com.fdkankan.download.service.ISceneProService;
|
|
|
@@ -30,6 +31,7 @@ import com.fdkankan.fyun.face.FYunFileServiceInterface;
|
|
|
import com.fdkankan.model.constants.UploadFilePath;
|
|
|
import com.fdkankan.redis.constant.RedisKey;
|
|
|
import com.fdkankan.redis.util.RedisUtil;
|
|
|
+import com.fdkankan.web.response.Result;
|
|
|
import com.google.common.collect.Lists;
|
|
|
import java.io.File;
|
|
|
import java.io.FileInputStream;
|
|
|
@@ -131,6 +133,10 @@ public class SceneDownloadHandlerServiceImpl {
|
|
|
private IScenePlusExtService scenePlusExtService;
|
|
|
@Autowired
|
|
|
private ISceneProService sceneProService;
|
|
|
+ @Value("${4dkk.laserService.basePath}")
|
|
|
+ private String laserHost;
|
|
|
+ @Resource
|
|
|
+ private LaserHttpClient laserHttpClient;
|
|
|
|
|
|
@Async("sceneDownLoadExecutror")
|
|
|
public void download(DownLoadTaskBean downLoadTaskBean){
|
|
|
@@ -651,6 +657,21 @@ public class SceneDownloadHandlerServiceImpl {
|
|
|
return map;
|
|
|
}
|
|
|
|
|
|
+ private void setRtkInfo(SceneViewInfo sceneViewInfo){
|
|
|
+ //如果是激光场景,请求激光系统获取激光场景特有属性,提供给许钟文使用
|
|
|
+ try {
|
|
|
+ if("laser".equals(sceneViewInfo.getSceneFrom())){
|
|
|
+ Result<List<com.alibaba.fastjson.JSONObject>> tiledMap = laserHttpClient.getTiledMap(laserHost, sceneViewInfo.getNum());
|
|
|
+ sceneViewInfo.setTiledMap(tiledMap.getData());
|
|
|
+
|
|
|
+ Result<com.alibaba.fastjson.JSONObject> dataSetAndControlPoint = laserHttpClient.getDataSetAndControlPoint(laserHost, sceneViewInfo.getNum());
|
|
|
+ sceneViewInfo.setGdMapStatus(dataSetAndControlPoint.getData().getJSONObject("controlPoint").getIntValue("status"));
|
|
|
+ }
|
|
|
+ }catch (Exception e){
|
|
|
+ log.warn("获取激光场景信息出错,num:{}", param.getNum(), e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
private void zipSceneJson(String num, SceneViewInfo sceneViewInfo) throws Exception{
|
|
|
//访问密码置0
|
|
|
SceneEditControlsVO controls = sceneViewInfo.getControls();
|