|
|
@@ -35,6 +35,7 @@ import com.fdkankan.scene.vo.BaseSceneParamVO;
|
|
|
import com.fdkankan.scene.vo.DeleteFileParamVO;
|
|
|
import com.fdkankan.scene.vo.DeleteSidListParamVO;
|
|
|
import com.fdkankan.web.response.ResultData;
|
|
|
+import org.apache.velocity.runtime.directive.contrib.For;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
@@ -235,7 +236,16 @@ public class SceneDrawServiceImpl implements ISceneDrawService {
|
|
|
sortList.addAll(drawList);
|
|
|
}
|
|
|
|
|
|
- List<JSONObject> shapesReps = shapesHttpClient.shapesSegList(fdServiceHost, ListSegParamDTO.builder().num(num).shapeType(ShapeType.SEG_PANO.getCode()).build(), new CommonSuccessCallback(), new CommonErrorCallback()).getData();
|
|
|
+ String visionTxtStr = fYunFileService.getFileContent(String.format(UploadFilePath.IMG_VIEW_PATH, num) + "vision.txt");
|
|
|
+ JSONObject visionTxt = JSON.parseObject(visionTxtStr);
|
|
|
+ JSONArray sweepLocations = visionTxt.getJSONArray("sweepLocations");
|
|
|
+ Set<String> imagePaths = sweepLocations.stream().map(v -> {
|
|
|
+ JSONObject sl = (JSONObject) v;
|
|
|
+ return sl.getInteger("id") + ".jpg";
|
|
|
+ }).collect(Collectors.toSet());
|
|
|
+ List<JSONObject> shapesReps = shapesHttpClient.shapesSegList(fdServiceHost,
|
|
|
+ ListSegParamDTO.builder().num(num).shapeType(ShapeType.SEG_PANO.getCode()).imagePaths(imagePaths).build(),
|
|
|
+ new CommonSuccessCallback(), new CommonErrorCallback()).getData();
|
|
|
if(CollUtil.isNotEmpty(shapesReps)){
|
|
|
List<TagBean> shapeList = shapesReps.stream().map(v -> {
|
|
|
TagBean tagBean = new TagBean();
|