Parcourir la source

上传场景计算默认设置为非公开

dsx il y a 1 an
Parent
commit
074a02db41

+ 7 - 7
src/main/java/com/fdkankan/contro/service/impl/SceneFileBuildServiceImpl.java

@@ -1576,13 +1576,13 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
                 jsonObject.getInteger("scenetype"), jsonObject.getString("gps"), rebuild,
                 jsonObject.getInteger("resolution"), firmwareVersion.toString(), sceneUrl, buildType, cameraDetail.getCooperationUser());
 
-//        //江门公安项目场景浏览默认是非公开
-//        JySceneAuth jySceneAuth = jySceneAuthService.getByNum(sceneNum);
-//        if(Objects.isNull(jySceneAuth)){
-//            jySceneAuth.setAuthType(0);
-//            jySceneAuth.setNum(sceneNum);
-//            jySceneAuthService.save(jySceneAuth);
-//        }
+        //江门公安项目场景浏览默认是非公开
+        JySceneAuth jySceneAuth = jySceneAuthService.getByNum(sceneNum);
+        if(Objects.isNull(jySceneAuth)){
+            jySceneAuth.setAuthType(0);
+            jySceneAuth.setNum(sceneNum);
+            jySceneAuthService.save(jySceneAuth);
+        }
 
         if (Objects.nonNull(scenePlusVO)) {
             JSONObject statusJson = new JSONObject();