caiaf hace 3 años
padre
commit
1f43510a21

+ 9 - 2
revit-algorithm/src/main/kotlin/cn/sagacloud/server/algorithm/services/json/JSONAnalyzerService.kt

@@ -379,11 +379,18 @@ open class JSONAnalyzerService {
      * 判断需要转换的项目
      */
 
+    /**
+     * 判断需要转换的项目
+     */
+
     fun checkProject(projectId: String?): Boolean {
         if (projectId.isNullOrEmpty()) {
-            return false;
+            return false
         }
-        return dataService.projectService.select(SFilter.eq("id", projectId)).entity() == null;
+        val projectConfig = dataService.projectService.select(SFilter.eq("id", projectId)).entity()
+        return if(projectConfig == null){
+            false
+        }else projectConfig.type == "wanda"
     }
 
     /**