|
@@ -319,7 +319,7 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
|
|
|
|
|
|
if (cameraType == 14) {
|
|
|
//计算成功 激光转台相机 同步 请求
|
|
|
- fdkkLaserService.syncBuildResult(scenePlus.getNum(), scenePlusExt.getDataSource(),scenePlus.getCreateTime());
|
|
|
+ fdkkLaserService.syncBuildResult(scenePlus.getNum(), scenePlusExt.getDataSource(),scenePlus.getCreateTime(), scenePlusExt.getShootCount());
|
|
|
sceneEditControlsService.update(new LambdaUpdateWrapper<SceneEditControls>().set(SceneEditControls::getShowMap,0)
|
|
|
.eq(SceneEditControls::getEditInfoId,sceneEditInfo.getId()));
|
|
|
sceneEditControls.setShowMap(0);
|
|
@@ -847,9 +847,30 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
|
|
|
scenePlusExt.setSceneKind(sceneKind);
|
|
|
// scenePlusExt.setModelKind(modelKind);
|
|
|
|
|
|
+ //统计点位数量
|
|
|
+ scenePlusExt.setShootCount(this.getShootCount(scenePlusExt));
|
|
|
+
|
|
|
scenePlusExtService.updateById(scenePlusExt);
|
|
|
}
|
|
|
|
|
|
+ private Integer getShootCount(ScenePlusExt scenePlusExt){
|
|
|
+ String homePath = SceneUtil.getHomePath(scenePlusExt.getDataSource());
|
|
|
+ if(scenePlusExt.getLocation() == 5 || scenePlusExt.getLocation() == 6){
|
|
|
+ String slamDataStr = fYunFileService.getFileContent(homePath.concat("slam_data.json"));
|
|
|
+ JSONObject slamDataObj = JSON.parseObject(slamDataStr);
|
|
|
+ JSONArray viewsInfo = slamDataObj.getJSONArray("views_info");
|
|
|
+ if(CollUtil.isEmpty(viewsInfo)){
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+ return viewsInfo.stream().mapToInt(info -> {
|
|
|
+ return ((JSONArray) info).size();
|
|
|
+ }).sum();
|
|
|
+ }
|
|
|
+
|
|
|
+ JSONObject dataFdageObj = JSON.parseObject(fYunFileService.getFileContent(homePath.concat("data.fdage")));
|
|
|
+ return dataFdageObj.getJSONArray("points").size();
|
|
|
+ }
|
|
|
+
|
|
|
private int getPayStatus(Long cameraId, Long space){
|
|
|
//更新相机使用用量
|
|
|
CameraDetail cameraDetail = cameraDetailService.updateCameraDetailByCameraIdAndSpace(cameraId, space);
|