Browse Source

项目配置

caiaf 3 years ago
parent
commit
86e1187ae1

+ 2 - 0
revit-algorithm/src/main/kotlin/cn/sagacloud/server/algorithm/models/modelFile/TaskEntity.kt

@@ -42,4 +42,6 @@ class TaskEntity {
 
     @JSONField(name = "DownloadFinishTime")
     var downloadFinishTime : Date? = null
+
+
 }

+ 13 - 0
revit-algorithm/src/main/kotlin/cn/sagacloud/server/algorithm/services/modelCheck/TaskService.kt

@@ -142,6 +142,19 @@ class TaskService {
             task.name = modelFile.modelName
             task.param = ""
             task.projectId = modelFile.projectId
+            pconfig = projectService.select(SFilter.eq("id",modelFile.projectId!!)).entity()
+            if(pconfig != null){
+                val configJSON = pconfig!!.configJson!!
+                task.floorServerUrl = configJSON.floorServerUrl
+                task.useablePhaseName = configJSON.useablePhaseName
+                task.sagaSign = configJSON.sagaSign
+                task.checkItems = configJSON.checkItems
+                task.facilityParameters = configJSON.facilityParameters
+                task.spaceParameters = configJSON.spaceParameters
+                task.roomParameters = configJSON.roomParameters
+                task.mEPCurveParameters = configJSON.mEPCurveParameters
+                task.equipComponentCode = configJSON.equipComponentCode
+            }
             if(request.content == null)
                 request.content = ArrayList()
             request.content!!.add(task)