|
@@ -325,7 +325,7 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
|
|
|
|
|
|
if (cameraType == 14) {
|
|
|
//计算成功 激光转台相机 同步 请求
|
|
|
- fdkkLaserService.syncBuildResult(scenePlus.getNum(), path, scenePlus.getCreateTime(), Calendar.getInstance().getTime(), scenePlusExt.getShootCount());
|
|
|
+ fdkkLaserService.syncBuildResult(scenePlus.getNum(), path, scenePlus.getCreateTime(), Calendar.getInstance().getTime(), scenePlusExt);
|
|
|
sceneEditControlsService.update(new LambdaUpdateWrapper<SceneEditControls>().set(SceneEditControls::getShowMap,0)
|
|
|
.eq(SceneEditControls::getEditInfoId,sceneEditInfo.getId()));
|
|
|
sceneEditControls.setShowMap(0);
|
|
@@ -806,13 +806,21 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
|
|
|
// scenePlusExt.setModelKind(modelKind);
|
|
|
|
|
|
//统计点位数量
|
|
|
- scenePlusExt.setShootCount(this.getShootCount(scenePlusExt));
|
|
|
+ Map<String, Integer> result = this.getShootCount(scenePlusExt);
|
|
|
+ Integer shootCount = result.get("shootCount");
|
|
|
+ Integer mixture = result.get("mixture");
|
|
|
+ scenePlusExt.setShootCount(shootCount);
|
|
|
+ scenePlusExt.setMixture(mixture);
|
|
|
|
|
|
scenePlusExtService.updateById(scenePlusExt);
|
|
|
}
|
|
|
|
|
|
- private Integer getShootCount(ScenePlusExt scenePlusExt){
|
|
|
- Integer shootCount = null;
|
|
|
+ private Map<String, Integer> getShootCount(ScenePlusExt scenePlusExt){
|
|
|
+
|
|
|
+ Map<String, Integer> result = new HashMap<>();
|
|
|
+
|
|
|
+ Integer shootCount = 0;
|
|
|
+ Integer mixture = Objects.isNull(scenePlusExt.getMixture()) ? 0 : scenePlusExt.getMixture();
|
|
|
String homePath = SceneUtil.getHomePath(scenePlusExt.getDataSource());
|
|
|
JSONObject dataFdageObj = JSON.parseObject(fYunFileService.getFileContent(homePath.concat("data.fdage")));
|
|
|
if(Objects.nonNull(dataFdageObj)){
|
|
@@ -822,21 +830,27 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
|
|
|
}
|
|
|
}
|
|
|
if(Objects.nonNull(shootCount) && shootCount > 0){
|
|
|
- return shootCount;
|
|
|
- }
|
|
|
-
|
|
|
- String slamDataStr = fYunFileService.getFileContent(homePath.concat("slam_data.json"));
|
|
|
- JSONObject slamDataObj = JSON.parseObject(slamDataStr);
|
|
|
- if(Objects.nonNull(slamDataObj)){
|
|
|
- JSONArray viewsInfo = slamDataObj.getJSONArray("views_info");
|
|
|
- if(CollUtil.isNotEmpty(viewsInfo)){
|
|
|
- shootCount = viewsInfo.stream().mapToInt(info -> {
|
|
|
- return ((JSONObject) info).getJSONArray("list_pose").size();
|
|
|
- }).sum();
|
|
|
+ if(scenePlusExt.getLocation() == 6){
|
|
|
+ mixture = CommonStatus.YES.code().intValue();
|
|
|
}
|
|
|
+ }else{
|
|
|
+ String slamDataStr = fYunFileService.getFileContent(homePath.concat("slam_data.json"));
|
|
|
+ JSONObject slamDataObj = JSON.parseObject(slamDataStr);
|
|
|
+ if(Objects.nonNull(slamDataObj)){
|
|
|
+ JSONArray viewsInfo = slamDataObj.getJSONArray("views_info");
|
|
|
+ if(CollUtil.isNotEmpty(viewsInfo)){
|
|
|
+ shootCount = viewsInfo.stream().mapToInt(info -> {
|
|
|
+ return ((JSONObject) info).getJSONArray("list_pose").size();
|
|
|
+ }).sum();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ mixture = CommonStatus.NO.code().intValue();
|
|
|
}
|
|
|
|
|
|
- return shootCount;
|
|
|
+ result.put("shootCount", shootCount);
|
|
|
+ result.put("mixture", mixture);
|
|
|
+
|
|
|
+ return result;
|
|
|
}
|
|
|
|
|
|
public static void main(String[] args) {
|