dengsixing 8 months ago
parent
commit
aff2c2be38

+ 5 - 0
src/main/java/com/fdkankan/contro/mq/service/impl/BuildReverseE57SceneServiceImpl.java

@@ -190,6 +190,11 @@ public class BuildReverseE57SceneServiceImpl implements IBuildSceneService {
             //如果相机容量不足,需要把场景的paystatus改为容量不足状态
             //如果相机容量不足,需要把场景的paystatus改为容量不足状态
             scenePlusExt.setOrigSpace(FileUtil.size(new File(path.concat(File.separator).concat("capture"))));
             scenePlusExt.setOrigSpace(FileUtil.size(new File(path.concat(File.separator).concat("capture"))));
 
 
+            String visionTxt = FileUtil.readUtf8String(path + "/results/vision.txt");
+            JSONObject visionObj = JSON.parseObject(visionTxt);
+            JSONArray sweepLocations = visionObj.getJSONArray("sweepLocations");
+            scenePlusExt.setShootCount(sweepLocations.size());
+
             if (cameraType == 14) {
             if (cameraType == 14) {
                 //计算成功  激光转台相机 同步 请求
                 //计算成功  激光转台相机 同步 请求
                 fdkkLaserService.syncBuildResult4E57(path);
                 fdkkLaserService.syncBuildResult4E57(path);