瀏覽代碼

Merge remote-tracking branch 'origin/master'

# Conflicts:
#	revit-algorithm/src/main/kotlin/com/persagy/revit/Swagger2Config.kt
#	revit-algorithm/src/main/resources-dev/application.yml
zhangweixin 4 年之前
父節點
當前提交
f3e6213e54
共有 100 個文件被更改,包括 1183 次插入645 次删除
  1. 8 2
      revit-algorithm/build.gradle
  2. 21 21
      revit-algorithm/src/main/kotlin/com/persagy/revit/AlgorithmApp.kt
  3. 155 0
      revit-algorithm/src/main/kotlin/com/persagy/revit/Swagger3Config.kt
  4. 22 1
      revit-algorithm/src/main/kotlin/com/persagy/revit/WebMvcConfg.kt
  5. 1 1
      revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/BackMainThread.kt
  6. 2 2
      revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/model/BaseResponse.kt
  7. 1 1
      revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/model/CreateRequest.kt
  8. 1 1
      revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/model/CreateResponse.kt
  9. 4 4
      revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/model/DCBuilding.kt
  10. 1 1
      revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/model/DCComponent.kt
  11. 1 1
      revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/model/DCDataBase.kt
  12. 16 14
      revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/model/DCEquipment.kt
  13. 7 7
      revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/model/DCFloor.kt
  14. 11 11
      revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/model/DCISpace.kt
  15. 2 2
      revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/model/DCProperty.kt
  16. 4 4
      revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/model/QueryRequest.kt
  17. 6 6
      revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/model/QueryResponse.kt
  18. 1 0
      revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/model/UpdateRequest.kt
  19. 0 1
      revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/state/CheckErrorState_11.kt
  20. 0 1
      revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/state/CheckPassedState_2.kt
  21. 0 1
      revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/state/DataCheckState_10.kt
  22. 0 1
      revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/state/DataExportState_20.kt
  23. 0 1
      revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/state/ExportErrorState_21.kt
  24. 0 1
      revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/state/ExportPassedState_3.kt
  25. 0 1
      revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/state/FinishState_4.kt
  26. 1 1
      revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/state/ModelState.kt
  27. 0 1
      revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/state/SyncDataErrorState_31.kt
  28. 0 1
      revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/state/UploadState_0.kt
  29. 0 1
      revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/state/UploadedState_1.kt
  30. 5 1
      revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/sync/SyncEquipment.kt
  31. 4 4
      revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/LogController.kt
  32. 8 8
      revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/log/SyncLogController.kt
  33. 4 4
      revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/BaseGraphController.kt
  34. 8 8
      revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/BeaconController.kt
  35. 8 8
      revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/ColumnController.kt
  36. 8 8
      revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/ConnectorController.kt
  37. 8 8
      revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/DoorController.kt
  38. 8 8
      revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/DuctController.kt
  39. 8 8
      revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/EquipPartController.kt
  40. 8 8
      revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/EquipmentController.kt
  41. 8 8
      revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/GridController.kt
  42. 8 8
      revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/LevelController.kt
  43. 8 8
      revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/OtherController.kt
  44. 8 8
      revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/PipeController.kt
  45. 116 0
      revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/RoomController.kt
  46. 8 8
      revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/SpaceController.kt
  47. 8 8
      revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/VirtualWallController.kt
  48. 8 8
      revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/WallController.kt
  49. 8 8
      revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/WindowController.kt
  50. 11 11
      revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelFile/FloorModelController.kt
  51. 16 16
      revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelFile/ModelFileController.kt
  52. 9 9
      revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelFile/ModelFileFolderController.kt
  53. 5 5
      revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelFile/ModelMonitorController.kt
  54. 5 5
      revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelFile/ReportController.kt
  55. 64 0
      revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelFile/TestController.kt
  56. 5 5
      revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelFile/UploadController.kt
  57. 6 6
      revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/relation/CheckController.kt
  58. 4 4
      revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/relation/RelationCheckController.kt
  59. 3 3
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/baseGraph/BGBaseComponent.kt
  60. 3 3
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/baseGraph/BGBaseEntity.kt
  61. 9 10
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/baseGraph/BGColumn.kt
  62. 12 13
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/baseGraph/BGDoor.kt
  63. 14 15
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/baseGraph/BGSpace.kt
  64. 8 9
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/baseGraph/BGVirtualWall.kt
  65. 10 11
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/baseGraph/BGWall.kt
  66. 10 11
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/baseGraph/BGWindow.kt
  67. 3 3
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/baseGraph/BGWindowDoorBase.kt
  68. 3 4
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/dataCheck/GridCheckResult.kt
  69. 5 6
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/dataCheck/LevelCheckResult.kt
  70. 7 7
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/BaseComponent.kt
  71. 2 2
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/Beacon.kt
  72. 13 14
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/BoundarySegment.kt
  73. 11 12
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/Column.kt
  74. 15 16
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/Connector.kt
  75. 37 0
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/DictComp.kt
  76. 14 15
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/Door.kt
  77. 12 13
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/Duct.kt
  78. 19 20
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/EquipPart.kt
  79. 31 17
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/Equipment.kt
  80. 7 8
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/Grid.kt
  81. 53 0
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/InfoPointComp.kt
  82. 9 10
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/JoinObject.kt
  83. 4 5
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/Level.kt
  84. 9 10
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/Other.kt
  85. 9 10
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/Pipe.kt
  86. 2 2
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/Plan.kt
  87. 29 0
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/Project.kt
  88. 68 0
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/Room.kt
  89. 16 17
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/Space.kt
  90. 8 9
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/VirtualWall.kt
  91. 10 11
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/Wall.kt
  92. 2 2
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/WallColumnLog.kt
  93. 12 13
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/Window.kt
  94. 3 3
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/WindowDoorBase.kt
  95. 4 0
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/jsonAnalyzer/AllComponents.kt
  96. 1 1
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/jsonAnalyzer/Parameter.kt
  97. 15 16
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/log/SyncLogEntity.kt
  98. 11 12
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/modelFile/FloorModel.kt
  99. 23 24
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/modelFile/FloorModelView.kt
  100. 0 0
      revit-algorithm/src/main/kotlin/com/persagy/revit/models/modelFile/ModelFile.kt

+ 8 - 2
revit-algorithm/build.gradle

@@ -73,8 +73,14 @@ dependencies {
     ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
     // RESTful API 文档生成工具
     // https://mvnrepository.com/artifact/io.springfox/springfox-swagger-ui
-    compile group: "io.springfox", name: "springfox-swagger-ui", version: SWAGGER_VERSION
-    compile group: "io.springfox", name: "springfox-swagger2", version: SWAGGER_VERSION
+//    compile group: "io.springfox", name: "springfox-swagger-ui", version: SWAGGER_VERSION
+//    compile group: "io.springfox", name: "springfox-swagger2", version: SWAGGER_VERSION
+
+    // RESTful API 文档生成工具
+    // https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-ui
+    compile group: 'org.springdoc', name: 'springdoc-openapi-ui', version: SPRING_DOC_VERSION
+    // https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-common
+    compile group: "org.springdoc", name: "springdoc-openapi-common", version: SPRING_DOC_VERSION
 
     ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
     // Sybotan依赖

+ 21 - 21
revit-algorithm/src/main/kotlin/com/persagy/revit/AlgorithmApp.kt

@@ -52,27 +52,27 @@ open class AlgorithmApp : SpringBootServletInitializer() {
      *
      * @return  HttpMessageConverters
      */
-    @Bean
-    @Suppress("MoveLambdaOutsideParentheses")
-    open fun jsonHttpMessageConverters(): SJsonHttpMessageConverter {
-//        ParserConfig.getGlobalInstance().isAutoTypeSupport = true
-        val fastConverter = SJsonHttpMessageConverter()
-        fastConverter.propertyNamingStrategy = PropertyNamingStrategy.PascalCase
-        return fastConverter
-    } // Function fastJsonHttpMessageConverters()
-    /**
-     * 配置FastJson
-     *
-     * @return  HttpMessageConverters
-     */
-    @Bean
-    @Suppress("MoveLambdaOutsideParentheses")
-    open fun jsonMessageConverterConfig(): SerializeConfig {
-//        ParserConfig.getGlobalInstance().isAutoTypeSupport = true
-        val config = SerializeConfig()
-        config.propertyNamingStrategy = PropertyNamingStrategy.PascalCase
-        return config
-    } // Function fastJsonHttpMessageConverters()
+//    @Bean
+//    @Suppress("MoveLambdaOutsideParentheses")
+//    open fun jsonHttpMessageConverters(): SJsonHttpMessageConverter {
+////        ParserConfig.getGlobalInstance().isAutoTypeSupport = true
+//        val fastConverter = SJsonHttpMessageConverter()
+//        fastConverter.propertyNamingStrategy = PropertyNamingStrategy.PascalCase
+//        return fastConverter
+//    } // Function fastJsonHttpMessageConverters()
+//    /**
+//     * 配置FastJson
+//     *
+//     * @return  HttpMessageConverters
+//     */
+//    @Bean
+//    @Suppress("MoveLambdaOutsideParentheses")
+//    open fun jsonMessageConverterConfig(): SerializeConfig {
+////        ParserConfig.getGlobalInstance().isAutoTypeSupport = true
+//        val config = SerializeConfig()
+//        config.propertyNamingStrategy = PropertyNamingStrategy.PascalCase
+//        return config
+//    } // Function fastJsonHttpMessageConverters()
 
     /**
      * 配置应用

+ 155 - 0
revit-algorithm/src/main/kotlin/com/persagy/revit/Swagger3Config.kt

@@ -0,0 +1,155 @@
+/*
+ * *********************************************************************************************************************
+ *
+ *          !!
+ *        .F88X
+ *        X8888Y
+ *      .}888888N;
+ *        i888888N;        .:!              .I$WI:
+ *          R888888I      .'N88~            i8}+8Y&8"l8i$8>8W~'>W8}8]KW+8IIN"8&
+ *          .R888888I    .;N8888~          .X8'  "8I.!,/8"  !%NY8`"8I8~~8>,88I
+ *            +888888N;  .8888888Y                                  "&&8Y.}8,
+ *            ./888888N;  .R888888Y        .'}~    .>}'.`+>  i}!    "i'  +/'  .'i~  !11,.:">,  .~]!  .i}i
+ *              ~888888%:  .I888888l      .]88~`1/iY88Ii+1'.R$8$8]"888888888>  Y8$  W8E  X8E  W8888'188Il}Y88$*
+ *              18888888    E8888881    .]W%8$`R8X'&8%++N8i,8N%N8+l8%`  .}8N:.R$RE%N88N%N$K$R  188,FE$8%~Y88I
+ *            .E888888I  .i8888888'      .:$8I;88+`E8R:/8N,.>881.`$8E/1/]N8X.Y8N`"KF&&FK!'88*."88K./$88%RN888+~
+ *            8888888I  .,N888888~        ~88i"8W,!N8*.I88.}888%F,i$88"F88"  888:E8X.>88!i88>`888*.}Fl1]*}1YKi'
+ *          i888888N'      I888Y          ]88;/EX*IFKFK88X  K8R  .l8W  88Y  ~88}'88E&%8W.X8N``]88!.$8K  .:W8I
+ *        .i888888N;        I8Y          .&8$  .X88!  i881.:%888>I88  ;88]  +88+.';;;;:.Y88X  18N.,88l  .+88/
+ *      .:R888888I
+ *      .&888888I                                          Copyright (c) 2009-2020.  博锐尚格科技股份有限公司
+ *        ~8888'
+ *        .!88~                                                                     All rights reserved.
+ *
+ * *********************************************************************************************************************
+ */
+
+package com.persagy.revit
+
+import io.swagger.v3.oas.annotations.enums.ParameterIn
+import io.swagger.v3.oas.models.Components
+import io.swagger.v3.oas.models.OpenAPI
+import io.swagger.v3.oas.models.Operation
+import io.swagger.v3.oas.models.info.Contact
+import io.swagger.v3.oas.models.info.Info
+import io.swagger.v3.oas.models.info.License
+import io.swagger.v3.oas.models.media.StringSchema
+import io.swagger.v3.oas.models.parameters.Parameter
+import io.swagger.v3.oas.models.security.SecurityScheme
+import org.springdoc.core.GroupedOpenApi
+import org.springdoc.core.customizers.OperationCustomizer
+import org.springframework.context.annotation.Bean
+import org.springframework.context.annotation.Configuration
+import org.springframework.web.method.HandlerMethod
+
+/**
+ * RESTful API文档生成器Swagger2配置
+ *
+ * @author  PLX
+ */
+@Configuration
+open class Swagger3Config {
+
+    /** 标题 */
+    private val title = "模型服务 API"
+    /** API 版本号 */
+    private val version = "1.0"
+
+    val operationCustomizer = GlobalHeaderOperationCustomizer()
+
+    /**
+     * API 信息
+     */
+    @Bean
+    open fun openApi(): OpenAPI {
+        val contact = Contact().name("庞利祥").email("sybotan@126.com")
+        return OpenAPI()
+            .components(
+                Components()
+                .addSecuritySchemes("basicScheme", SecurityScheme().type(SecurityScheme.Type.HTTP).scheme("basic")))
+            .info(
+                Info()
+                .title(title)
+                .version(version)
+                .termsOfService("http://www.sybotan.com")
+                .contact(contact)
+                .license(
+                    License()
+                    .name("Apache 2.0")
+                    .url("http://www.sybotan.com")))
+    }
+
+
+
+    /**
+     * 默认分组
+     */
+    @Bean
+    open fun defaultApiGroup(): GroupedOpenApi {
+        return GroupedOpenApi.builder()
+            .group("默认")
+            .pathsToMatch("/**")
+            .addOperationCustomizer(operationCustomizer)
+            .build()
+    }
+
+//    /**
+//     * 对象 API 组
+//     */
+//    @Bean
+//    open fun objectApiGroup(): GroupedOpenApi {
+//        return GroupedOpenApi.builder()
+//            .group("对象")
+//            .pathsToMatch("/object/**")
+//            .addOperationCustomizer(operationCustomizer)
+//            .build()
+//    }
+//
+//    /**
+//     * 对象 API 组
+//     */
+//    @Bean
+//    open fun relApiGroup(): GroupedOpenApi {
+//        return GroupedOpenApi.builder()
+//            .group("关系")
+//            .pathsToMatch("/rel/**")
+//            .addOperationCustomizer(operationCustomizer)
+//            .build()
+//    }
+//
+//    /**
+//     * 对象 API 组
+//     */
+//    @Bean
+//    open fun dictApiGroup(): GroupedOpenApi {
+//        return GroupedOpenApi.builder()
+//            .group("字典")
+//            .pathsToMatch("/dict/**")
+//            .addOperationCustomizer(operationCustomizer)
+//            .build()
+//    }
+
+    /**
+     * 全局参数
+     *
+     * @author  庞利祥 <sybotan@126.com>
+     */
+    class GlobalHeaderOperationCustomizer : OperationCustomizer {
+        /**
+         * 接口定义器
+         *
+         * @param   operation       接口
+         * @param   handlerMethod   原接口方法
+         * @return  新定义的接口
+         */
+        override fun customize(operation: Operation, handlerMethod: HandlerMethod): Operation {
+            val projectId = Parameter().`in`(ParameterIn.HEADER.toString())
+                .name("projectId").description("项目 id")
+                .schema(StringSchema()).required(false)
+            operation.addParametersItem(projectId)
+
+            return operation
+        }
+    }
+
+} // Class Swagger2Config

+ 22 - 1
revit-algorithm/src/main/kotlin/com/persagy/revit/WebMvcConfg.kt

@@ -1,8 +1,13 @@
 package com.persagy.revit
 
+import com.alibaba.fastjson.PropertyNamingStrategy
 import com.persagy.service.interceptors.SPageInterceptor
+import com.persagy.service.json.SJsonHttpMessageConverter
 import org.springframework.context.annotation.Configuration
+import org.springframework.http.converter.HttpMessageConverter
+import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter
 import org.springframework.web.servlet.config.annotation.InterceptorRegistry
+import org.springframework.web.servlet.config.annotation.WebMvcConfigurer
 import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
 
 /**
@@ -11,7 +16,7 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
  * @author jxing
  */
 @Configuration
-open class WebMvcConfg: WebMvcConfigurerAdapter() {
+open class WebMvcConfg: WebMvcConfigurer {
 
     /**
      * 设置接口超时时间
@@ -36,4 +41,20 @@ open class WebMvcConfg: WebMvcConfigurerAdapter() {
         registry.addInterceptor(SPageInterceptor()).addPathPatterns("/**")
         super.addInterceptors(registry)
     } // Function addInterceptors()
+
+
+    /**
+     * 配置 json 转换使用 FastJson
+     *
+     * @param   converterList       转换器列表
+     */
+    override fun configureMessageConverters(converterList: MutableList<HttpMessageConverter<*>>) {
+        // 先把JackSon的消息转换器删除.
+        converterList.removeIf { item -> item is MappingJackson2HttpMessageConverter }
+
+        val converter = SJsonHttpMessageConverter()
+        // 设置 Json 序列化,属性首字母小写
+        converter.propertyNamingStrategy = PropertyNamingStrategy.CamelCase
+        converterList.add(converter)
+    }
 } // Class WebMvcConf()

+ 1 - 1
revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/BackMainThread.kt

@@ -1,6 +1,6 @@
 package com.persagy.revit.backstage
 
-import cn.sagacloud.server.algorithm.backstage.state.ModelState
+import com.persagy.revit.backstage.state.ModelState
 import com.persagy.revit.backstage.state.UploadState_0
 import com.persagy.revit.backstage.state.UploadedState_1
 import com.persagy.revit.backstage.state.*

+ 2 - 2
revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/model/BaseResponse.kt

@@ -8,9 +8,9 @@ import com.alibaba.fastjson.annotation.JSONField
  * @author jxing
  */
 open class BaseResponse {
-    @JSONField(name = "Result")
+//    @JSONField(name = "Result")
     var result : String? = null
 
-    @JSONField(name = "Message")
+//    @JSONField(name = "Message")
     var message : String? = null
 }

+ 1 - 1
revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/model/CreateRequest.kt

@@ -8,6 +8,6 @@ import com.alibaba.fastjson.annotation.JSONField
  * @author jxing
  */
 class CreateRequest<T> {
-    @JSONField(name = "Content")
+//    @JSONField(name = "Content")
     var content : ArrayList<T>? = null
 }

+ 1 - 1
revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/model/CreateResponse.kt

@@ -9,6 +9,6 @@ import com.alibaba.fastjson.annotation.JSONField
  */
 class CreateResponse<T> : BaseResponse(){
 
-    @JSONField(name = "EntityList")
+//    @JSONField(name = "EntityList")
     var entityList : ArrayList<T>? = null
 }

+ 4 - 4
revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/model/DCBuilding.kt

@@ -8,18 +8,18 @@ import com.alibaba.fastjson.annotation.JSONField
  * @author jxing
  */
 class DCBuilding {
-    @JSONField(name = "EquipID")
+//    @JSONField(name = "EquipID")
     var id : String? = null
 
     /** 建筑体名称 */
-    @JSONField(name = "BuildName")
+//    @JSONField(name = "BuildName")
     var name: String? = null
 
     /** 建筑本地编码 */
-    @JSONField(name = "BuildLocalID")
+//    @JSONField(name = "BuildLocalID")
     var localId: String? = null
 
     /** 建筑本地名称 */
-    @JSONField(name = "BuildLocalName")
+//    @JSONField(name = "BuildLocalName")
     var localName: String? = null
 }

+ 1 - 1
revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/model/DCComponent.kt

@@ -30,7 +30,7 @@ class DCComponent : DCEquipment(){
 //    var floorId: String? = null
 
     // 所属设备的id, 仅部件使用
-    @JSONField(name = "ParentId")
+    @JSONField(name = "parentId")
     var equipId : String? = null
 
     @JSONField(serialize=false)

+ 1 - 1
revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/model/DCDataBase.kt

@@ -8,6 +8,6 @@ import com.alibaba.fastjson.annotation.JSONField
  * @author jxing
  */
 open class DCDataBase {
-    @JSONField(name = "BIMID")
+//    @JSONField(name = "BIMID")
     var bimId : String? = null
 }

+ 16 - 14
revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/model/DCEquipment.kt

@@ -1,7 +1,5 @@
 package com.persagy.revit.backstage.model
 
-import com.alibaba.fastjson.annotation.JSONField
-
 /**
  *
  *
@@ -12,39 +10,43 @@ open class DCEquipment : DCDataBase() {
 //    @JSONField(name = "BIMID")
 //    var bimId : String? = null
 
-    @JSONField(name = "EquipID")
+//    @JSONField(name = "EquipID")
     var id : String? = null
 
-    @JSONField(name = "BimLocation")
+//    @JSONField(name = "BimLocation")
     var bimLocation : String? = null
 
-    @JSONField(name = "EquipLocalName")
+//    @JSONField(name = "EquipLocalName")
     var localName : String? = null
 
-    @JSONField(name = "EquipLocalID")
+//    @JSONField(name = "EquipLocalID")
     var localId : String? = null
 
-    @JSONField(name = "Category")
+//    @JSONField(name = "Category")
     var category : String? = null
 
-    @JSONField(name = "FloorId")
+//    @JSONField(name = "FloorId")
     var floorId: String? = null
 
-    @JSONField(name = "CADID")
+//    @JSONField(name = "CADID")
     var cadId: String? = null
 
-    @JSONField(name = "ModelId")
+//    @JSONField(name = "ModelId")
     var modelId: String? = null
 
-    @JSONField(name = "BIMFamilyName")
+//    @JSONField(name = "BIMFamilyName")
     var familyName : String? = null
 
-    @JSONField(name = "BIMFamilySymbol")
+//    @JSONField(name = "BIMFamilySymbol")
     var familySymbol : String? = null
 
-    @JSONField(name = "BuildingId")
+//    @JSONField(name = "BuildingId")
     var buildingId: String? = null
 
-    @JSONField(name = "BIMTypeID")
+//    @JSONField(name = "BIMTypeID")
     var bimTypeID: String? = null
+
+    /** 转换后的信息点 */
+//    @JSONField(name = "Infos")
+    var infos: Map<String,String>? = null
 }

+ 7 - 7
revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/model/DCFloor.kt

@@ -10,29 +10,29 @@ import com.alibaba.fastjson.annotation.JSONField
  */
 class DCFloor {
 
-    @JSONField(name = "FloorID")
+//    @JSONField(name = "floorID")
 //    @JSONField(name = "Id")
     var id : String? = null
 
     // 更新FloorMap 为 文件服务器上的key
-    @JSONField(name = "StructureInfo")
+    @JSONField(name = "infos")
     var structureInfo : HashMap<String, String>? = null
 
-    @JSONField(name = "ModelId")
+    @JSONField(name = "modelId")
     var modelId : String? = null
 
-    @JSONField(name = "Outline")
+    @JSONField(name = "outline")
     var outline : ArrayList<Point>? = null
 
     /** 楼层名称 */
-    @JSONField(name = "FloorName")
+//    @JSONField(name = "floorName")
     var name: String? = null
 
     /** 楼层本地名称 */
-    @JSONField(name = "FloorLocalName")
+//    @JSONField(name = "floorLocalName")
     var localName: String? = null
 
     /** 建筑id */
-    @JSONField(name = "BuildID")
+    @JSONField(name = "buildingId")
     var buildId: String? = null
 }

+ 11 - 11
revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/model/DCISpace.kt

@@ -13,37 +13,37 @@ class DCISpace : DCDataBase(){
 //    @JSONField(name = "BIMID")
 //    var bimId : String? = null
 
-    @JSONField(name = "RoomID")
+//    @JSONField(name = "roomID")
     var id : String? = null
 
-    @JSONField(name = "BimLocation")
+//    @JSONField(name = "BimLocation")
     var bimLocation : String? = null
 
-    @JSONField(name = "RoomLocalName")
+//    @JSONField(name = "RoomLocalName")
     var localName : String? = null
 
-    @JSONField(name = "FloorId")
+//    @JSONField(name = "FloorId")
     var floorId: String? = null
 
-    @JSONField(name = "Height")
+//    @JSONField(name = "Height")
     var height: Double? = null
 
-    @JSONField(name = "Outline")
+//    @JSONField(name = "Outline")
     var outline: ArrayList<ArrayList<Point>>? = null
 
-    @JSONField(name = "Outline2")
+//    @JSONField(name = "Outline2")
     var outerOutline: ArrayList<ArrayList<Point>>? = null
 
-    @JSONField(name = "CADID")
+//    @JSONField(name = "CADID")
     var cadId: String? = null
 
-    @JSONField(name = "ModelId")
+//    @JSONField(name = "ModelId")
     var modelId: String? = null
 
     /** 建筑id */
-    @JSONField(name = "BuildingId")
+//    @JSONField(name = "BuildingId")
     var buildingId: String? = null
 
-    @JSONField(name = "CustomParam")
+//    @JSONField(name = "CustomParam")
     var customParam : HashMap<String, Any?>? = null
 }

+ 2 - 2
revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/model/DCProperty.kt

@@ -10,10 +10,10 @@ import com.alibaba.fastjson.annotation.JSONField
 class DCProperty {
 
     /** 资产id */
-    @JSONField(name = "EquipID")
+//    @JSONField(name = "equipID")
     var id: String? = null
 
     /** 资产关联设备id */
-    @JSONField(name = "EquipmentId")
+//    @JSONField(name = "equipmentId")
     var equipId: String? = null
 }

+ 4 - 4
revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/model/QueryRequest.kt

@@ -9,15 +9,15 @@ import com.alibaba.fastjson.annotation.JSONField
  */
 class QueryRequest {
 
-    @JSONField(name = "Filters")
+//    @JSONField(name = "Filters")
     var filters : String? = null
 
-    @JSONField(name = "PageNumber")
+//    @JSONField(name = "PageNumber")
     var pageNumber : Int = 1
 
-    @JSONField(name = "PageSize")
+//    @JSONField(name = "PageSize")
     var pageSize : Int = 60
 
-    @JSONField(name = "Orders")
+//    @JSONField(name = "Orders")
     var orders : String? = null
 }

+ 6 - 6
revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/model/QueryResponse.kt

@@ -9,21 +9,21 @@ import com.alibaba.fastjson.annotation.JSONField
  */
 class QueryResponse<T> {
 
-    @JSONField(name = "Content")
+//    @JSONField(name = "Content")
     var content : ArrayList<T>? = null
 
-    @JSONField(name = "Result")
+//    @JSONField(name = "Result")
     var result : String? = null
 
-    @JSONField(name = "Message")
+//    @JSONField(name = "Message")
     var message : String? = null
 
-    @JSONField(name = "Total")
+//    @JSONField(name = "Total")
     var total : Int = 0
 
-    @JSONField(name = "PageNumber")
+//    @JSONField(name = "PageNumber")
     var pageNumber : Int = 0
 
-    @JSONField(name = "PageSize")
+//    @JSONField(name = "PageSize")
     var pageSize : Int = 0
 }

+ 1 - 0
revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/model/UpdateRequest.kt

@@ -8,5 +8,6 @@ import com.alibaba.fastjson.annotation.JSONField
  * @author jxing
  */
 class UpdateRequest<T> {
+//    @JSONField(name = "Content")
     var content : ArrayList<T>? = null
 }

+ 0 - 1
revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/state/CheckErrorState_11.kt

@@ -1,6 +1,5 @@
 package com.persagy.revit.backstage.state
 
-import cn.sagacloud.server.algorithm.backstage.state.ModelState
 import com.persagy.database.SFilter
 import com.persagy.revit.models.config.MyProperties
 import com.persagy.revit.models.modelFile.ModelFile

+ 0 - 1
revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/state/CheckPassedState_2.kt

@@ -1,6 +1,5 @@
 package com.persagy.revit.backstage.state
 
-import cn.sagacloud.server.algorithm.backstage.state.ModelState
 import com.persagy.database.SFilter
 import com.persagy.revit.backstage.request.task.TaskCmd
 import com.persagy.revit.models.modelFile.ModelFile

+ 0 - 1
revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/state/DataCheckState_10.kt

@@ -1,6 +1,5 @@
 package com.persagy.revit.backstage.state
 
-import cn.sagacloud.server.algorithm.backstage.state.ModelState
 import com.alibaba.fastjson.JSON
 import com.alibaba.fastjson.JSONObject
 import com.persagy.database.SFilter

+ 0 - 1
revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/state/DataExportState_20.kt

@@ -1,6 +1,5 @@
 package com.persagy.revit.backstage.state
 
-import cn.sagacloud.server.algorithm.backstage.state.ModelState
 import com.alibaba.fastjson.JSON
 import com.alibaba.fastjson.JSONObject
 import com.persagy.database.SFilter

+ 0 - 1
revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/state/ExportErrorState_21.kt

@@ -1,6 +1,5 @@
 package com.persagy.revit.backstage.state
 
-import cn.sagacloud.server.algorithm.backstage.state.ModelState
 import com.persagy.database.SFilter
 import com.persagy.revit.models.config.MyProperties
 import com.persagy.revit.models.modelFile.ModelFile

+ 0 - 1
revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/state/ExportPassedState_3.kt

@@ -1,6 +1,5 @@
 package com.persagy.revit.backstage.state
 
-import cn.sagacloud.server.algorithm.backstage.state.ModelState
 import com.persagy.database.SFilter
 import com.persagy.revit.backstage.sync.SyncFloor
 import com.persagy.revit.backstage.sync.SyncUtil

+ 0 - 1
revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/state/FinishState_4.kt

@@ -1,6 +1,5 @@
 package com.persagy.revit.backstage.state
 
-import cn.sagacloud.server.algorithm.backstage.state.ModelState
 import com.persagy.revit.models.modelFile.ModelFile
 import com.persagy.revit.models.modelFile.StatusInfo
 import com.persagy.revit.services.BaseDataService

+ 1 - 1
revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/state/ModelState.kt

@@ -1,4 +1,4 @@
-package cn.sagacloud.server.algorithm.backstage.state
+package com.persagy.revit.backstage.state
 
 import org.springframework.stereotype.Component
 

+ 0 - 1
revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/state/SyncDataErrorState_31.kt

@@ -1,6 +1,5 @@
 package com.persagy.revit.backstage.state
 
-import cn.sagacloud.server.algorithm.backstage.state.ModelState
 import com.persagy.database.SFilter
 import com.persagy.revit.models.modelFile.ModelFile
 import com.persagy.revit.services.BaseDataService

+ 0 - 1
revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/state/UploadState_0.kt

@@ -1,6 +1,5 @@
 package com.persagy.revit.backstage.state
 
-import cn.sagacloud.server.algorithm.backstage.state.ModelState
 import com.persagy.database.SFilter
 import com.persagy.revit.models.config.MyProperties
 import com.persagy.revit.models.modelFile.ModelFile

+ 0 - 1
revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/state/UploadedState_1.kt

@@ -1,6 +1,5 @@
 package com.persagy.revit.backstage.state
 
-import cn.sagacloud.server.algorithm.backstage.state.ModelState
 import com.persagy.database.SFilter
 import com.persagy.revit.backstage.request.task.TaskCmd
 import com.persagy.revit.models.modelFile.ModelFile

+ 5 - 1
revit-algorithm/src/main/kotlin/com/persagy/revit/backstage/sync/SyncEquipment.kt

@@ -1,12 +1,12 @@
 package com.persagy.revit.backstage.sync
 
 import cn.sagacloud.server.algorithm.backstage.sync.SyncObject
-import com.persagy.revit.models.entities.Equipment
 import com.persagy.revit.models.jsonAnalyzer.Point
 import com.persagy.revit.services.BaseDataService
 import com.persagy.database.SFilter
 import com.persagy.revit.backstage.model.DCEquipment
 import com.persagy.revit.backstage.model.DCFloor
+import com.persagy.revit.models.entities.Equipment
 import com.persagy.revit.models.modelFile.FloorModel
 import com.persagy.revit.services.CommonService
 import com.persagy.revit.services.datacenter.DataCenterService
@@ -160,6 +160,8 @@ class SyncEquipment : SyncObject {
             dcEquip.familySymbol = it.value.familySymbol
             dcEquip.modelId = it.value.modelId
             dcEquip.bimTypeID = it.value.bimTypeID
+            //添加信息点
+            dcEquip.infos = it.value.infos
             generateCADID(dcEquip)
             val point = it.value.location?.points?.get(0)
             addLocationAndFloorId(point, dcEquip, sb)
@@ -206,6 +208,8 @@ class SyncEquipment : SyncObject {
         dcEquip.familySymbol = equip.familySymbol
         dcEquip.modelId = equip.modelId
         dcEquip.bimTypeID = equip.bimTypeID
+        //更新信息点
+        dcEquip.infos = equip.infos
         updateList.add(dcEquip)
         if(equip.propertyId != null && dcEquip.id != null)
             propertyMap[equip.propertyId!!] = dcEquip.id!!

+ 4 - 4
revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/LogController.kt

@@ -7,8 +7,8 @@ import com.persagy.revit.models.excel.nonBlockingReport.EquipNameCodeReport
 import com.persagy.revit.services.BaseDataService
 import com.persagy.revit.services.excel.ExcelService
 import com.persagy.service.utils.SSpringContextUtil
-import io.swagger.annotations.Api
-import io.swagger.annotations.ApiOperation
+import io.swagger.v3.oas.annotations.tags.Tag
+import io.swagger.v3.oas.annotations.Operation
 import org.slf4j.LoggerFactory
 import org.springframework.web.bind.annotation.PostMapping
 import org.springframework.web.bind.annotation.RequestBody
@@ -23,7 +23,7 @@ import javax.servlet.http.HttpServletResponse
  *
  * @author jxing
  */
-@Api(tags = ["楼层模型接口"])
+@Tag(name = "楼层模型接口")
 @RestController
 @RequestMapping("/log")
 class LogController {
@@ -42,7 +42,7 @@ class LogController {
     * @param   buildingCheckRequest     请求建筑文件夹id
     * @return  创建结果应答信息
     */
-    @ApiOperation(value = "检查建筑文件夹下的楼层", notes = "")
+    @Operation(summary = "检查建筑文件夹下的楼层", description =  "")
     @PostMapping(value = ["/building-check/excel"])
 //    fun buildingCheckExcel(response : HttpServletResponse, @RequestBody(required = true) buildingCheckRequest: BuildingCheckRequest) : SBaseResponse{
     fun buildingCheckExcel(response : HttpServletResponse, @RequestBody(required = true) buildingCheckRequest: PreciseCellValue){

+ 8 - 8
revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/log/SyncLogController.kt

@@ -30,8 +30,8 @@ import com.persagy.service.models.responses.SBaseResponse
 import com.persagy.service.models.responses.SCountResponse
 import com.persagy.service.models.responses.SCreateResponse
 import com.persagy.service.models.responses.SQueryResponse
-import io.swagger.annotations.Api
-import io.swagger.annotations.ApiOperation
+import io.swagger.v3.oas.annotations.tags.Tag
+import io.swagger.v3.oas.annotations.Operation
 import org.slf4j.LoggerFactory
 import org.springframework.web.bind.annotation.PostMapping
 import org.springframework.web.bind.annotation.RequestBody
@@ -43,7 +43,7 @@ import org.springframework.web.bind.annotation.RestController
  *
  * @author jxing
  */
-@Api(tags = ["同步日志接口"])
+@Tag(name = "同步日志接口")
 @RestController
 @RequestMapping("/sync-log")
 class SyncLogController {
@@ -61,7 +61,7 @@ class SyncLogController {
      * @param   entity     实体
      * @return  创建结果应答信息
      */
-    @ApiOperation(value = "创建同步日志", notes = "")
+    @Operation(summary = "创建同步日志", description =  "")
     @PostMapping(value = ["/create"])
     fun create(@RequestBody entity: SCreateRequest<SyncLogEntity>): SCreateResponse<SyncLogEntity> {
         return dataService.syncLogService.createList(entity)
@@ -73,7 +73,7 @@ class SyncLogController {
      * @param   idList      同步日志ID列表
      * @return  删除结果应答信息
      */
-    @ApiOperation(value = "删除同步日志", notes = "")
+    @Operation(summary = "删除同步日志", description =  "")
     @PostMapping(value = ["/delete"])
     fun delete(@RequestBody idList: ArrayList<SyncLogEntity>): SBaseResponse {
         return dataService.syncLogService.deleteByKeysList(idList)
@@ -85,7 +85,7 @@ class SyncLogController {
      * @param   request     更新请求
      * @return  更新结果应答信息
      */
-    @ApiOperation(value = "更新同步日志", notes = "")
+    @Operation(summary = "更新同步日志", description =  "")
     @PostMapping(value = ["/update"])
     fun update(@RequestBody request: SUpdateRequest<SyncLogEntity>): SBaseResponse {
         return dataService.syncLogService.updateList(request)
@@ -97,7 +97,7 @@ class SyncLogController {
      * @param   request     查询请求
      * @return  查询结果应答信息
      */
-    @ApiOperation(value = "查询同步日志", notes = "")
+    @Operation(summary = "查询同步日志", description =  "")
     @PostMapping(value = ["/query"])
     fun query(@RequestBody request: SQueryRequest): SQueryResponse<SyncLogEntity> {
         return dataService.syncLogService.pageQuery(request)
@@ -106,7 +106,7 @@ class SyncLogController {
     /**
      * 根据条件查询统计数量
      */
-    @ApiOperation(value = "根据条件查询统计数量", notes = "")
+    @Operation(summary = "根据条件查询统计数量", description =  "")
     @PostMapping(value = ["/count"])
     fun count(@RequestBody request: SCountRequest): SCountResponse {
         return dataService.syncLogService.count(request)

+ 4 - 4
revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/BaseGraphController.kt

@@ -3,8 +3,8 @@ package com.persagy.revit.controllers.modelEntity
 import com.persagy.revit.models.request.BaseGraphRequest
 import com.persagy.revit.services.endpoint.BaseGraphService
 import com.persagy.service.models.responses.SBaseResponse
-import io.swagger.annotations.Api
-import io.swagger.annotations.ApiOperation
+import io.swagger.v3.oas.annotations.tags.Tag
+import io.swagger.v3.oas.annotations.Operation
 import org.slf4j.LoggerFactory
 import org.springframework.web.bind.annotation.PostMapping
 import org.springframework.web.bind.annotation.RequestBody
@@ -16,7 +16,7 @@ import org.springframework.web.bind.annotation.RestController
  *
  * @author jxing
  */
-@Api(tags = ["获取底图接口"])
+@Tag(name = "获取底图接口")
 @RestController
 @RequestMapping("/base-graph")
 class BaseGraphController {
@@ -31,7 +31,7 @@ class BaseGraphController {
      * @param   request     查询请求
      * @return  查询结果应答信息
      */
-    @ApiOperation(value="查询底图", notes="")
+    @Operation(summary = "查询底图", description =  "")
     @PostMapping(value = ["/query"])
     fun query(@RequestBody request: BaseGraphRequest): SBaseResponse {
         return BaseGraphService.composeBaseGraph(request)

+ 8 - 8
revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/BeaconController.kt

@@ -31,8 +31,8 @@ import com.persagy.service.models.responses.SBaseResponse
 import com.persagy.service.models.responses.SCountResponse
 import com.persagy.service.models.responses.SCreateResponse
 import com.persagy.service.models.responses.SQueryResponse
-import io.swagger.annotations.Api
-import io.swagger.annotations.ApiOperation
+import io.swagger.v3.oas.annotations.tags.Tag
+import io.swagger.v3.oas.annotations.Operation
 import org.slf4j.LoggerFactory
 import org.springframework.web.bind.annotation.PostMapping
 import org.springframework.web.bind.annotation.RequestBody
@@ -45,7 +45,7 @@ import org.springframework.web.bind.annotation.RestController
  *
  * @author jxing
  */
-@Api(tags = ["构件-信标接口"])
+@Tag(name = "构件-信标接口")
 @RestController
 @RequestMapping("/beacon")
 open class BeaconController {
@@ -63,7 +63,7 @@ open class BeaconController {
      * @param   entity     信标实体
      * @return  创建结果应答信息
      */
-    @ApiOperation(value = "创建信标", notes = "")
+    @Operation(summary = "创建信标", description =  "")
     @PostMapping(value = ["/create"])
     fun create(@RequestBody entity: SCreateRequest<Beacon>): SCreateResponse<Beacon> {
         return dataService.beaconService.createList(entity)
@@ -75,7 +75,7 @@ open class BeaconController {
      * @param   idList      信标ID列表
      * @return  删除结果应答信息
      */
-    @ApiOperation(value = "删除信标", notes = "")
+    @Operation(summary = "删除信标", description =  "")
     @PostMapping(value = ["/delete"])
     fun delete(@RequestBody idList: ArrayList<Beacon>): SBaseResponse {
         return dataService.beaconService.deleteByKeysList(idList)
@@ -87,7 +87,7 @@ open class BeaconController {
      * @param   request     更新请求
      * @return  更新结果应答信息
      */
-    @ApiOperation(value="更新信标", notes="")
+    @Operation(summary = "更新信标", description =  "")
     @PostMapping(value = ["/update"])
     fun update(@RequestBody request: SUpdateRequest<Beacon>): SBaseResponse {
         return dataService.beaconService.updateList(request)
@@ -99,7 +99,7 @@ open class BeaconController {
      * @param   request     查询请求
      * @return  查询结果应答信息
      */
-    @ApiOperation(value="查询信标", notes="")
+    @Operation(summary = "查询信标", description =  "")
     @PostMapping(value = ["/query"])
     fun query(@RequestBody request: SQueryRequest): SQueryResponse<Beacon> {
         return dataService.beaconService.pageQuery(request)
@@ -108,7 +108,7 @@ open class BeaconController {
     /**
      * 根据条件查询统计数量
      */
-    @ApiOperation(value = "根据条件查询统计数量", notes = "")
+    @Operation(summary = "根据条件查询统计数量", description =  "")
     @PostMapping(value = ["/count"])
     fun count(@RequestBody request: SCountRequest): SCountResponse {
         return dataService.beaconService.count(request)

+ 8 - 8
revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/ColumnController.kt

@@ -30,8 +30,8 @@ import com.persagy.service.models.responses.SBaseResponse
 import com.persagy.service.models.responses.SCountResponse
 import com.persagy.service.models.responses.SCreateResponse
 import com.persagy.service.models.responses.SQueryResponse
-import io.swagger.annotations.Api
-import io.swagger.annotations.ApiOperation
+import io.swagger.v3.oas.annotations.tags.Tag
+import io.swagger.v3.oas.annotations.Operation
 import org.slf4j.LoggerFactory
 import org.springframework.web.bind.annotation.PostMapping
 import org.springframework.web.bind.annotation.RequestBody
@@ -44,7 +44,7 @@ import org.springframework.web.bind.annotation.RestController
  *
  * @author jxing
  */
-@Api(tags = ["构件-柱子接口"])
+@Tag(name = "构件-柱子接口")
 @RestController
 @RequestMapping("/column")
 class ColumnController {
@@ -60,7 +60,7 @@ class ColumnController {
      * @param   entity     柱子实体
      * @return  创建结果应答信息
      */
-    @ApiOperation(value = "创建柱子", notes = "")
+    @Operation(summary = "创建柱子", description =  "")
     @PostMapping(value = ["/create"])
     fun create(@RequestBody entity: SCreateRequest<Column>): SCreateResponse<Column> {
         return dataService.columnService.createList(entity)
@@ -72,7 +72,7 @@ class ColumnController {
      * @param   idList      柱子ID列表
      * @return  删除结果应答信息
      */
-    @ApiOperation(value = "删除柱子", notes = "")
+    @Operation(summary = "删除柱子", description =  "")
     @PostMapping(value = ["/delete"])
     fun delete(@RequestBody idList: ArrayList<Column>): SBaseResponse {
         return dataService.columnService.deleteByKeysList(idList)
@@ -84,7 +84,7 @@ class ColumnController {
      * @param   request     更新请求
      * @return  更新结果应答信息
      */
-    @ApiOperation(value = "更新柱子", notes = "")
+    @Operation(summary = "更新柱子", description =  "")
     @PostMapping(value = ["/update"])
     fun update(@RequestBody request: SUpdateRequest<Column>): SBaseResponse {
         return dataService.columnService.updateList(request)
@@ -96,7 +96,7 @@ class ColumnController {
      * @param   request     查询请求
      * @return  查询结果应答信息
      */
-    @ApiOperation(value = "查询柱子", notes = "")
+    @Operation(summary = "查询柱子", description =  "")
     @PostMapping(value = ["/query"])
     fun query(@RequestBody request: SQueryRequest): SQueryResponse<Column> {
         return dataService.columnService.pageQuery(request)
@@ -105,7 +105,7 @@ class ColumnController {
     /**
      * 根据条件查询统计数量
      */
-    @ApiOperation(value = "根据条件查询统计数量", notes = "")
+    @Operation(summary = "根据条件查询统计数量", description =  "")
     @PostMapping(value = ["/count"])
     fun count(@RequestBody request: SCountRequest): SCountResponse {
         return dataService.columnService.count(request)

+ 8 - 8
revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/ConnectorController.kt

@@ -10,8 +10,8 @@ import com.persagy.service.models.responses.SBaseResponse
 import com.persagy.service.models.responses.SCountResponse
 import com.persagy.service.models.responses.SCreateResponse
 import com.persagy.service.models.responses.SQueryResponse
-import io.swagger.annotations.Api
-import io.swagger.annotations.ApiOperation
+import io.swagger.v3.oas.annotations.tags.Tag
+import io.swagger.v3.oas.annotations.Operation
 import org.slf4j.LoggerFactory
 import org.springframework.web.bind.annotation.PostMapping
 import org.springframework.web.bind.annotation.RequestBody
@@ -23,7 +23,7 @@ import org.springframework.web.bind.annotation.RestController
  *
  * @author jxing
  */
-@Api(tags = ["构件-连接件接口"])
+@Tag(name = "构件-连接件接口")
 @RestController
 @RequestMapping("/connector")
 class ConnectorController {
@@ -41,7 +41,7 @@ class ConnectorController {
      * @param   entity     实体
      * @return  创建结果应答信息
      */
-    @ApiOperation(value = "创建连接件", notes = "")
+    @Operation(summary = "创建连接件", description =  "")
     @PostMapping(value = ["/create"])
     fun create(@RequestBody entity: SCreateRequest<Connector>): SCreateResponse<Connector> {
         return dataService.connectorService.createList(entity)
@@ -53,7 +53,7 @@ class ConnectorController {
      * @param   idList      连接件ID列表
      * @return  删除结果应答信息
      */
-    @ApiOperation(value = "删除连接件", notes = "")
+    @Operation(summary = "删除连接件", description =  "")
     @PostMapping(value = ["/delete"])
     fun delete(@RequestBody idList: ArrayList<Connector>): SBaseResponse {
         return dataService.connectorService.deleteByKeysList(idList)
@@ -65,7 +65,7 @@ class ConnectorController {
      * @param   request     更新请求
      * @return  更新结果应答信息
      */
-    @ApiOperation(value = "更新连接件", notes = "")
+    @Operation(summary = "更新连接件", description =  "")
     @PostMapping(value = ["/update"])
     fun update(@RequestBody request: SUpdateRequest<Connector>): SBaseResponse {
         return dataService.connectorService.updateList(request)
@@ -77,7 +77,7 @@ class ConnectorController {
      * @param   request     查询请求
      * @return  查询结果应答信息
      */
-    @ApiOperation(value = "查询连接件", notes = "")
+    @Operation(summary = "查询连接件", description =  "")
     @PostMapping(value = ["/query"])
     fun query(@RequestBody request: SQueryRequest): SQueryResponse<Connector> {
         return dataService.connectorService.pageQuery(request)
@@ -86,7 +86,7 @@ class ConnectorController {
     /**
      * 根据条件查询统计数量
      */
-    @ApiOperation(value = "根据条件查询统计数量", notes = "")
+    @Operation(summary = "根据条件查询统计数量", description =  "")
     @PostMapping(value = ["/count"])
     fun count(@RequestBody request: SCountRequest): SCountResponse {
         return dataService.connectorService.count(request)

+ 8 - 8
revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/DoorController.kt

@@ -30,8 +30,8 @@ import com.persagy.service.models.responses.SBaseResponse
 import com.persagy.service.models.responses.SCountResponse
 import com.persagy.service.models.responses.SCreateResponse
 import com.persagy.service.models.responses.SQueryResponse
-import io.swagger.annotations.Api
-import io.swagger.annotations.ApiOperation
+import io.swagger.v3.oas.annotations.tags.Tag
+import io.swagger.v3.oas.annotations.Operation
 import org.slf4j.LoggerFactory
 import org.springframework.web.bind.annotation.PostMapping
 import org.springframework.web.bind.annotation.RequestBody
@@ -43,7 +43,7 @@ import org.springframework.web.bind.annotation.RestController
  *
  * @author jxing
  */
-@Api(tags = ["构件-门接口"])
+@Tag(name = "构件-门接口")
 @RestController
 @RequestMapping("/door")
 class DoorController {
@@ -60,7 +60,7 @@ class DoorController {
      * @param   entity     实体
      * @return  创建结果应答信息
      */
-    @ApiOperation(value = "创建门", notes = "")
+    @Operation(summary = "创建门", description =  "")
     @PostMapping(value = ["/create"])
     fun create(@RequestBody entity: SCreateRequest<Door>): SCreateResponse<Door> {
         return dataService.doorService.createList(entity)
@@ -72,7 +72,7 @@ class DoorController {
      * @param   idList      门ID列表
      * @return  删除结果应答信息
      */
-    @ApiOperation(value = "删除门", notes = "")
+    @Operation(summary = "删除门", description =  "")
     @PostMapping(value = ["/delete"])
     fun delete(@RequestBody idList: ArrayList<Door>): SBaseResponse {
         return dataService.doorService.deleteByKeysList(idList)
@@ -84,7 +84,7 @@ class DoorController {
      * @param   request     更新请求
      * @return  更新结果应答信息
      */
-    @ApiOperation(value = "更新门", notes = "")
+    @Operation(summary = "更新门", description =  "")
     @PostMapping(value = ["/update"])
     fun update(@RequestBody request: SUpdateRequest<Door>): SBaseResponse {
         return dataService.doorService.updateList(request)
@@ -96,7 +96,7 @@ class DoorController {
      * @param   request     查询请求
      * @return  查询结果应答信息
      */
-    @ApiOperation(value = "查询门", notes = "")
+    @Operation(summary = "查询门", description =  "")
     @PostMapping(value = ["/query"])
     fun query(@RequestBody request: SQueryRequest): SQueryResponse<Door> {
         return dataService.doorService.pageQuery(request)
@@ -105,7 +105,7 @@ class DoorController {
     /**
      * 根据条件查询统计数量
      */
-    @ApiOperation(value = "根据条件查询统计数量", notes = "")
+    @Operation(summary = "根据条件查询统计数量", description =  "")
     @PostMapping(value = ["/count"])
     fun count(@RequestBody request: SCountRequest): SCountResponse {
         return dataService.doorService.count(request)

+ 8 - 8
revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/DuctController.kt

@@ -32,8 +32,8 @@ import com.persagy.service.models.responses.SBaseResponse
 import com.persagy.service.models.responses.SCountResponse
 import com.persagy.service.models.responses.SCreateResponse
 import com.persagy.service.models.responses.SQueryResponse
-import io.swagger.annotations.Api
-import io.swagger.annotations.ApiOperation
+import io.swagger.v3.oas.annotations.tags.Tag
+import io.swagger.v3.oas.annotations.Operation
 import org.slf4j.LoggerFactory
 import org.springframework.web.bind.annotation.PostMapping
 import org.springframework.web.bind.annotation.RequestBody
@@ -45,7 +45,7 @@ import org.springframework.web.bind.annotation.RestController
  *
  * @author jxing
  */
-@Api(tags = ["构件-风管接口"])
+@Tag(name = "构件-风管接口")
 @RestController
 @RequestMapping("/duct")
 class DuctController {
@@ -63,7 +63,7 @@ class DuctController {
      * @param   entity     风管实体
      * @return  创建结果应答信息
      */
-    @ApiOperation(value = "创建风管", notes = "")
+    @Operation(summary = "创建风管", description =  "")
     @PostMapping(value = ["/create"])
     fun create(@RequestBody entity: SCreateRequest<Duct>): SCreateResponse<Duct> {
         return ductService.createList(entity)
@@ -75,7 +75,7 @@ class DuctController {
      * @param   idList      风管ID列表
      * @return  删除结果应答信息
      */
-    @ApiOperation(value = "删除风管", notes = "")
+    @Operation(summary = "删除风管", description =  "")
     @PostMapping(value = ["/delete"])
     fun delete(@RequestBody idList: ArrayList<Duct>): SBaseResponse {
         return ductService.deleteByKeysList(idList)
@@ -87,7 +87,7 @@ class DuctController {
      * @param   request     更新请求
      * @return  更新结果应答信息
      */
-    @ApiOperation(value = "更新风管", notes = "")
+    @Operation(summary = "更新风管", description =  "")
     @PostMapping(value = ["/update"])
     fun update(@RequestBody request: SUpdateRequest<Duct>): SBaseResponse {
         return ductService.updateList(request)
@@ -99,7 +99,7 @@ class DuctController {
      * @param   request     查询请求
      * @return  查询结果应答信息
      */
-    @ApiOperation(value = "查询风管", notes = "")
+    @Operation(summary = "查询风管", description =  "")
     @PostMapping(value = ["/query"])
     fun query(@RequestBody request: SQueryRequest): SQueryResponse<Duct> {
         return ductService.pageQuery(request)
@@ -108,7 +108,7 @@ class DuctController {
     /**
      * 根据条件查询统计数量
      */
-    @ApiOperation(value = "根据条件查询统计数量", notes = "")
+    @Operation(summary = "根据条件查询统计数量", description =  "")
     @PostMapping(value = ["/count"])
     fun count(@RequestBody request: SCountRequest): SCountResponse {
         return ductService.count(request)

+ 8 - 8
revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/EquipPartController.kt

@@ -32,8 +32,8 @@ import com.persagy.service.models.responses.SBaseResponse
 import com.persagy.service.models.responses.SCountResponse
 import com.persagy.service.models.responses.SCreateResponse
 import com.persagy.service.models.responses.SQueryResponse
-import io.swagger.annotations.Api
-import io.swagger.annotations.ApiOperation
+import io.swagger.v3.oas.annotations.tags.Tag
+import io.swagger.v3.oas.annotations.Operation
 import org.slf4j.LoggerFactory
 import org.springframework.web.bind.annotation.PostMapping
 import org.springframework.web.bind.annotation.RequestBody
@@ -45,7 +45,7 @@ import org.springframework.web.bind.annotation.RestController
  *
  * @author jxing
  */
-@Api(tags = ["构件-部件接口"])
+@Tag(name = "构件-部件接口")
 @RestController
 @RequestMapping("/equip-part")
 class EquipPartController {
@@ -63,7 +63,7 @@ class EquipPartController {
      * @param   entity     部件实体
      * @return  创建结果应答信息
      */
-    @ApiOperation(value = "创建部件", notes = "")
+    @Operation(summary = "创建部件", description =  "")
     @PostMapping(value = ["/create"])
     fun create(@RequestBody entity: SCreateRequest<EquipPart>): SCreateResponse<EquipPart> {
         return equipPartService.createList(entity)
@@ -75,7 +75,7 @@ class EquipPartController {
      * @param   idList      部件ID列表
      * @return  删除结果应答信息
      */
-    @ApiOperation(value = "删除部件", notes = "")
+    @Operation(summary = "删除部件", description =  "")
     @PostMapping(value = ["/delete"])
     fun delete(@RequestBody idList: ArrayList<EquipPart>): SBaseResponse {
         return equipPartService.deleteByKeysList(idList)
@@ -87,7 +87,7 @@ class EquipPartController {
      * @param   request     更新请求
      * @return  更新结果应答信息
      */
-    @ApiOperation(value = "更新部件", notes = "")
+    @Operation(summary = "更新部件", description =  "")
     @PostMapping(value = ["/update"])
     fun update(@RequestBody request: SUpdateRequest<EquipPart>): SBaseResponse {
         return equipPartService.updateList(request)
@@ -99,7 +99,7 @@ class EquipPartController {
      * @param   request     查询请求
      * @return  查询结果应答信息
      */
-    @ApiOperation(value = "查询部件", notes = "")
+    @Operation(summary = "查询部件", description =  "")
     @PostMapping(value = ["/query"])
     fun query(@RequestBody request: SQueryRequest): SQueryResponse<EquipPart> {
         return equipPartService.pageQuery(request)
@@ -108,7 +108,7 @@ class EquipPartController {
     /**
      * 根据条件查询统计数量
      */
-    @ApiOperation(value = "根据条件查询统计数量", notes = "")
+    @Operation(summary = "根据条件查询统计数量", description =  "")
     @PostMapping(value = ["/count"])
     fun count(@RequestBody request: SCountRequest): SCountResponse {
         return equipPartService.count(request)

+ 8 - 8
revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/EquipmentController.kt

@@ -31,8 +31,8 @@ import com.persagy.service.models.responses.SBaseResponse
 import com.persagy.service.models.responses.SCountResponse
 import com.persagy.service.models.responses.SCreateResponse
 import com.persagy.service.models.responses.SQueryResponse
-import io.swagger.annotations.Api
-import io.swagger.annotations.ApiOperation
+import io.swagger.v3.oas.annotations.tags.Tag
+import io.swagger.v3.oas.annotations.Operation
 import org.slf4j.LoggerFactory
 import org.springframework.web.bind.annotation.PostMapping
 import org.springframework.web.bind.annotation.RequestBody
@@ -44,7 +44,7 @@ import org.springframework.web.bind.annotation.RestController
  *
  * @author jxing
  */
-@Api(tags = ["构件-设备接口"])
+@Tag(name = "构件-设备接口")
 @RestController
 @RequestMapping("/equipment")
 class EquipmentController {
@@ -63,7 +63,7 @@ class EquipmentController {
      * @param   entity     实体
      * @return  创建结果应答信息
      */
-    @ApiOperation(value = "创建设备", notes = "")
+    @Operation(summary = "创建设备", description =  "")
     @PostMapping(value = ["/create"])
     fun create(@RequestBody entity: SCreateRequest<Equipment>): SCreateResponse<Equipment> {
         return equipmentService.createList(entity)
@@ -75,7 +75,7 @@ class EquipmentController {
      * @param   idList      设备ID列表
      * @return  删除结果应答信息
      */
-    @ApiOperation(value = "删除设备", notes = "")
+    @Operation(summary = "删除设备", description =  "")
     @PostMapping(value = ["/delete"])
     fun delete(@RequestBody idList: ArrayList<Equipment>): SBaseResponse {
         return equipmentService.deleteByKeysList(idList)
@@ -87,7 +87,7 @@ class EquipmentController {
      * @param   request     更新请求
      * @return  更新结果应答信息
      */
-    @ApiOperation(value = "更新设备", notes = "")
+    @Operation(summary = "更新设备", description =  "")
     @PostMapping(value = ["/update"])
     fun update(@RequestBody request: SUpdateRequest<Equipment>): SBaseResponse {
         return equipmentService.updateList(request)
@@ -99,7 +99,7 @@ class EquipmentController {
      * @param   request     查询请求
      * @return  查询结果应答信息
      */
-    @ApiOperation(value = "查询设备", notes = "")
+    @Operation(summary = "查询设备", description =  "")
     @PostMapping(value = ["/query"])
     fun query(@RequestBody request: SQueryRequest): SQueryResponse<Equipment> {
         return equipmentService.pageQuery(request)
@@ -108,7 +108,7 @@ class EquipmentController {
     /**
      * 根据条件查询统计数量
      */
-    @ApiOperation(value = "根据条件查询统计数量", notes = "")
+    @Operation(summary = "根据条件查询统计数量", description =  "")
     @PostMapping(value = ["/count"])
     fun count(@RequestBody request: SCountRequest): SCountResponse {
         return equipmentService.count(request)

+ 8 - 8
revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/GridController.kt

@@ -31,8 +31,8 @@ import com.persagy.service.models.responses.SBaseResponse
 import com.persagy.service.models.responses.SCountResponse
 import com.persagy.service.models.responses.SCreateResponse
 import com.persagy.service.models.responses.SQueryResponse
-import io.swagger.annotations.Api
-import io.swagger.annotations.ApiOperation
+import io.swagger.v3.oas.annotations.tags.Tag
+import io.swagger.v3.oas.annotations.Operation
 import org.slf4j.LoggerFactory
 import org.springframework.web.bind.annotation.PostMapping
 import org.springframework.web.bind.annotation.RequestBody
@@ -44,7 +44,7 @@ import org.springframework.web.bind.annotation.RestController
  *
  * @author 庞利祥
  */
-@Api(tags = ["构件-轴网接口"])
+@Tag(name = "构件-轴网接口")
 @RestController
 @RequestMapping("/grid")
 class GridController {
@@ -62,7 +62,7 @@ class GridController {
      * @param   entity     轴网
      * @return  创建结果应答信息
      */
-    @ApiOperation(value = "创建轴网", notes = "")
+    @Operation(summary = "创建轴网", description =  "")
     @PostMapping(value = ["/create"])
     fun create(@RequestBody entity: SCreateRequest<Grid>): SCreateResponse<Grid> {
         return buildingService.createList(entity)
@@ -74,7 +74,7 @@ class GridController {
      * @param   idList      轴网列表
      * @return  删除结果应答信息
      */
-    @ApiOperation(value = "删除轴网", notes = "")
+    @Operation(summary = "删除轴网", description =  "")
     @PostMapping(value = ["/delete"])
     fun delete(@RequestBody idList: ArrayList<Grid>): SBaseResponse {
         return buildingService.deleteByKeysList(idList)
@@ -86,7 +86,7 @@ class GridController {
      * @param   request     更新请求
      * @return  更新结果应答信息
      */
-    @ApiOperation(value = "更新轴网", notes = "")
+    @Operation(summary = "更新轴网", description =  "")
     @PostMapping(value = ["/update"])
     fun update(@RequestBody request: SUpdateRequest<Grid>): SBaseResponse {
         return buildingService.updateList(request)
@@ -98,7 +98,7 @@ class GridController {
      * @param   request     查询请求
      * @return  查询结果应答信息
      */
-    @ApiOperation(value = "查询轴网", notes = "")
+    @Operation(summary = "查询轴网", description =  "")
     @PostMapping(value = ["/query"])
     fun query(@RequestBody request: SQueryRequest): SQueryResponse<Grid> {
         return buildingService.pageQuery(request)
@@ -107,7 +107,7 @@ class GridController {
     /**
      * 根据条件查询统计数量
      */
-    @ApiOperation(value = "根据条件查询统计数量", notes = "")
+    @Operation(summary = "根据条件查询统计数量", description =  "")
     @PostMapping(value = ["/count"])
     fun count(@RequestBody request: SCountRequest): SCountResponse {
         return buildingService.count(request)

+ 8 - 8
revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/LevelController.kt

@@ -31,8 +31,8 @@ import com.persagy.service.models.responses.SBaseResponse
 import com.persagy.service.models.responses.SCountResponse
 import com.persagy.service.models.responses.SCreateResponse
 import com.persagy.service.models.responses.SQueryResponse
-import io.swagger.annotations.Api
-import io.swagger.annotations.ApiOperation
+import io.swagger.v3.oas.annotations.tags.Tag
+import io.swagger.v3.oas.annotations.Operation
 import org.slf4j.LoggerFactory
 import org.springframework.web.bind.annotation.PostMapping
 import org.springframework.web.bind.annotation.RequestBody
@@ -44,7 +44,7 @@ import org.springframework.web.bind.annotation.RestController
  *
  * @author jxing
  */
-@Api(tags = ["构件-标高接口"])
+@Tag(name = "构件-标高接口")
 @RestController
 @RequestMapping("/level")
 class LevelController {
@@ -63,7 +63,7 @@ class LevelController {
      * @param   entity     实体
      * @return  创建结果应答信息
      */
-    @ApiOperation(value = "创建标高", notes = "")
+    @Operation(summary = "创建标高", description =  "")
     @PostMapping(value = ["/create"])
     fun create(@RequestBody entity: SCreateRequest<Level>): SCreateResponse<Level> {
         return levelService.createList(entity)
@@ -75,7 +75,7 @@ class LevelController {
      * @param   idList      标高ID列表
      * @return  删除结果应答信息
      */
-    @ApiOperation(value = "删除标高", notes = "")
+    @Operation(summary = "删除标高", description =  "")
     @PostMapping(value = ["/delete"])
     fun delete(@RequestBody idList: ArrayList<Level>): SBaseResponse {
         return levelService.deleteByKeysList(idList)
@@ -87,7 +87,7 @@ class LevelController {
      * @param   request     更新请求
      * @return  更新结果应答信息
      */
-    @ApiOperation(value = "更新标高", notes = "")
+    @Operation(summary = "更新标高", description =  "")
     @PostMapping(value = ["/update"])
     fun update(@RequestBody request: SUpdateRequest<Level>): SBaseResponse {
         return levelService.updateList(request)
@@ -99,7 +99,7 @@ class LevelController {
      * @param   request     查询请求
      * @return  查询结果应答信息
      */
-    @ApiOperation(value = "查询标高", notes = "")
+    @Operation(summary = "查询标高", description =  "")
     @PostMapping(value = ["/query"])
     fun query(@RequestBody request: SQueryRequest): SQueryResponse<Level> {
         return levelService.pageQuery(request)
@@ -108,7 +108,7 @@ class LevelController {
     /**
      * 根据条件查询统计数量
      */
-    @ApiOperation(value = "根据条件查询统计数量", notes = "")
+    @Operation(summary = "根据条件查询统计数量", description =  "")
     @PostMapping(value = ["/count"])
     fun count(@RequestBody request: SCountRequest): SCountResponse {
         return levelService.count(request)

+ 8 - 8
revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/OtherController.kt

@@ -10,8 +10,8 @@ import com.persagy.service.models.responses.SBaseResponse
 import com.persagy.service.models.responses.SCountResponse
 import com.persagy.service.models.responses.SCreateResponse
 import com.persagy.service.models.responses.SQueryResponse
-import io.swagger.annotations.Api
-import io.swagger.annotations.ApiOperation
+import io.swagger.v3.oas.annotations.tags.Tag
+import io.swagger.v3.oas.annotations.Operation
 import org.slf4j.LoggerFactory
 import org.springframework.web.bind.annotation.PostMapping
 import org.springframework.web.bind.annotation.RequestBody
@@ -23,7 +23,7 @@ import org.springframework.web.bind.annotation.RestController
  *
  * @author jxing
  */
-@Api(tags = ["构件-其他对象接口"])
+@Tag(name = "构件-其他对象接口")
 @RestController
 @RequestMapping("/other")
 class OtherController {
@@ -41,7 +41,7 @@ class OtherController {
      * @param   entity     实体
      * @return  创建结果应答信息
      */
-    @ApiOperation(value = "创建连接件", notes = "")
+    @Operation(summary = "创建连接件", description =  "")
     @PostMapping(value = ["/create"])
     fun create(@RequestBody entity: SCreateRequest<Other>): SCreateResponse<Other> {
         return dataService.otherService.createList(entity)
@@ -53,7 +53,7 @@ class OtherController {
      * @param   idList      其他对象ID列表
      * @return  删除结果应答信息
      */
-    @ApiOperation(value = "删除其他对象", notes = "")
+    @Operation(summary = "删除其他对象", description =  "")
     @PostMapping(value = ["/delete"])
     fun delete(@RequestBody idList: ArrayList<Other>): SBaseResponse {
         return dataService.otherService.deleteByKeysList(idList)
@@ -65,7 +65,7 @@ class OtherController {
      * @param   request     更新请求
      * @return  更新结果应答信息
      */
-    @ApiOperation(value = "更新其他对象", notes = "")
+    @Operation(summary = "更新其他对象", description =  "")
     @PostMapping(value = ["/update"])
     fun update(@RequestBody request: SUpdateRequest<Other>): SBaseResponse {
         return dataService.otherService.updateList(request)
@@ -77,7 +77,7 @@ class OtherController {
      * @param   request     查询请求
      * @return  查询结果应答信息
      */
-    @ApiOperation(value = "查询其他对象", notes = "")
+    @Operation(summary = "查询其他对象", description =  "")
     @PostMapping(value = ["/query"])
     fun query(@RequestBody request: SQueryRequest): SQueryResponse<Other> {
         return dataService.otherService.pageQuery(request)
@@ -86,7 +86,7 @@ class OtherController {
     /**
      * 根据条件查询统计数量
      */
-    @ApiOperation(value = "根据条件查询统计数量", notes = "")
+    @Operation(summary = "根据条件查询统计数量", description =  "")
     @PostMapping(value = ["/count"])
     fun count(@RequestBody request: SCountRequest): SCountResponse {
         return dataService.otherService.count(request)

+ 8 - 8
revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/PipeController.kt

@@ -32,8 +32,8 @@ import com.persagy.service.models.responses.SBaseResponse
 import com.persagy.service.models.responses.SCountResponse
 import com.persagy.service.models.responses.SCreateResponse
 import com.persagy.service.models.responses.SQueryResponse
-import io.swagger.annotations.Api
-import io.swagger.annotations.ApiOperation
+import io.swagger.v3.oas.annotations.tags.Tag
+import io.swagger.v3.oas.annotations.Operation
 import org.slf4j.LoggerFactory
 import org.springframework.web.bind.annotation.PostMapping
 import org.springframework.web.bind.annotation.RequestBody
@@ -45,7 +45,7 @@ import org.springframework.web.bind.annotation.RestController
  *
  * @author jxing
  */
-@Api(tags = ["构件-水管接口"])
+@Tag(name = "构件-水管接口")
 @RestController
 @RequestMapping("/pipe")
 class PipeController {
@@ -62,7 +62,7 @@ class PipeController {
      * @param   entity     水管实体
      * @return  创建结果应答信息
      */
-    @ApiOperation(value = "创建水管", notes = "")
+    @Operation(summary = "创建水管", description =  "")
     @PostMapping(value = ["/create"])
     fun create(@RequestBody entity: SCreateRequest<Pipe>): SCreateResponse<Pipe> {
         return pipeService.createList(entity)
@@ -74,7 +74,7 @@ class PipeController {
      * @param   idList      水管ID列表
      * @return  删除结果应答信息
      */
-    @ApiOperation(value = "删除水管", notes = "")
+    @Operation(summary = "删除水管", description =  "")
     @PostMapping(value = ["/delete"])
     fun delete(@RequestBody idList: ArrayList<Pipe>): SBaseResponse {
         return pipeService.deleteByKeysList(idList)
@@ -86,7 +86,7 @@ class PipeController {
      * @param   request     更新请求
      * @return  更新结果应答信息
      */
-    @ApiOperation(value = "更新水管", notes = "")
+    @Operation(summary = "更新水管", description =  "")
     @PostMapping(value = ["/update"])
     fun update(@RequestBody request: SUpdateRequest<Pipe>): SBaseResponse {
         return pipeService.updateList(request)
@@ -98,7 +98,7 @@ class PipeController {
      * @param   request     查询请求
      * @return  查询结果应答信息
      */
-    @ApiOperation(value = "查询水管", notes = "")
+    @Operation(summary = "查询水管", description =  "")
     @PostMapping(value = ["/query"])
     fun query(@RequestBody request: SQueryRequest): SQueryResponse<Pipe> {
         return pipeService.pageQuery(request)
@@ -107,7 +107,7 @@ class PipeController {
     /**
      * 根据条件查询统计数量
      */
-    @ApiOperation(value = "根据条件查询统计数量", notes = "")
+    @Operation(summary = "根据条件查询统计数量", description =  "")
     @PostMapping(value = ["/count"])
     fun count(@RequestBody request: SCountRequest): SCountResponse {
         return pipeService.count(request)

+ 116 - 0
revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/RoomController.kt

@@ -0,0 +1,116 @@
+/*
+ * ********************************************************************************************************************
+ *
+ *                      :*$@@%$*:                         ;:                ;;    ;;
+ *                    :@@%!  :!@@%:                       %!             ;%%@@%$ =@@@@@@@%;     @%@@@%%%%@@@@@
+ *                   :@%;       :$=                       %%$$$%$$         ;$$  ;$@=   !@$
+ *                   =@!                                  %!              @ $=;%   !@@@%:      !$$$$$$$$$$$$$$=
+ *                   =@*                                  %!              @ $= % %@=   =%@!      %=
+ *              *$%%! @@=        ;=$%%%$*:                %!              @ $= % =%%%%%%@$      *%:         =%
+ *            %@@!:    !@@@%=$@@@@%!  :*@@$:              %!              @ $= % $*     ;@      @*          :%*
+ *          ;@@!          ;!!!;:         ;@%:      =======@%========*     @ $$ % $%*****$@     :@$=*********=@$
+ *          $@*   ;@@@%=!:                *@*
+ *          =@$    ;;;!=%@@@@=!           =@!
+ *           %@$:      =@%: :*@@@*       %@=                    Copyright (c) 2016-2019.  北京上格云技术有限公司
+ *            ;%@@$=$@@%*       *@@@$=%@@%;
+ *               ::;::             ::;::                                              All rights reserved.
+ *
+ * ********************************************************************************************************************
+ */
+
+package com.persagy.revit.controllers.modelEntity
+
+import com.persagy.mybatis.SMybatisDao
+import com.persagy.revit.models.entities.Room
+import com.persagy.service.SObjectService
+import com.persagy.service.models.requests.SCountRequest
+import com.persagy.service.models.requests.SCreateRequest
+import com.persagy.service.models.requests.SQueryRequest
+import com.persagy.service.models.requests.SUpdateRequest
+import com.persagy.service.models.responses.SBaseResponse
+import com.persagy.service.models.responses.SCountResponse
+import com.persagy.service.models.responses.SCreateResponse
+import com.persagy.service.models.responses.SQueryResponse
+import io.swagger.v3.oas.annotations.tags.Tag
+import io.swagger.v3.oas.annotations.Operation
+import org.slf4j.LoggerFactory
+import org.springframework.web.bind.annotation.PostMapping
+import org.springframework.web.bind.annotation.RequestBody
+import org.springframework.web.bind.annotation.RequestMapping
+import org.springframework.web.bind.annotation.RestController
+
+/**
+ * 房间接口
+ *
+ * @author Cainga
+ */
+@Tag(name = "房间接口")
+@RestController
+@RequestMapping("/room")
+class RoomController {
+
+    companion object {
+        // 日志
+        private val logger = LoggerFactory.getLogger(RoomController::class.java)
+    } // Companion object
+
+    private var roomService = SObjectService(SMybatisDao(Room::class.java))
+
+
+    /**
+     * 创建房间
+     *
+     * @param   entity     实体
+     * @return  创建结果应答信息
+     */
+    @Operation(summary = "创建房间", description =  "")
+    @PostMapping(value = ["/create"])
+    fun create(@RequestBody entity: SCreateRequest<Room>): SCreateResponse<Room> {
+        return roomService.createList(entity)
+    } // Function create()
+
+    /**
+     * 删除房间
+     *
+     * @param   idList      房间ID列表
+     * @return  删除结果应答信息
+     */
+    @Operation(summary = "删除房间", description =  "")
+    @PostMapping(value = ["/delete"])
+    fun delete(@RequestBody idList: ArrayList<Room>): SBaseResponse {
+        return roomService.deleteByKeysList(idList)
+    } // Function delete()
+
+    /**
+     * 更新房间
+     *
+     * @param   request     更新请求
+     * @return  更新结果应答信息
+     */
+    @Operation(summary = "更新房间", description =  "")
+    @PostMapping(value = ["/update"])
+    fun update(@RequestBody request: SUpdateRequest<Room>): SBaseResponse {
+        return roomService.updateList(request)
+    } // Function update()
+
+    /**
+     * 查询房间
+     *
+     * @param   request     查询请求
+     * @return  查询结果应答信息
+     */
+    @Operation(summary = "查询房间", description =  "")
+    @PostMapping(value = ["/query"])
+    fun query(@RequestBody request: SQueryRequest): SQueryResponse<Room> {
+        return roomService.pageQuery(request)
+    } // Function query()
+
+    /**
+     * 根据条件查询统计数量
+     */
+    @Operation(summary = "根据条件查询统计数量", description =  "")
+    @PostMapping(value = ["/count"])
+    fun count(@RequestBody request: SCountRequest): SCountResponse {
+        return roomService.count(request)
+    } // Function count()
+}

+ 8 - 8
revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/SpaceController.kt

@@ -30,8 +30,8 @@ import com.persagy.service.models.responses.SBaseResponse
 import com.persagy.service.models.responses.SCountResponse
 import com.persagy.service.models.responses.SCreateResponse
 import com.persagy.service.models.responses.SQueryResponse
-import io.swagger.annotations.Api
-import io.swagger.annotations.ApiOperation
+import io.swagger.v3.oas.annotations.tags.Tag
+import io.swagger.v3.oas.annotations.Operation
 import org.slf4j.LoggerFactory
 import org.springframework.web.bind.annotation.PostMapping
 import org.springframework.web.bind.annotation.RequestBody
@@ -43,7 +43,7 @@ import org.springframework.web.bind.annotation.RestController
  *
  * @author jxing
  */
-@Api(tags = ["构件-空间接口"])
+@Tag(name = "构件-空间接口")
 @RestController
 @RequestMapping("/space")
 class SpaceController {
@@ -60,7 +60,7 @@ class SpaceController {
      * @param   entity     实体
      * @return  创建结果应答信息
      */
-    @ApiOperation(value = "创建空间", notes = "")
+    @Operation(summary = "创建空间", description =  "")
     @PostMapping(value = ["/create"])
     fun create(@RequestBody entity: SCreateRequest<Space>): SCreateResponse<Space> {
         return dataService.spaceService.createList(entity)
@@ -72,7 +72,7 @@ class SpaceController {
      * @param   idList      空间ID列表
      * @return  删除结果应答信息
      */
-    @ApiOperation(value = "删除空间", notes = "")
+    @Operation(summary = "删除空间", description =  "")
     @PostMapping(value = ["/delete"])
     fun delete(@RequestBody idList: ArrayList<Space>): SBaseResponse {
         return dataService.spaceService.deleteByKeysList(idList)
@@ -84,7 +84,7 @@ class SpaceController {
      * @param   request     更新请求
      * @return  更新结果应答信息
      */
-    @ApiOperation(value = "更新空间", notes = "")
+    @Operation(summary = "更新空间", description =  "")
     @PostMapping(value = ["/update"])
     fun update(@RequestBody request: SUpdateRequest<Space>): SBaseResponse {
         return dataService.spaceService.updateList(request)
@@ -96,7 +96,7 @@ class SpaceController {
      * @param   request     查询请求
      * @return  查询结果应答信息
      */
-    @ApiOperation(value = "查询空间", notes = "")
+    @Operation(summary = "查询空间", description =  "")
     @PostMapping(value = ["/query"])
     fun query(@RequestBody request: SQueryRequest): SQueryResponse<Space> {
         return dataService.spaceService.pageQuery(request)
@@ -105,7 +105,7 @@ class SpaceController {
     /**
      * 根据条件查询统计数量
      */
-    @ApiOperation(value = "根据条件查询统计数量", notes = "")
+    @Operation(summary = "根据条件查询统计数量", description =  "")
     @PostMapping(value = ["/count"])
     fun count(@RequestBody request: SCountRequest): SCountResponse {
         return dataService.spaceService.count(request)

+ 8 - 8
revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/VirtualWallController.kt

@@ -30,8 +30,8 @@ import com.persagy.service.models.responses.SBaseResponse
 import com.persagy.service.models.responses.SCountResponse
 import com.persagy.service.models.responses.SCreateResponse
 import com.persagy.service.models.responses.SQueryResponse
-import io.swagger.annotations.Api
-import io.swagger.annotations.ApiOperation
+import io.swagger.v3.oas.annotations.tags.Tag
+import io.swagger.v3.oas.annotations.Operation
 import org.slf4j.LoggerFactory
 import org.springframework.web.bind.annotation.PostMapping
 import org.springframework.web.bind.annotation.RequestBody
@@ -43,7 +43,7 @@ import org.springframework.web.bind.annotation.RestController
  *
  * @author jxing
  */
-@Api(tags = ["构件-虚拟墙接口"])
+@Tag(name = "构件-虚拟墙接口")
 @RestController
 @RequestMapping("/vwall")
 class VirtualWallController {
@@ -60,7 +60,7 @@ class VirtualWallController {
      * @param   entity     实体
      * @return  创建结果应答信息
      */
-    @ApiOperation(value = "创建虚拟墙", notes = "")
+    @Operation(summary = "创建虚拟墙", description =  "")
     @PostMapping(value = ["/create"])
     fun create(@RequestBody entity: SCreateRequest<VirtualWall>): SCreateResponse<VirtualWall> {
         return dataService.virtualWallService.createList(entity)
@@ -72,7 +72,7 @@ class VirtualWallController {
      * @param   idList      虚拟墙ID列表
      * @return  删除结果应答信息
      */
-    @ApiOperation(value = "删除虚拟墙", notes = "")
+    @Operation(summary = "删除虚拟墙", description =  "")
     @PostMapping(value = ["/delete"])
     fun delete(@RequestBody idList: ArrayList<VirtualWall>): SBaseResponse {
         return dataService.virtualWallService.deleteByKeysList(idList)
@@ -84,7 +84,7 @@ class VirtualWallController {
      * @param   request     更新请求
      * @return  更新结果应答信息
      */
-    @ApiOperation(value = "更新虚拟墙", notes = "")
+    @Operation(summary = "更新虚拟墙", description =  "")
     @PostMapping(value = ["/update"])
     fun update(@RequestBody request: SUpdateRequest<VirtualWall>): SBaseResponse {
         return dataService.virtualWallService.updateList(request)
@@ -96,7 +96,7 @@ class VirtualWallController {
      * @param   request     查询请求
      * @return  查询结果应答信息
      */
-    @ApiOperation(value = "查询虚拟墙", notes = "")
+    @Operation(summary = "查询虚拟墙", description =  "")
     @PostMapping(value = ["/query"])
     fun query(@RequestBody request: SQueryRequest): SQueryResponse<VirtualWall> {
         return dataService.virtualWallService.pageQuery(request)
@@ -105,7 +105,7 @@ class VirtualWallController {
     /**
      * 根据条件查询统计数量
      */
-    @ApiOperation(value = "根据条件查询统计数量", notes = "")
+    @Operation(summary = "根据条件查询统计数量", description =  "")
     @PostMapping(value = ["/count"])
     fun count(@RequestBody request: SCountRequest): SCountResponse {
         return dataService.virtualWallService.count(request)

+ 8 - 8
revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/WallController.kt

@@ -30,8 +30,8 @@ import com.persagy.service.models.responses.SBaseResponse
 import com.persagy.service.models.responses.SCountResponse
 import com.persagy.service.models.responses.SCreateResponse
 import com.persagy.service.models.responses.SQueryResponse
-import io.swagger.annotations.Api
-import io.swagger.annotations.ApiOperation
+import io.swagger.v3.oas.annotations.tags.Tag
+import io.swagger.v3.oas.annotations.Operation
 import org.slf4j.LoggerFactory
 import org.springframework.web.bind.annotation.PostMapping
 import org.springframework.web.bind.annotation.RequestBody
@@ -43,7 +43,7 @@ import org.springframework.web.bind.annotation.RestController
  *
  * @author jxing
  */
-@Api(tags = ["构件-墙接口"])
+@Tag(name = "构件-墙接口")
 @RestController
 @RequestMapping("/wall")
 class WallController {
@@ -61,7 +61,7 @@ class WallController {
      * @param   entity     实体
      * @return  创建结果应答信息
      */
-    @ApiOperation(value = "创建墙", notes = "")
+    @Operation(summary = "创建墙", description =  "")
     @PostMapping(value = ["/create"])
     fun create(@RequestBody entity: SCreateRequest<Wall>): SCreateResponse<Wall> {
         return dataService.wallService.createList(entity)
@@ -73,7 +73,7 @@ class WallController {
      * @param   idList      墙ID列表
      * @return  删除结果应答信息
      */
-    @ApiOperation(value = "删除墙", notes = "")
+    @Operation(summary = "删除墙", description =  "")
     @PostMapping(value = ["/delete"])
     fun delete(@RequestBody idList: ArrayList<Wall>): SBaseResponse {
         return dataService.wallService.deleteByKeysList(idList)
@@ -85,7 +85,7 @@ class WallController {
      * @param   request     更新请求
      * @return  更新结果应答信息
      */
-    @ApiOperation(value = "更新墙", notes = "")
+    @Operation(summary = "更新墙", description =  "")
     @PostMapping(value = ["/update"])
     fun update(@RequestBody request: SUpdateRequest<Wall>): SBaseResponse {
         return dataService.wallService.updateList(request)
@@ -97,7 +97,7 @@ class WallController {
      * @param   request     查询请求
      * @return  查询结果应答信息
      */
-    @ApiOperation(value = "查询墙", notes = "")
+    @Operation(summary = "查询墙", description =  "")
     @PostMapping(value = ["/query"])
     fun query(@RequestBody request: SQueryRequest): SQueryResponse<Wall> {
         return dataService.wallService.pageQuery(request)
@@ -106,7 +106,7 @@ class WallController {
     /**
      * 根据条件查询统计数量
      */
-    @ApiOperation(value = "根据条件查询统计数量", notes = "")
+    @Operation(summary = "根据条件查询统计数量", description =  "")
     @PostMapping(value = ["/count"])
     fun count(@RequestBody request: SCountRequest): SCountResponse {
         return dataService.wallService.count(request)

+ 8 - 8
revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelEntity/WindowController.kt

@@ -30,8 +30,8 @@ import com.persagy.service.models.responses.SBaseResponse
 import com.persagy.service.models.responses.SCountResponse
 import com.persagy.service.models.responses.SCreateResponse
 import com.persagy.service.models.responses.SQueryResponse
-import io.swagger.annotations.Api
-import io.swagger.annotations.ApiOperation
+import io.swagger.v3.oas.annotations.tags.Tag
+import io.swagger.v3.oas.annotations.Operation
 import org.slf4j.LoggerFactory
 import org.springframework.web.bind.annotation.PostMapping
 import org.springframework.web.bind.annotation.RequestBody
@@ -43,7 +43,7 @@ import org.springframework.web.bind.annotation.RestController
  *
  * @author jxing
  */
-@Api(tags = ["构件-窗接口"])
+@Tag(name = "构件-窗接口")
 @RestController
 @RequestMapping("/window")
 class WindowController {
@@ -61,7 +61,7 @@ class WindowController {
      * @param   entity     实体
      * @return  创建结果应答信息
      */
-    @ApiOperation(value = "创建窗", notes = "")
+    @Operation(summary = "创建窗", description =  "")
     @PostMapping(value = ["/create"])
     fun create(@RequestBody entity: SCreateRequest<Window>): SCreateResponse<Window> {
         return dataService.windowService.createList(entity)
@@ -73,7 +73,7 @@ class WindowController {
      * @param   idList      窗ID列表
      * @return  删除结果应答信息
      */
-    @ApiOperation(value = "删除窗", notes = "")
+    @Operation(summary = "删除窗", description =  "")
     @PostMapping(value = ["/delete"])
     fun delete(@RequestBody idList: ArrayList<Window>): SBaseResponse {
         return dataService.windowService.deleteByKeysList(idList)
@@ -85,7 +85,7 @@ class WindowController {
      * @param   request     更新请求
      * @return  更新结果应答信息
      */
-    @ApiOperation(value = "更新窗", notes = "")
+    @Operation(summary = "更新窗", description =  "")
     @PostMapping(value = ["/update"])
     fun update(@RequestBody request: SUpdateRequest<Window>): SBaseResponse {
         return dataService.windowService.updateList(request)
@@ -97,7 +97,7 @@ class WindowController {
      * @param   request     查询请求
      * @return  查询结果应答信息
      */
-    @ApiOperation(value = "查询窗", notes = "")
+    @Operation(summary = "查询窗", description =  "")
     @PostMapping(value = ["/query"])
     fun query(@RequestBody request: SQueryRequest): SQueryResponse<Window> {
         return dataService.windowService.pageQuery(request)
@@ -106,7 +106,7 @@ class WindowController {
     /**
      * 根据条件查询统计数量
      */
-    @ApiOperation(value = "根据条件查询统计数量", notes = "")
+    @Operation(summary = "根据条件查询统计数量", description =  "")
     @PostMapping(value = ["/count"])
     fun count(@RequestBody request: SCountRequest): SCountResponse {
         return dataService.windowService.count(request)

+ 11 - 11
revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelFile/FloorModelController.kt

@@ -42,8 +42,8 @@ import com.persagy.service.models.responses.SBaseResponse
 import com.persagy.service.models.responses.SCountResponse
 import com.persagy.service.models.responses.SCreateResponse
 import com.persagy.service.models.responses.SQueryResponse
-import io.swagger.annotations.Api
-import io.swagger.annotations.ApiOperation
+import io.swagger.v3.oas.annotations.tags.Tag
+import io.swagger.v3.oas.annotations.Operation
 import org.slf4j.LoggerFactory
 import org.springframework.beans.factory.annotation.Autowired
 import org.springframework.web.bind.annotation.PostMapping
@@ -56,7 +56,7 @@ import org.springframework.web.bind.annotation.RestController
  *
  * @author jxing
  */
-@Api(tags = ["楼层模型接口"])
+@Tag(name = "楼层模型接口")
 @RestController
 @RequestMapping("/model-floor")
 class FloorModelController {
@@ -92,7 +92,7 @@ class FloorModelController {
      * @param   request     查询请求
      * @return  查询结果应答信息
      */
-    @ApiOperation(value = "查询文件夹下的所有楼层", notes = "")
+    @Operation(summary = "查询文件夹下的所有楼层", description =  "")
     @PostMapping(value = ["/query-list"])
     fun queryList(@RequestBody request: SQueryRequest): SQueryResponse<FloorModelView> {
         val response = FloorModelService.pageQuery(request)
@@ -109,7 +109,7 @@ class FloorModelController {
      * @param   request     查询请求
      * @return  查询结果应答信息
      */
-    @ApiOperation(value = "查询文件夹下的所有楼层", notes = "")
+    @Operation(summary = "查询文件夹下的所有楼层", description =  "")
     @PostMapping(value = ["/query-list-missing"])
     fun queryListWithMissing(@RequestBody request: SQueryRequest): SQueryResponse<FloorModelView> {
         val response = FloorModelService.pageQuery(request)
@@ -129,7 +129,7 @@ class FloorModelController {
      * @param   request     查询请求
      * @return  查询结果应答信息
      */
-    @ApiOperation(value = "查询楼层", notes = "")
+    @Operation(summary = "查询楼层", description =  "")
     @PostMapping(value = ["/query"])
     fun query(@RequestBody request: SQueryRequest): SQueryResponse<FloorModel> {
         val sb = StringBuilder()
@@ -151,7 +151,7 @@ class FloorModelController {
      * @param   entity     实体
      * @return  创建结果应答信息
      */
-    @ApiOperation(value = "创建模型楼层", notes = "")
+    @Operation(summary = "创建模型楼层", description =  "")
     @PostMapping(value = ["/create"])
     fun create(@RequestBody entity: SCreateRequest<FloorModel>): SCreateResponse<FloorModel> {
         entity.content.stream().forEach { x ->
@@ -167,7 +167,7 @@ class FloorModelController {
      * @param   idList      删除模型文件夹ID列表
      * @return  删除结果应答信息
      */
-    @ApiOperation(value = "删除模型文件夹", notes = "")
+    @Operation(summary = "删除模型文件夹", description =  "")
     @PostMapping(value = ["/delete"])
     fun delete(@RequestBody idList: ArrayList<FloorModel>): SBaseResponse {
         return dataService.floorModelService.deleteByKeysList(idList)
@@ -179,7 +179,7 @@ class FloorModelController {
      * @param   request     更新请求
      * @return  更新结果应答信息
      */
-    @ApiOperation(value = "更新模型文件名字", notes = "")
+    @Operation(summary = "更新模型文件名字", description =  "")
     @PostMapping(value = ["/update"])
     fun update(@RequestBody request: SUpdateRequest<FloorModel>): SBaseResponse {
         return dataService.floorModelService.updateList(request)
@@ -188,7 +188,7 @@ class FloorModelController {
     /**
      * 根据条件查询统计数量
      */
-    @ApiOperation(value = "根据条件查询统计数量", notes = "")
+    @Operation(summary = "根据条件查询统计数量", description =  "")
     @PostMapping(value = ["/count"])
     fun count(@RequestBody request: SCountRequest): SCountResponse {
         val sb = StringBuilder()
@@ -207,7 +207,7 @@ class FloorModelController {
     /**
      * 绑定数据中心楼层id, 并生成底图文件上传文件服务器
      */
-    @ApiOperation(value = "绑定数据中心楼层id (FloorId), 并生成底图文件上传文件服务器", notes = "输入需要Id(模型文件管理id), FloorId(数据中心楼层id)")
+    @Operation(summary = "绑定数据中心楼层id (FloorId), 并生成底图文件上传文件服务器", description =  "输入需要Id(模型文件管理id), FloorId(数据中心楼层id)")
     @PostMapping(value = ["/bind"])
     fun bind(@RequestBody request: FloorModel): SBaseResponse {
         try {

+ 16 - 16
revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelFile/ModelFileController.kt

@@ -46,8 +46,8 @@ import com.persagy.service.models.responses.SBaseResponse
 import com.persagy.service.models.responses.SCountResponse
 import com.persagy.service.models.responses.SCreateResponse
 import com.persagy.service.models.responses.SQueryResponse
-import io.swagger.annotations.Api
-import io.swagger.annotations.ApiOperation
+import io.swagger.v3.oas.annotations.tags.Tag
+import io.swagger.v3.oas.annotations.Operation
 import org.slf4j.LoggerFactory
 import org.springframework.beans.factory.annotation.Autowired
 import org.springframework.web.bind.annotation.*
@@ -58,7 +58,7 @@ import java.util.*
  *
  * @author jxing
  */
-@Api(tags = ["模型文件接口"])
+@Tag(name = "模型文件接口")
 @RestController
 @RequestMapping("/model-file")
 class ModelFileController {
@@ -94,7 +94,7 @@ class ModelFileController {
      * @param   idList      删除列表
      * @return  删除结果应答信息
      */
-    @ApiOperation(value = "删除模型文件(只有记录, 文件不动)", notes = "")
+    @Operation(summary = "删除模型文件(只有记录, 文件不动)", description =  "")
     @PostMapping(value = ["/delete"])
     fun delete(@RequestBody idList: ArrayList<ModelFile>): SBaseResponse {
         return dataService.modelFileService.deleteByKeysList(idList)
@@ -106,7 +106,7 @@ class ModelFileController {
      * @param   modelFile      要删除的模型文件
      * @return  删除结果应答信息
      */
-    @ApiOperation(value = "删除模型文件 (真删除模型文件, 模型文件记录做删除标记, 有个别情况不允许删除文件)", notes = "")
+    @Operation(summary = "删除模型文件 (真删除模型文件, 模型文件记录做删除标记, 有个别情况不允许删除文件)", description =  "")
     @PostMapping(value = ["/delete-file"])
     fun deleteFile(@RequestBody modelFile: ModelFile): SBaseResponse {
         return modelFileService.removeSingle(modelFile, properties, isForce = modelFile.isForce?:false, isMarkDelete = true)
@@ -119,7 +119,7 @@ class ModelFileController {
      * @param   request     更新请求
      * @return  更新结果应答信息
      */
-    @ApiOperation(value = "更新模型记录, 并非文件", notes = "")
+    @Operation(summary = "更新模型记录, 并非文件", description =  "")
     @PostMapping(value = ["/update"])
     fun update(@RequestBody request: SUpdateRequest<ModelFile>): SBaseResponse {
         return dataService.modelFileService.updateList(request)
@@ -131,7 +131,7 @@ class ModelFileController {
      * @param   request     查询请求
      * @return  查询结果应答信息
      */
-    @ApiOperation(value = "查询模型文件", notes = "")
+    @Operation(summary = "查询模型文件", description =  "")
     @PostMapping(value = ["/query"])
     fun query(@RequestBody request: SQueryRequest): SQueryResponse<ModelFile> {
         if(SPageContext.getHeader("ProjectId") != null && SPageContext.getHeader("ProjectId")!!.isNotEmpty())
@@ -145,7 +145,7 @@ class ModelFileController {
      * @param   entity     实体
      * @return  创建结果应答信息
      */
-    @ApiOperation(value = "创建模型文件", notes = "")
+    @Operation(summary = "创建模型文件", description =  "")
     @PostMapping(value = ["/create"])
     fun create(@RequestBody entity: SCreateRequest<ModelFile>): SCreateResponse<ModelFile> {
         entity.content.stream().forEach { x ->
@@ -160,7 +160,7 @@ class ModelFileController {
 //     */
 //    @PostMapping("/uploadaa")
 //    @ResponseBody
-//    @ApiOperation(value = "上传模型文件接口", notes = "")
+//    @Operation(summary = "上传模型文件接口", description =  "")
 //    fun multiUpload(@RequestParam("file") file: MultipartFile, @RequestParam("model") modelFile: ModelFile): SBaseResponse {
 //        try {
 //            // 检查是否可以上传(所属楼层模型是否存在, 是否有人正在上传模型), 检测文件是否正常
@@ -220,7 +220,7 @@ class ModelFileController {
      */
     @PostMapping("/upload")
     @ResponseBody
-    @ApiOperation(value = "准备分片上传模型文件接口", notes = "")
+    @Operation(summary = "准备分片上传模型文件接口", description =  "")
     fun multipartUpload(@RequestBody request: UploadModelRequest): SBaseResponse {
         try {
             modelFileService.checkUploadInputValid(request)
@@ -259,7 +259,7 @@ class ModelFileController {
 
     @PostMapping("/merge")
     @ResponseBody
-    @ApiOperation(value = "在完成分片上传之后, 合并所有已上传的分片接口", notes = "")
+    @Operation(summary = "在完成分片上传之后, 合并所有已上传的分片接口", description =  "")
     fun mergeMultipartUpload(@RequestBody request: MergeMultipartRequest): SBaseResponse {
         try{
             modelFileService.checkMergeUploadInputValid(request)
@@ -299,7 +299,7 @@ class ModelFileController {
     @Autowired
     lateinit var producer: JMSProducer
 
-    @ApiOperation(value = "测试发送JMS消息", notes = "")
+    @Operation(summary = "测试发送JMS消息", description =  "")
     @PostMapping(value = ["/sendmsg"])
     fun testJMS(@RequestBody request: String) : SBaseResponse{
         try {
@@ -313,7 +313,7 @@ class ModelFileController {
     /**
      * 根据条件查询统计数量
      */
-    @ApiOperation(value = "根据条件查询统计数量", notes = "")
+    @Operation(summary = "根据条件查询统计数量", description =  "")
     @PostMapping(value = ["/count"])
     fun count(@RequestBody request: SCountRequest): SCountResponse {
         val sb = StringBuilder()
@@ -334,7 +334,7 @@ class ModelFileController {
 //     */
 //    @PostMapping("/upload")
 //    @ResponseBody
-//    @ApiOperation(value = "上传模型文件接口", notes = "")
+//    @Operation(summary = "上传模型文件接口", description =  "")
 //    fun multiUpload(request : HttpServletRequest, @RequestParam("note") note: String) : String {
 //        val multipartRequest = request as MultipartHttpServletRequest
 //        val jsonTxt = note
@@ -357,7 +357,7 @@ class ModelFileController {
     /**
      * 模型文件json数据导入
      */
-    @ApiOperation(value = "模型文件json数据导入", notes = "")
+    @Operation(summary = "模型文件json数据导入", description =  "")
     @GetMapping(value = ["/export"])
     fun export(@RequestParam modelId: String): SBaseResponse {
         try {
@@ -368,7 +368,7 @@ class ModelFileController {
             // 解析json
             jsonData = jsonAnalyzerService.analyzeJsonzFile(fileStream)
             val importResult = jsonAnalyzerService.importModelData(jsonData!!, "")
-            return SBaseResponse(SResponseType.success)
+            return importResult
         }catch (e : Exception){
             return SBaseResponse(SResponseType.failure, e.message?: "")
         }

+ 9 - 9
revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelFile/ModelFileFolderController.kt

@@ -35,8 +35,8 @@ import com.persagy.service.models.responses.SBaseResponse
 import com.persagy.service.models.responses.SCountResponse
 import com.persagy.service.models.responses.SCreateResponse
 import com.persagy.service.models.responses.SQueryResponse
-import io.swagger.annotations.Api
-import io.swagger.annotations.ApiOperation
+import io.swagger.v3.oas.annotations.tags.Tag
+import io.swagger.v3.oas.annotations.Operation
 import org.slf4j.LoggerFactory
 import org.springframework.beans.factory.annotation.Autowired
 import org.springframework.web.bind.annotation.PostMapping
@@ -49,7 +49,7 @@ import org.springframework.web.bind.annotation.RestController
  *
  * @author jxing
  */
-@Api(tags = ["模型文件夹接口"])
+@Tag(name = "模型文件夹接口")
 @RestController
 @RequestMapping("/model-folder")
 class ModelFileFolderController {
@@ -69,7 +69,7 @@ class ModelFileFolderController {
      * @param   entity     实体
      * @return  创建结果应答信息
      */
-    @ApiOperation(value = "创建模型文件夹", notes = "")
+    @Operation(summary = "创建模型文件夹", description =  "")
     @PostMapping(value = ["/create"])
     fun create(@RequestBody entity: SCreateRequest<ModelFileFolder>): SCreateResponse<ModelFileFolder> {
         entity.content.stream().forEach { x ->
@@ -85,7 +85,7 @@ class ModelFileFolderController {
      * @param   idList      删除模型文件夹ID列表
      * @return  删除结果应答信息
      */
-    @ApiOperation(value = "删除模型文件夹", notes = "")
+    @Operation(summary = "删除模型文件夹", description =  "")
     @PostMapping(value = ["/delete"])
     fun delete(@RequestBody idList: ArrayList<ModelFileFolder>): SBaseResponse {
         return ModelFileFolderService.deleteFolder(idList)
@@ -97,7 +97,7 @@ class ModelFileFolderController {
      * @param   request     更新请求
      * @return  更新结果应答信息
      */
-    @ApiOperation(value = "更新模型文件夹名字", notes = "")
+    @Operation(summary = "更新模型文件夹名字", description =  "")
     @PostMapping(value = ["/update"])
     fun update(@RequestBody request: SUpdateRequest<ModelFileFolder>): SBaseResponse {
         return dataService.folderService.updateList(request)
@@ -109,7 +109,7 @@ class ModelFileFolderController {
      * @param   request     查询请求
      * @return  查询结果应答信息
      */
-    @ApiOperation(value = "查询模型文件夹", notes = "")
+    @Operation(summary = "查询模型文件夹", description =  "")
     @PostMapping(value = ["/query"])
     fun query(@RequestBody request: SQueryRequest): SQueryResponse<ModelFileFolder> {
         var sb = StringBuilder()
@@ -128,7 +128,7 @@ class ModelFileFolderController {
     /**
      * 根据条件查询统计数量
      */
-    @ApiOperation(value = "根据条件查询统计数量", notes = "")
+    @Operation(summary = "根据条件查询统计数量", description =  "")
     @PostMapping(value = ["/count"])
     fun count(@RequestBody request: SCountRequest): SCountResponse {
         val sb = StringBuilder()
@@ -148,7 +148,7 @@ class ModelFileFolderController {
     /**
      * 根据模型id获取模型所属楼层名, 所属文件夹名
      */
-    @ApiOperation(value = "根据楼层id获取楼层名, 所属文件夹名", notes = "只填楼层Id")
+    @Operation(summary = "根据楼层id获取楼层名, 所属文件夹名", description =  "只填楼层Id")
     @PostMapping(value = ["/get-name"])
     fun getName(@RequestBody request: ModelFile): SBaseResponse {
         if(request.id.isNullOrBlank()){

+ 5 - 5
revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelFile/ModelMonitorController.kt

@@ -6,8 +6,8 @@ import com.persagy.service.models.requests.SQueryRequest
 import com.persagy.service.models.requests.SUpdateRequest
 import com.persagy.service.models.responses.SBaseResponse
 import com.persagy.service.models.responses.SQueryResponse
-import io.swagger.annotations.Api
-import io.swagger.annotations.ApiOperation
+import io.swagger.v3.oas.annotations.tags.Tag
+import io.swagger.v3.oas.annotations.Operation
 import org.slf4j.LoggerFactory
 import org.springframework.web.bind.annotation.PostMapping
 import org.springframework.web.bind.annotation.RequestBody
@@ -19,7 +19,7 @@ import org.springframework.web.bind.annotation.RestController
  *
  * @author jxing
  */
-@Api(tags = ["楼层模型接口"])
+@Tag(name = "楼层模型接口")
 @RestController
 @RequestMapping("/model-monitor")
 class ModelMonitorController {
@@ -37,7 +37,7 @@ class ModelMonitorController {
      * @param   request     查询请求
      * @return  查询结果应答信息
      */
-    @ApiOperation(value = "查询监控记录", notes = "")
+    @Operation(summary = "查询监控记录", description =  "")
     @PostMapping(value = ["/query"])
     fun query(@RequestBody request: SQueryRequest): SQueryResponse<ModelMonitor> {
         return dataService.modelMonitorService.pageQuery(request)
@@ -49,7 +49,7 @@ class ModelMonitorController {
      * @param   request     更新请求
      * @return  更新结果应答信息
      */
-    @ApiOperation(value = "更新监控记录", notes = "")
+    @Operation(summary = "更新监控记录", description =  "")
     @PostMapping(value = ["/update"])
     fun update(@RequestBody request: SUpdateRequest<ModelMonitor>): SBaseResponse {
         return dataService.modelMonitorService.updateList(request)

+ 5 - 5
revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelFile/ReportController.kt

@@ -18,8 +18,8 @@ import com.persagy.service.models.enums.SResponseType
 import com.persagy.service.models.responses.SBaseResponse
 import com.persagy.service.models.responses.SQueryResponse
 import com.persagy.service.utils.SSpringContextUtil
-import io.swagger.annotations.Api
-import io.swagger.annotations.ApiOperation
+import io.swagger.v3.oas.annotations.tags.Tag
+import io.swagger.v3.oas.annotations.Operation
 import org.springframework.beans.factory.annotation.Autowired
 import org.springframework.web.bind.annotation.PostMapping
 import org.springframework.web.bind.annotation.RequestBody
@@ -33,7 +33,7 @@ import javax.servlet.http.HttpServletResponse
  *
  * @author jxing
  */
-@Api(tags = ["报告接口"])
+@Tag(name = "报告接口")
 @RestController
 @RequestMapping("/report")
 class ReportController {
@@ -52,7 +52,7 @@ class ReportController {
     /**
      * 根据模型id获取模型所属楼层名, 所属文件夹名
      */
-    @ApiOperation(value = "非阻塞性报告列表", notes = "填文件夹Id和项目id")
+    @Operation(summary = "非阻塞性报告列表", description =  "填文件夹Id和项目id")
     @PostMapping(value = ["/list/non-blocking"])
     fun getNonBlockingReportList(@RequestBody(required = true) request: ModelFileFolder) : SBaseResponse{
         val errorResponse = SBaseResponse(SResponseType.failure)
@@ -91,7 +91,7 @@ class ReportController {
     /**
      * 根据模型id获取模型所属楼层名, 所属文件夹名
      */
-    @ApiOperation(value = "下载非阻塞性报告", notes = "填文件夹Id和项目id")
+    @Operation(summary = "下载非阻塞性报告", description =  "填文件夹Id和项目id")
     @PostMapping(value = ["/non-blocking"])
     fun getNonBlockingReport(response : HttpServletResponse, @RequestBody(required = true) request: ModelFileFolder){
         val errorResponse = SBaseResponse(SResponseType.failure)

+ 64 - 0
revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelFile/TestController.kt

@@ -0,0 +1,64 @@
+package com.persagy.revit.controllers.modelFile
+
+import com.persagy.base.extensions.toJson
+import com.persagy.revit.models.config.MyProperties
+import com.persagy.revit.models.jsonAnalyzer.AllComponents
+import com.persagy.revit.models.jsonAnalyzer.BaseObj
+import com.persagy.revit.services.CommonService
+import com.persagy.revit.services.http.HttpService
+import com.persagy.revit.services.json.JSONAnalyzerService
+import io.swagger.v3.oas.annotations.Operation
+import io.swagger.v3.oas.annotations.tags.Tag
+import org.springframework.beans.factory.annotation.Autowired
+import org.springframework.web.bind.annotation.GetMapping
+import org.springframework.web.bind.annotation.RequestMapping
+import org.springframework.web.bind.annotation.RestController
+
+/**
+ * @author Cainga
+ * @date 2020/12/8 9:35
+ */
+@Tag(name = "测试接口")
+@RestController
+@RequestMapping("/test")
+open class TestController {
+
+    @Autowired
+    private val prop: MyProperties? = null
+
+    @Autowired
+    lateinit var jsonAnalyzerService : JSONAnalyzerService
+
+    @Autowired
+    lateinit var myProperties : MyProperties
+
+    /**
+     * 测试
+     */
+    @Operation(summary = "模型文件json数据导入", description =  "")
+    @GetMapping(value = ["/test"])
+    fun test11(){
+
+
+        "a67ac1ec8fef11ea9dfea9a679dda25a"
+        val id = "03e4dbc2192011ebb7c2517abf7cc6d61"
+        var jsonData : BaseObj<AllComponents>?
+        var size = 0L
+        try {
+            val url = CommonService.getExportJSONDownloadUrl(id, myProperties)
+            println(url)
+//            size = CommonService.getRemoteHttpFileSize(url)
+            val fileStream = HttpService.getInputStream(url)
+            //解析json
+            jsonData = jsonAnalyzerService.analyzeJsonzFile(fileStream)
+
+//            jsonData = JSONObject.parseObject(josn,BaseObj<AllComponents>().javaClass)
+
+            val importResult = jsonAnalyzerService.importModelData(jsonData!!, "")
+            println(importResult.toJson())
+        }catch (e : Exception){
+            println(e.message)
+        }
+
+    }
+}

+ 5 - 5
revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/modelFile/UploadController.kt

@@ -7,8 +7,8 @@ import com.persagy.revit.services.json.JSONAnalyzerService
 import com.persagy.revit.services.monitor.ModelMonitorService
 import com.persagy.service.models.enums.SResponseType
 import com.persagy.service.models.responses.SBaseResponse
-import io.swagger.annotations.Api
-import io.swagger.annotations.ApiOperation
+import io.swagger.v3.oas.annotations.tags.Tag
+import io.swagger.v3.oas.annotations.Operation
 import org.slf4j.LoggerFactory
 import org.springframework.beans.factory.annotation.Autowired
 import org.springframework.web.bind.annotation.*
@@ -21,7 +21,7 @@ import java.util.*
  *
  * @author jxing
  */
-@Api(tags = ["上传json-zip接口"])
+@Tag(name = "上传json-zip接口")
 @RestController
 @RequestMapping("/upload-json-zip")
 class UploadController {
@@ -51,7 +51,7 @@ class UploadController {
      */
     @PostMapping("/upload")
     @ResponseBody
-    @ApiOperation(value = "上传Zip文件", notes = "")
+    @Operation(summary = "上传Zip文件", description =  "")
     fun upload(@RequestParam("file") file: MultipartFile): SBaseResponse {
         val beginTime = Date()
         var modelId : String? = null
@@ -91,7 +91,7 @@ class UploadController {
 //     */
 //    @PostMapping("/upload_old")
 //    @ResponseBody
-//    @ApiOperation(value = "上传Zip文件", notes = "")
+//    @Operation(summary = "上传Zip文件", description =  "")
 //    fun upload_old(@RequestParam("file") file: MultipartFile): SBaseResponse {
 //        try {
 //            val map = UploadService.getJSONObjectMap(file.inputStream)

+ 6 - 6
revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/relation/CheckController.kt

@@ -23,8 +23,8 @@ package com.persagy.revit.controllers.relation
 import com.persagy.revit.models.responses.CheckFloorMissResponse
 import com.persagy.revit.models.responses.CheckFloorSequenceResponse
 import com.persagy.revit.models.responses.CheckGridResponse
-import io.swagger.annotations.Api
-import io.swagger.annotations.ApiOperation
+import io.swagger.v3.oas.annotations.tags.Tag
+import io.swagger.v3.oas.annotations.Operation
 import org.slf4j.LoggerFactory
 import org.springframework.web.bind.annotation.PostMapping
 import org.springframework.web.bind.annotation.RequestMapping
@@ -35,7 +35,7 @@ import org.springframework.web.bind.annotation.RestController
  *
  * @author 庞利祥
  */
-@Api(tags = ["检查-楼层审核"])
+@Tag(name = "检查-楼层审核")
 @RestController
 @RequestMapping("/check")
 class CheckController {
@@ -47,7 +47,7 @@ class CheckController {
     /**
      * 楼层缺失检查
      */
-    @ApiOperation(value = "楼层缺失检查", notes = "")
+    @Operation(summary = "楼层缺失检查", description =  "")
     @PostMapping(value = ["/floor-miss"])
     fun floorMiss(): CheckFloorMissResponse {
         return CheckFloorMissResponse()
@@ -56,7 +56,7 @@ class CheckController {
     /**
      * 楼层顺序号检查
      */
-    @ApiOperation(value = "楼层缺失检查", notes = "")
+    @Operation(summary = "楼层缺失检查", description =  "")
     @PostMapping(value = ["/floor-sequence"])
     fun floorSequence(): CheckFloorSequenceResponse {
         return CheckFloorSequenceResponse()
@@ -65,7 +65,7 @@ class CheckController {
     /**
      * 轴网检查
      */
-    @ApiOperation(value = "轴网检查", notes = "")
+    @Operation(summary = "轴网检查", description =  "")
     @PostMapping(value = ["/grid"])
     fun grid(): CheckGridResponse {
         return CheckGridResponse()

+ 4 - 4
revit-algorithm/src/main/kotlin/com/persagy/revit/controllers/relation/RelationCheckController.kt

@@ -5,8 +5,8 @@ import com.persagy.revit.models.request.VerticalPipeCheckRequest
 import com.persagy.revit.services.BaseDataService
 import com.persagy.service.models.enums.SResponseType
 import com.persagy.service.models.responses.SBaseResponse
-import io.swagger.annotations.Api
-import io.swagger.annotations.ApiOperation
+import io.swagger.v3.oas.annotations.tags.Tag
+import io.swagger.v3.oas.annotations.Operation
 import org.slf4j.LoggerFactory
 import org.springframework.web.bind.annotation.PostMapping
 import org.springframework.web.bind.annotation.RequestBody
@@ -18,7 +18,7 @@ import org.springframework.web.bind.annotation.RestController
  *
  * @author jxing
  */
-@Api(tags = ["关系检查接口"])
+@Tag(name = "关系检查接口")
 @RestController
 @RequestMapping("/rel-check")
 class RelationCheckController {
@@ -32,7 +32,7 @@ class RelationCheckController {
     /**
      * 立管完整性(是否对齐)检查
      */
-    @ApiOperation(value = "立管完整性(是否对齐)检查", notes = "")
+    @Operation(summary = "立管完整性(是否对齐)检查", description =  "")
     @PostMapping(value = ["/vertical-pipe"])
     fun verticalPipe(@RequestBody request : VerticalPipeCheckRequest): SBaseResponse {
         val ret = SBaseResponse()

+ 3 - 3
revit-algorithm/src/main/kotlin/com/persagy/revit/models/baseGraph/BGBaseComponent.kt

@@ -1,7 +1,7 @@
 package com.persagy.revit.models.baseGraph
 
 import com.alibaba.fastjson.annotation.JSONField
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
 import javax.persistence.Column
 import javax.persistence.Id
 
@@ -13,14 +13,14 @@ import javax.persistence.Id
 open class BGBaseComponent : BGBaseEntity(){
 
     /** 模型id */
-    @ApiModelProperty(value = "模型id")
+   @Schema(description = "模型id")
     @Column(name = "id", updatable = false)
     @Id
     @JSONField(serialize = false)
     var id: String? = null
 
     /** 模型id(外键) */
-    @ApiModelProperty(value = "模型id(外键)")
+   @Schema(description = "模型id(外键)")
     @Column(name = "model_id")
     @JSONField(serialize = false)
     var modelId: String? = null

+ 3 - 3
revit-algorithm/src/main/kotlin/com/persagy/revit/models/baseGraph/BGBaseEntity.kt

@@ -1,7 +1,7 @@
 package com.persagy.revit.models.baseGraph
 
 import com.alibaba.fastjson.annotation.JSONField
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
 import java.util.*
 import javax.persistence.Column
 
@@ -12,13 +12,13 @@ import javax.persistence.Column
  */
 open class BGBaseEntity {
     /** 最后更新日期 */
-    @ApiModelProperty(value = "最后更新日期", example = "2009-04-21 13:16:00")
+   @Schema(description = "最后更新日期", example = "2009-04-21 13:16:00")
     @Column(name = "last_update", updatable = false, insertable = false)
     @JSONField(serialize = false)
     var lastUpdate: Date? = null
 
     /** 创建时间 */
-    @ApiModelProperty(value = "创建时间", example = "2017-10-15 08:30:00")
+   @Schema(description = "创建时间", example = "2017-10-15 08:30:00")
     @Column(name = "create_time", updatable = false, insertable = false)
     @JSONField(serialize = false)
     var createTime: Date? = null

+ 9 - 10
revit-algorithm/src/main/kotlin/com/persagy/revit/models/baseGraph/BGColumn.kt

@@ -23,8 +23,7 @@ package com.persagy.revit.models.baseGraph
 import com.persagy.revit.models.jsonAnalyzer.Location
 import com.alibaba.fastjson.annotation.JSONField
 import com.persagy.revit.models.jsonAnalyzer.Point
-import io.swagger.annotations.ApiModel
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
 import javax.persistence.Column
 import javax.persistence.Table
 
@@ -33,48 +32,48 @@ import javax.persistence.Table
  *
  * @author jxing
  */
-@ApiModel(description = "柱子")
+@Schema(description = "柱子")
 @Table(name = "revit.column")
 
 class BGColumn : BGBaseComponent(){
 
     /** 名称 */
-    @ApiModelProperty(value = "名称")
+   @Schema(description = "名称")
     @Column(name = "name")
     @JSONField(name = "Name")
     var name: String? = null
 
     /** 对应Revit模型id */
-    @ApiModelProperty(value = "对应Revit模型id")
+   @Schema(description = "对应Revit模型id")
     @Column(name = "source_id")
     @JSONField(name = "SourceId")
     var sourceId: String? = null
 
     /** 定位点 */
-    @ApiModelProperty(value = "定位点")
+   @Schema(description = "定位点")
     @Column(name = "location")
     @JSONField(name = "Location")
     var location: Location? = null
 
     /** 轮廓路径 */
-    @ApiModelProperty(value = "轮廓路径")
+   @Schema(description = "轮廓路径")
     @Column(name = "outline")
     @JSONField(name = "OutLine")
     var outline: ArrayList<ArrayList<Point>>? = null
 
     /** 房间边界 */
-    @ApiModelProperty(value = "房间边界")
+   @Schema(description = "房间边界")
     @Column(name = "bounding")
     @JSONField(name = "RoomBoundary")
     var bounding: Boolean? = null
 
-    @ApiModelProperty(value = "revit模型中的id")
+   @Schema(description = "revit模型中的id")
     @Column(name = "revit_id")
     @JSONField(name = "Id")
     var revitId : String? = null
 
     @JSONField(name = "ElementType")
-    @ApiModelProperty(value = "类型")
+   @Schema(description = "类型")
     @Column(name = "type")
     var elementType : String? = null
 

+ 12 - 13
revit-algorithm/src/main/kotlin/com/persagy/revit/models/baseGraph/BGDoor.kt

@@ -23,8 +23,7 @@ package com.persagy.revit.models.baseGraph
 import com.persagy.revit.models.jsonAnalyzer.Location
 import com.persagy.revit.models.jsonAnalyzer.Point
 import com.alibaba.fastjson.annotation.JSONField
-import io.swagger.annotations.ApiModel
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
 import javax.persistence.Column
 import javax.persistence.Table
 /**
@@ -32,66 +31,66 @@ import javax.persistence.Table
  *
  * @author jxing
  */
-@ApiModel(description = "门")
+@Schema(description = "门")
 @Table(name = "revit.door")
 
 class BGDoor : BGWindowDoorBase() {
 
     /** 名称 */
-    @ApiModelProperty(value = "名称")
+   @Schema(description = "名称")
     @Column(name = "name")
     @JSONField(name = "Name")
     var name: String? = null
 
     /** 对应Revit模型id */
-    @ApiModelProperty(value = "对应Revit模型id")
+   @Schema(description = "对应Revit模型id")
     @Column(name = "source_id")
     @JSONField(name = "SourceId")
     var sourceId: String? = null
 
     /** 宽度 */
-    @ApiModelProperty(value = "宽度")
+   @Schema(description = "宽度")
     @Column(name = "width")
 
     @JSONField(serialize = false)
     var width: Double? = null
 
     /** 定位点 */
-    @ApiModelProperty(value = "定位点")
+   @Schema(description = "定位点")
     @Column(name = "location")
     @JSONField(name = "Location")
     var location: Location? = null
 
     /** 轮廓线 */
-    @ApiModelProperty(value = "轮廓线")
+   @Schema(description = "轮廓线")
     @Column(name = "outline")
     @JSONField(name = "OutLine")
     var outline: ArrayList<ArrayList<Point>>? = null
 
     /** 面方向 */
-    @ApiModelProperty(value = "面方向")
+   @Schema(description = "面方向")
     @Column(name = "face_direction")
     @JSONField(name = "FaceDirection")
     var faceDirection : Point? = null
 
     /** Hand方向 */
-    @ApiModelProperty(value = "Hand方向")
+   @Schema(description = "Hand方向")
     @Column(name = "hand_direction")
     @JSONField(name = "HandDirection")
     var handDirection : Point? = null
 
-    @ApiModelProperty(value = "revit模型中的id")
+   @Schema(description = "revit模型中的id")
     @Column(name = "revit_id")
     @JSONField(name = "Id")
     var revitId : String? = null
 
     @JSONField(name = "ElementType")
-    @ApiModelProperty(value = "类型")
+   @Schema(description = "类型")
     @Column(name = "type")
     var elementType : String? = null
 
     @JSONField(name = "Thick")
-    @ApiModelProperty(value = "厚度")
+   @Schema(description = "厚度")
     @Column(name = "thick")
     var thick : Double? = null
 

+ 14 - 15
revit-algorithm/src/main/kotlin/com/persagy/revit/models/baseGraph/BGSpace.kt

@@ -25,8 +25,7 @@ import com.persagy.revit.models.jsonAnalyzer.Parameter
 import com.alibaba.fastjson.annotation.JSONField
 import com.fasterxml.jackson.annotation.JsonProperty
 import com.persagy.revit.models.jsonAnalyzer.Point
-import io.swagger.annotations.ApiModel
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
 import javax.persistence.Column
 import javax.persistence.Table
 /**
@@ -34,65 +33,65 @@ import javax.persistence.Table
  *
  * @author jxing
  */
-@ApiModel(description = "空间")
+@Schema(description = "空间")
 @Table(name = "revit.space")
 
 class BGSpace : BGBaseComponent(){
 
     /** 名称 */
-    @ApiModelProperty(value = "名称")
+   @Schema(description = "名称")
     @Column(name = "name")
     @JSONField(name = "Name")
     var name: String? = null
 
     /** 对应Revit模型id */
-    @ApiModelProperty(value = "对应Revit模型id")
+   @Schema(description = "对应Revit模型id")
     @Column(name = "source_id")
     @JSONField(name = "SourceId")
     var sourceId: String? = null
 
     /** 补充信息 */
-    @ApiModelProperty(value = "补充信息")
+   @Schema(description = "补充信息")
     @Column(name = "tag")
     @JSONField(name = "Tag")
     var tag: String? = null
 
     /** 定位点 */
-    @ApiModelProperty(value = "定位点")
+   @Schema(description = "定位点")
     @Column(name = "location")
     @JSONField(name = "Location")
     var location: Location? = null
 
     /** 空间轮廓 */
-    @ApiModelProperty(value = "空间轮廓")
+   @Schema(description = "空间轮廓")
     @Column(name = "outline")
     @JSONField(name = "OutLine")
     var outline: ArrayList<ArrayList<Point>>? = null
 
     /** 轮廓线段 */
-    @ApiModelProperty(value = "轮廓线段")
+   @Schema(description = "轮廓线段")
     @Column(name = "boundary_segments")
     @JSONField(name = "BoundarySegments")
     var boundarySegment: ArrayList<ArrayList<String>>? = null
 
     /** 参数列表 */
-    @ApiModelProperty(value = "参数列表")
+   @Schema(description = "参数列表")
     @Column(name = "parameters")
     @JSONField(name = "Parameters")
     var parameters: ArrayList<Parameter>? = null
 
-    @ApiModelProperty(value = "revit模型中的id")
+   @Schema(description = "revit模型中的id")
     @Column(name = "revit_id")
     @JSONField(name = "Id")
     var revitId : String? = null
 
     @JSONField(name = "ElementType")
-    @ApiModelProperty(value = "类型")
+   @Schema(description = "类型")
     @Column(name = "type")
     var elementType : String? = null
 
     /** 万达专用信息点 */
-    @ApiModelProperty(value = "万达专用信息点")
+   @Schema(description = "万达专用信息点")
     @Column(name = "wd_room_func_id")
     @JSONField(name = "WDRoomFuncID")
     @JsonProperty("WDRoomFuncID")
@@ -100,14 +99,14 @@ class BGSpace : BGBaseComponent(){
 
 
     /** 万达专用信息点 */
-    @ApiModelProperty(value = "万达专用信息点")
+   @Schema(description = "万达专用信息点")
     @Column(name = "wd_room_func_name")
     @JSONField(name = "WDRoomFuncName")
     @JsonProperty("WDRoomFuncName")
     var wDRoomFuncName : String? = null
 
     @JSONField(name = "Height")
-    @ApiModelProperty(value = "空间高度")
+   @Schema(description = "空间高度")
     @Column(name = "height")
     var height : Double? = null
 

+ 8 - 9
revit-algorithm/src/main/kotlin/com/persagy/revit/models/baseGraph/BGVirtualWall.kt

@@ -23,8 +23,7 @@ package com.persagy.revit.models.baseGraph
 import com.persagy.revit.models.jsonAnalyzer.Location
 import com.alibaba.fastjson.annotation.JSONField
 import com.persagy.revit.models.jsonAnalyzer.Point
-import io.swagger.annotations.ApiModel
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
 import javax.persistence.Column
 import javax.persistence.Table
 /**
@@ -32,42 +31,42 @@ import javax.persistence.Table
  *
  * @author jxing
  */
-@ApiModel(description = "虚拟墙")
+@Schema(description = "虚拟墙")
 @Table(name = "revit.virtual_wall")
 
 class BGVirtualWall : BGBaseComponent() {
 
     /** 名称 */
-    @ApiModelProperty(value = "名称")
+   @Schema(description = "名称")
     @Column(name = "name")
     @JSONField(name = "Name")
     var name: String? = null
 
     /** 对应Revit模型id */
-    @ApiModelProperty(value = "对应Revit模型id")
+   @Schema(description = "对应Revit模型id")
     @Column(name = "source_id")
     @JSONField(name = "SourceId")
     var sourceId: String? = null
 
     /** 墙路径 */
-    @ApiModelProperty(value = "墙路径")
+   @Schema(description = "墙路径")
     @Column(name = "location")
     @JSONField(name = "Location")
     var location : Location? = null
 
     /** 墙轮廓 */
-    @ApiModelProperty(value = "墙轮廓")
+   @Schema(description = "墙轮廓")
     @Column(name = "outline")
     @JSONField(name = "OutLine")
     var outline: ArrayList<ArrayList<Point>>? = null
 
-    @ApiModelProperty(value = "revit模型中的id")
+   @Schema(description = "revit模型中的id")
     @Column(name = "revit_id")
     @JSONField(name = "Id")
     var revitId : String? = null
 
     @JSONField(name = "ElementType")
-    @ApiModelProperty(value = "类型")
+   @Schema(description = "类型")
     @Column(name = "type")
     var elementType : String? = null
 

+ 10 - 11
revit-algorithm/src/main/kotlin/com/persagy/revit/models/baseGraph/BGWall.kt

@@ -23,8 +23,7 @@ package com.persagy.revit.models.baseGraph
 import com.persagy.revit.models.jsonAnalyzer.Location
 import com.persagy.revit.models.jsonAnalyzer.Point
 import com.alibaba.fastjson.annotation.JSONField
-import io.swagger.annotations.ApiModel
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
 import javax.persistence.Column
 import javax.persistence.Table
 /**
@@ -32,55 +31,55 @@ import javax.persistence.Table
  *
  * @author jxing
  */
-@ApiModel(description = "墙")
+@Schema(description = "墙")
 @Table(name = "revit.wall")
 
 class BGWall : BGBaseComponent() {
 
     /** 层id */
-    @ApiModelProperty(value = "层id")
+   @Schema(description = "层id")
     @Column(name = "level_id")
 
     @JSONField(serialize = false)
     var levelId: String? = null
 
     /** 名称 */
-    @ApiModelProperty(value = "名称")
+   @Schema(description = "名称")
     @Column(name = "name")
     @JSONField(name = "Name")
     var name: String? = null
 
     /** 对应Revit模型id */
-    @ApiModelProperty(value = "对应Revit模型id")
+   @Schema(description = "对应Revit模型id")
     @Column(name = "source_id")
     @JSONField(name = "SourceId")
     var sourceId: String? = null
 
     /** 厚度 */
-    @ApiModelProperty(value = "厚度")
+   @Schema(description = "厚度")
     @Column(name = "width")
     @JSONField(name = "Width")
     var width: Double? = null
 
     /** 墙路径 */
-    @ApiModelProperty(value = "墙路径")
+   @Schema(description = "墙路径")
     @Column(name = "location")
     @JSONField(name = "Location")
     var location: Location? = null
 
     /** 墙轮廓 */
-    @ApiModelProperty(value = "墙轮廓")
+   @Schema(description = "墙轮廓")
     @Column(name = "outline")
     @JSONField(name = "OutLine")
     var outline: ArrayList<ArrayList<Point>>? = null
 
-    @ApiModelProperty(value = "revit模型中的id")
+   @Schema(description = "revit模型中的id")
     @Column(name = "revit_id")
     @JSONField(name = "Id")
     var revitId : String? = null
 
     @JSONField(name = "ElementType")
-    @ApiModelProperty(value = "类型")
+   @Schema(description = "类型")
     @Column(name = "type")
     var elementType : String? = null
 

+ 10 - 11
revit-algorithm/src/main/kotlin/com/persagy/revit/models/baseGraph/BGWindow.kt

@@ -23,8 +23,7 @@ package com.persagy.revit.models.baseGraph
 import com.persagy.revit.models.jsonAnalyzer.Location
 import com.persagy.revit.models.jsonAnalyzer.Point
 import com.alibaba.fastjson.annotation.JSONField
-import io.swagger.annotations.ApiModel
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
 import javax.persistence.Column
 import javax.persistence.Table
 /**
@@ -32,54 +31,54 @@ import javax.persistence.Table
  *
  * @author jxing
  */
-@ApiModel(description = "窗")
+@Schema(description = "窗")
 @Table(name = "revit.window")
 
 class BGWindow : BGWindowDoorBase() {
 
     /** 名称 */
-    @ApiModelProperty(value = "名称")
+   @Schema(description = "名称")
     @Column(name = "name")
     @JSONField(name = "Name")
     var name: String? = null
 
     /** 宽度 */
-    @ApiModelProperty(value = "宽度")
+   @Schema(description = "宽度")
     @Column(name = "width")
     @JSONField(serialize = false)
     var width: Double? = null
 
     /** 对应Revit模型id */
-    @ApiModelProperty(value = "对应Revit模型id")
+   @Schema(description = "对应Revit模型id")
     @Column(name = "source_id")
     @JSONField(name = "SourceId")
     var sourceId: String? = null
 
     /** 定位点 */
-    @ApiModelProperty(value = "定位点")
+   @Schema(description = "定位点")
     @Column(name = "location")
     @JSONField(name = "Location")
     var location: Location? = null
 
     /** 轮廓线 */
-    @ApiModelProperty(value = "轮廓线")
+   @Schema(description = "轮廓线")
     @Column(name = "outline")
     @JSONField(name = "OutLine")
     var outline: ArrayList<ArrayList<Point>>? = null
 
 
-    @ApiModelProperty(value = "revit模型中的id")
+   @Schema(description = "revit模型中的id")
     @Column(name = "revit_id")
     @JSONField(name = "Id")
     var revitId : String? = null
 
     @JSONField(name = "ElementType")
-    @ApiModelProperty(value = "类型")
+   @Schema(description = "类型")
     @Column(name = "type")
     var elementType : String? = null
 
     @JSONField(name = "Thick")
-    @ApiModelProperty(value = "厚度")
+   @Schema(description = "厚度")
     @Column(name = "thick")
     var thick : Double? = null
 

+ 3 - 3
revit-algorithm/src/main/kotlin/com/persagy/revit/models/baseGraph/BGWindowDoorBase.kt

@@ -2,7 +2,7 @@ package com.persagy.revit.models.baseGraph
 
 import com.alibaba.fastjson.annotation.JSONField
 import com.fasterxml.jackson.annotation.JsonProperty
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
 import javax.persistence.Column
 
 /**
@@ -13,13 +13,13 @@ import javax.persistence.Column
 open class BGWindowDoorBase : BGBaseComponent() {
 
     /** 所属墙 */
-    @ApiModelProperty(value = "所属墙")
+   @Schema(description = "所属墙")
     @Column(name = "wall_id")
     @JSONField(serialize = false)
     var wallId: String? = null
 
     /** 拥有者的RevitId */
-    @ApiModelProperty(value = "拥有者的RevitId")
+   @Schema(description = "拥有者的RevitId")
     @Column(name = "owner")
     @JsonProperty("Owner")
     var owner: String? = null

+ 3 - 4
revit-algorithm/src/main/kotlin/com/persagy/revit/models/dataCheck/GridCheckResult.kt

@@ -1,8 +1,7 @@
 package com.persagy.revit.models.dataCheck
 
 import com.persagy.revit.models.modelFile.FloorModelView
-import io.swagger.annotations.ApiModel
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
 import javax.persistence.Column
 
 /**
@@ -10,13 +9,13 @@ import javax.persistence.Column
  *
  * @author jxing
  */
-@ApiModel(description = "轴网检查结果")
+@Schema(description = "轴网检查结果")
 class GridCheckResult : FloorModelView() {
 
     /**
      * 轴网分组id
      */
-    @ApiModelProperty(value = "轴网分组id")
+   @Schema(description = "轴网分组id")
     @Column(name = "group_id")
     var groupId: Int? = null
 }

+ 5 - 6
revit-algorithm/src/main/kotlin/com/persagy/revit/models/dataCheck/LevelCheckResult.kt

@@ -1,8 +1,7 @@
 package com.persagy.revit.models.dataCheck
 
 import com.persagy.revit.models.modelFile.FloorModelView
-import io.swagger.annotations.ApiModel
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
 import javax.persistence.Column
 
 /**
@@ -10,18 +9,18 @@ import javax.persistence.Column
  *
  * @author jxing
  */
-@ApiModel(description = "标高检查结果")
+@Schema(description = "标高检查结果")
 class LevelCheckResult : FloorModelView(){
 
-    @ApiModelProperty(value = "是否检测到错误")
+   @Schema(description = "是否检测到错误")
     @Column(name = "has_error")
     var hasError: Boolean? = null
 
-    @ApiModelProperty(value = "错误信息")
+   @Schema(description = "错误信息")
     @Column(name = "error")
     var errorMsg: String? = null
 
-    @ApiModelProperty(value = "标高高度")
+   @Schema(description = "标高高度")
     @Column(name = "elevation")
     var elevation: Double? = null
 

+ 7 - 7
revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/BaseComponent.kt

@@ -3,7 +3,7 @@ package com.persagy.revit.models.entities
 import com.alibaba.fastjson.annotation.JSONField
 import com.fasterxml.jackson.annotation.JsonProperty
 import com.persagy.service.models.SBaseEntity
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
 import javax.persistence.Column
 import javax.persistence.Id
 
@@ -15,37 +15,37 @@ import javax.persistence.Id
 open class BaseComponent : SBaseEntity(){
 
     /** 模型id */
-    @ApiModelProperty(value = "模型id")
+   @Schema(description = "模型id")
     @Column(name = "id", updatable = false)
     @Id
     var id: String? = null
 
     /** 模型id(外键) */
-    @ApiModelProperty(value = "模型id(外键)")
+   @Schema(description = "模型id(外键)")
     @Column(name = "model_id")
     var modelId: String? = null
 
     @JSONField(name = "ElementType")
-    @ApiModelProperty(value = "类型")
+   @Schema(description = "类型")
     @Column(name = "type")
     @JsonProperty("ElementType")
     var elementType : String? = null
 
-    @ApiModelProperty(value = "revit模型中的id, 自增序列, 仅在解析模型内部对象关系时使用")
+   @Schema(description = "revit模型中的id, 自增序列, 仅在解析模型内部对象关系时使用")
     @Column(name = "revit_id")
     @JSONField(name = "Id")
     @JsonProperty("Id")
     var revitId : String? = null
 
     /** 对应Revit模型id */
-    @ApiModelProperty(value = "对应Revit模型id")
+   @Schema(description = "对应Revit模型id")
     @Column(name = "source_id")
     @JSONField(name = "SourceId")
     @JsonProperty("SourceId")
     var sourceId: String? = null
 
     /** 模型所属楼层的id, 是uuid */
-    @ApiModelProperty(value = "模型所属楼层的id, 是uuid")
+   @Schema(description = "模型所属楼层的id, 是uuid")
     @JsonProperty("ModelFloorId")
     @JSONField(name = "ModelFloorId")
     var modelFloorId: String? = null

+ 2 - 2
revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/Beacon.kt

@@ -22,7 +22,7 @@
 package com.persagy.revit.models.entities
 
 import com.persagy.service.models.SBaseEntity
-import io.swagger.annotations.ApiModel
+import io.swagger.v3.oas.annotations.media.Schema
 import javax.persistence.Table
 
 /**
@@ -30,7 +30,7 @@ import javax.persistence.Table
  *
  * @author jxing
  */
-@ApiModel(description = "信标")
+@Schema(description = "信标")
 @Table(name = "revit.beacon")
 
 class Beacon : SBaseEntity(){

+ 13 - 14
revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/BoundarySegment.kt

@@ -5,8 +5,7 @@ import com.alibaba.fastjson.annotation.JSONField
 import com.fasterxml.jackson.annotation.JsonIgnoreProperties
 import com.fasterxml.jackson.annotation.JsonProperty
 import com.persagy.service.models.SBaseEntity
-import io.swagger.annotations.ApiModel
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
 import javax.persistence.Column
 import javax.persistence.Id
 import javax.persistence.Table
@@ -16,74 +15,74 @@ import javax.persistence.Table
  *
  * @author jxing
  */
-@ApiModel(description = "轮廓线段")
+@Schema(description = "轮廓线段")
 @Table(name = "revit.boundary_segment")
 @JsonIgnoreProperties(ignoreUnknown = true)
 class BoundarySegment : SBaseEntity() {
     /** id */
-    @ApiModelProperty(value = "id")
+   @Schema(description = "id")
     @Column(name = "id", updatable = false)
     @Id
     var id: String? = null
 
     /** 模型id(外键) */
-    @ApiModelProperty(value = "模型id(外键)")
+   @Schema(description = "模型id(外键)")
     @Column(name = "model_id")
     @JSONField(serialize = false)
     var modelId: String? = null
 
     /** 所属对象的id */
-    @ApiModelProperty(value = "所属对象的id")
+   @Schema(description = "所属对象的id")
     @Column(name = "belong")
     @JSONField(serialize = false)
     var belong: String? = null
 
     /** 所属对象的类型(wall, virtual_wall, column)门窗待定 */
-    @ApiModelProperty(value = "所属对象的类型(wall, virtual_wall, column) 门窗待定")
+   @Schema(description = "所属对象的类型(wall, virtual_wall, column) 门窗待定")
     @Column(name = "belong_type")
     @JSONField(serialize = false)
     var belongType: String? = null
 
     /** 描点 */
-    @ApiModelProperty(value = "描点")
+   @Schema(description = "描点")
     @Column(name = "curve")
     @JSONField(name = "Curve")
     @JsonProperty("Curve")
     var curve: ArrayList<Point>? = null
 
     /** 轮廓所连接的空间id */
-    @ApiModelProperty(value = "轮廓所连接的空间id")
+   @Schema(description = "轮廓所连接的空间id")
     @Column(name = "space_id")
     @JSONField(serialize = false)
     var spaceId: String? = null
 
     /** 空间的轮廓线断的大组的索引 */
-    @ApiModelProperty(value = "空间的轮廓线断的大组的索引")
+   @Schema(description = "空间的轮廓线断的大组的索引")
     @Column(name = "group_index")
     @JSONField(serialize = false)
     var groupIndex: Int? = null
 
     /** 轮廓在大组内的顺序 */
-    @ApiModelProperty(value = "轮廓在大组内的顺序")
+   @Schema(description = "轮廓在大组内的顺序")
     @Column(name = "sequence")
     @JSONField(serialize = false)
     var sequence: Int? = null
 
     /** 线段关联实体构件Id,可以为空, 指向墙id, 虚拟墙id, 柱子id(可能门窗id) */
-    @ApiModelProperty(value = "线段关联实体构件Id,可以为空, 指向墙id, 虚拟墙id, 柱子id(可能门窗id)")
+   @Schema(description = "线段关联实体构件Id,可以为空, 指向墙id, 虚拟墙id, 柱子id(可能门窗id)")
     @Column(name = "reference")
     @JSONField(name = "Reference")
     @JsonProperty("Reference")
     var reference: String? = null
 
-    @ApiModelProperty(value = "revit模型中的id")
+   @Schema(description = "revit模型中的id")
     @Column(name = "revit_id")
     @JSONField(name = "Id")
     @JsonProperty("Id")
     var revitId : String? = null
 
     @JSONField(name = "ElementType")
-    @ApiModelProperty(value = "类型")
+   @Schema(description = "类型")
     @Column(name = "type")
     @JsonProperty("ElementType")
     var elementType : String? = null

+ 11 - 12
revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/Column.kt

@@ -25,8 +25,7 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties
 import com.fasterxml.jackson.annotation.JsonProperty
 import com.persagy.revit.models.jsonAnalyzer.Location
 import com.persagy.revit.models.jsonAnalyzer.Point
-import io.swagger.annotations.ApiModel
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
 import javax.persistence.Column
 import javax.persistence.Table
 
@@ -35,67 +34,67 @@ import javax.persistence.Table
  *
  * @author jxing
  */
-@ApiModel(description = "连接件")
+@Schema(description = "连接件")
 @Table(name = "revit.column")
 @JsonIgnoreProperties(ignoreUnknown = true)
 open class Column : WallColumnLog(){
 
     /** 名称 */
-    @ApiModelProperty(value = "名称")
+   @Schema(description = "名称")
     @Column(name = "name")
     @JSONField(name = "Name")
     @JsonProperty("Name")
     var name: String? = null
 
 //    /** 对应Revit模型id */
-//    @ApiModelProperty(value = "对应Revit模型id")
+//   @Schema(description = "对应Revit模型id")
 //    @Column(name = "source_id")
 //    @JSONField(name = "SourceId")
 //    @JsonProperty("SourceId")
 //    var sourceId: String? = null
 
     /** 定位点 */
-    @ApiModelProperty(value = "定位点")
+   @Schema(description = "定位点")
     @Column(name = "location")
     @JSONField(name = "Location")
     @JsonProperty("Location")
     var location: Location? = null
 
     /** 轮廓路径 */
-    @ApiModelProperty(value = "轮廓路径")
+   @Schema(description = "轮廓路径")
     @Column(name = "outline")
     @JSONField(name = "OutLine")
     @JsonProperty("OutLine")
     var outline: ArrayList<ArrayList<Point>>? = null
 
     /** 房间边界 */
-    @ApiModelProperty(value = "房间边界")
+   @Schema(description = "房间边界")
     @Column(name = "bounding")
     @JSONField(name = "RoomBoundary")
     @JsonProperty("RoomBoundary")
     var bounding: Boolean? = null
 
     /** 类型中文名称 */
-    @ApiModelProperty(value = "类型中文名称")
+   @Schema(description = "类型中文名称")
     @Column(name = "family_name")
     @JSONField(name = "FamilyName")
     @JsonProperty("FamilyName")
     var familyName: String? = null
 
     /** 族符号 */
-    @ApiModelProperty(value = "族符号")
+   @Schema(description = "族符号")
     @Column(name = "family_symbol")
     @JSONField(name = "FamilySymbol")
     @JsonProperty("FamilySymbol")
     var familySymbol: String? = null
 
-//    @ApiModelProperty(value = "revit模型中的id")
+//   @Schema(description = "revit模型中的id")
 //    @Column(name = "revit_id")
 //    @JSONField(name = "Id")
 //    var revitId : String? = null
 
 //    @JSONField(name = "ElementType")
-//    @ApiModelProperty(value = "类型")
+//   @Schema(description = "类型")
 //    @Column(name = "type")
 //    var elementType : String? = null
 

+ 15 - 16
revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/Connector.kt

@@ -4,8 +4,7 @@ import com.persagy.revit.models.jsonAnalyzer.Point
 import com.alibaba.fastjson.annotation.JSONField
 import com.fasterxml.jackson.annotation.JsonIgnoreProperties
 import com.fasterxml.jackson.annotation.JsonProperty
-import io.swagger.annotations.ApiModel
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
 import javax.persistence.Column
 import javax.persistence.Table
 
@@ -14,95 +13,95 @@ import javax.persistence.Table
  *
  * @author jxing
  */
-@ApiModel(description = "连接件")
+@Schema(description = "连接件")
 @Table(name = "revit.connector")
 @JsonIgnoreProperties(ignoreUnknown = true)
 class Connector : BaseComponent(){
 
     /** 所属对象的id */
-    @ApiModelProperty(value = "所属对象的id")
+   @Schema(description = "所属对象的id")
     @Column(name = "belong")
     @JSONField(serialize = false)
     var belong: String? = null
 
     /** 所属对象的类型(pipe, duct, others, equipment, component) */
-    @ApiModelProperty(value = "所属对象的类型(pipe, duct, others, equipment, component)")
+   @Schema(description = "所属对象的类型(pipe, duct, others, equipment, component)")
     @Column(name = "belong_type")
     @JSONField(serialize = false)
     var belongType: String? = null
 
     /** 名称 */
-    @ApiModelProperty(value = "名称")
+   @Schema(description = "名称")
     @Column(name = "name")
     @JSONField(name = "Name")
     @JsonProperty("Name")
     var name: String? = null
 
 //    /** 对应Revit模型id */
-//    @ApiModelProperty(value = "对应Revit模型id")
+//   @Schema(description = "对应Revit模型id")
 //    @Column(name = "source_id")
 //    @JSONField(name = "SourceId")
 //    @JsonProperty("SourceId")
 //    var sourceId: String? = null
 
     /** 所属域 */
-    @ApiModelProperty(value = "所属域")
+   @Schema(description = "所属域")
     @Column(name = "domain")
     @JSONField(name = "Domain")
     @JsonProperty("Domain")
     var domain: String? = null
 
     /** 位置信息 */
-    @ApiModelProperty(value = "位置信息")
+   @Schema(description = "位置信息")
     @Column(name = "origin")
     @JSONField(name = "Origin")
     @JsonProperty("Origin")
     var origin: Point? = null
 
     /** 描述 */
-    @ApiModelProperty(value = "描述")
+   @Schema(description = "描述")
     @Column(name = "description")
     @JSONField(name = "Description")
     @JsonProperty("Description")
     var description: String? = null
 
     /** 是否连接其他连接件 */
-    @ApiModelProperty(value = "是否连接其他连接件")
+   @Schema(description = "是否连接其他连接件")
     @Column(name = "connected")
     @JSONField(name = "IsConnected")
     @JsonProperty("IsConnected")
     var isConnected: Boolean? = null
 
     /** 所属对象的revit_id */
-    @ApiModelProperty(value = "所属对象的revit_id")
+   @Schema(description = "所属对象的revit_id")
     @Column(name = "owner")
     @JSONField(name = "Owner")
     @JsonProperty("Owner")
     var owner: String? = null
 
     /** 连接的连接件id */
-    @ApiModelProperty(value = "连接的连接件id")
+   @Schema(description = "连接的连接件id")
     @Column(name = "connected_ids")
     @JSONField(name = "ConnectedIds")
     @JsonProperty("ConnectedIds")
     var connectedIds: ArrayList<String>? = null
 
     /** 管道系统类型名称 */
-    @ApiModelProperty(value = "管道系统类型名称")
+   @Schema(description = "管道系统类型名称")
     @Column(name = "mep_system_type")
     @JSONField(name = "MepSystemTypeName")
     @JsonProperty("MepSystemTypeName")
     var mepSystemType: String? = null
 
 //    /** 连接件连接的连接件id */
-//    @ApiModelProperty(value = "连接件连接的连接件id")
+//   @Schema(description = "连接件连接的连接件id")
 //    @Column(name = "connect_id")
 //    @JSONField(name = "ConnectId")
 //    @JsonProperty("ConnectId")
 //    var connectId: String? = null
 
     /** 连接件连接的连接件id */
-    @ApiModelProperty(value = "连接件连接的连接件id")
+   @Schema(description = "连接件连接的连接件id")
     @Column(name = "connect_id_json")
     @JSONField(name = "ConnectId")
     @JsonProperty("ConnectId")

+ 37 - 0
revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/DictComp.kt

@@ -0,0 +1,37 @@
+package com.persagy.revit.models.entities
+
+import com.alibaba.fastjson.annotation.JSONField
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties
+import com.fasterxml.jackson.annotation.JsonProperty
+import io.swagger.v3.oas.annotations.media.Schema
+import javax.persistence.Column
+import javax.persistence.Id
+import javax.persistence.Table
+
+/**
+ * 设备对照表
+ * @author  Cainga
+ * @date  2020/12/3 15:53
+ */
+
+@Schema(description = "设备对照")
+@Table(name = "revit.dict_comp")
+@JsonIgnoreProperties(ignoreUnknown = true)
+open class DictComp {
+
+    /** id */
+   @Schema(description = "id")
+    @Column(name = "id", updatable = false)
+    @Id
+    var id: Int? = null
+
+    /** 4位部件类型编码 */
+   @Schema(description = "4位部件类型编码")
+    @Column(name = "family")
+    var family: String? = null
+
+    /** 项目4位部件类型编码 */
+   @Schema(description = "项目4位部件类型编码")
+    @Column(name = "p_family")
+    var pFamily: String? = null
+}

+ 14 - 15
revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/Door.kt

@@ -25,8 +25,7 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties
 import com.fasterxml.jackson.annotation.JsonProperty
 import com.persagy.server.datacenter.models.entities.graphtype.MLocation
 import com.persagy.server.datacenter.models.entities.graphtype.MPoint
-import io.swagger.annotations.ApiModel
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
 import javax.persistence.Column
 import javax.persistence.Table
 /**
@@ -34,86 +33,86 @@ import javax.persistence.Table
  *
  * @author jxing
  */
-@ApiModel(description = "门")
+@Schema(description = "门")
 @Table(name = "revit.door")
 @JsonIgnoreProperties(ignoreUnknown = true)
 class Door : WindowDoorBase() {
 
     /** 名称 */
-    @ApiModelProperty(value = "名称")
+   @Schema(description = "名称")
     @Column(name = "name")
     @JSONField(name = "Name")
     @JsonProperty("Name")
     var name: String? = null
 
 //    /** 对应Revit模型id */
-//    @ApiModelProperty(value = "对应Revit模型id")
+//   @Schema(description = "对应Revit模型id")
 //    @Column(name = "source_id")
 //    @JSONField(name = "SourceId")
 //    @JsonProperty("SourceId")
 //    var sourceId: String? = null
 
 //    /** 宽度 */
-//    @ApiModelProperty(value = "宽度")
+//   @Schema(description = "宽度")
 //    @Column(name = "width")
 //    @JsonProperty("Width")
 //    @JSONField(name = "Width")
 //    var width: Double? = null
 
     /** 定位点 */
-    @ApiModelProperty(value = "定位点")
+   @Schema(description = "定位点")
     @Column(name = "location")
     @JSONField(name = "Location")
     @JsonProperty("Location")
     var location: MLocation? = null
 
     /** 轮廓线 */
-    @ApiModelProperty(value = "轮廓线")
+   @Schema(description = "轮廓线")
     @Column(name = "outline")
     @JSONField(name = "OutLine")
     @JsonProperty("OutLine")
     var outline: ArrayList<ArrayList<MPoint>>? = null
 
     /** 面方向 */
-    @ApiModelProperty(value = "面方向")
+   @Schema(description = "面方向")
     @Column(name = "face_direction")
     @JSONField(name = "FaceDirection")
     @JsonProperty("FaceDirection")
     var faceDirection : MPoint? = null
 
     /** Hand方向 */
-    @ApiModelProperty(value = "Hand方向")
+   @Schema(description = "Hand方向")
     @Column(name = "hand_direction")
     @JSONField(name = "HandDirection")
     @JsonProperty("HandDirection")
     var handDirection : MPoint? = null
 
     /** 类型中文名称 */
-    @ApiModelProperty(value = "类型中文名称")
+   @Schema(description = "类型中文名称")
     @Column(name = "family_name")
     @JSONField(name = "FamilyName")
     @JsonProperty("FamilyName")
     var familyName: String? = null
 
     /** 族符号 */
-    @ApiModelProperty(value = "族符号")
+   @Schema(description = "族符号")
     @Column(name = "family_symbol")
     @JSONField(name = "FamilySymbol")
     @JsonProperty("FamilySymbol")
     var familySymbol: String? = null
 
-//    @ApiModelProperty(value = "revit模型中的id")
+//   @Schema(description = "revit模型中的id")
 //    @Column(name = "revit_id")
 //    @JSONField(name = "Id")
 //    var revitId : String? = null
 
 //    @JSONField(name = "ElementType")
-//    @ApiModelProperty(value = "类型")
+//   @Schema(description = "类型")
 //    @Column(name = "type")
 //    var elementType : String? = null
 
     @JSONField(name = "Thick")
-    @ApiModelProperty(value = "厚度")
+   @Schema(description = "厚度")
     @Column(name = "thick")
     @JsonProperty("Thick")
     var thick : Double? = null

+ 12 - 13
revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/Duct.kt

@@ -27,8 +27,7 @@ import com.persagy.revit.models.jsonAnalyzer.Point
 import com.alibaba.fastjson.annotation.JSONField
 import com.fasterxml.jackson.annotation.JsonIgnoreProperties
 import com.fasterxml.jackson.annotation.JsonProperty
-import io.swagger.annotations.ApiModel
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
 import javax.persistence.Column
 import javax.persistence.Table
 
@@ -37,75 +36,75 @@ import javax.persistence.Table
  *
  * @author jxing
  */
-@ApiModel(description = "风管")
+@Schema(description = "风管")
 @Table(name = "revit.duct")
 @JsonIgnoreProperties(ignoreUnknown = true)
 class Duct : BaseComponent(){
     /** 名称 */
-    @ApiModelProperty(value = "名称")
+   @Schema(description = "名称")
     @Column(name = "name")
     @JSONField(name = "Name")
     @JsonProperty("Name")
     var name: String? = null
 
     /** 定位点 */
-    @ApiModelProperty(value = "定位点")
+   @Schema(description = "定位点")
     @Column(name = "location")
     @JSONField(name = "Location")
     @JsonProperty("Location")
     var location: Location? = null
 
     /** 轮廓路径 */
-    @ApiModelProperty(value = "轮廓路径")
+   @Schema(description = "轮廓路径")
     @Column(name = "outline")
     @JSONField(name = "OutLine")
     @JsonProperty("OutLine")
     var outline: ArrayList<ArrayList<Point>>? = null
 
     /** 所连接的连接件id */
-    @ApiModelProperty(value = "所连接的连接件id")
+   @Schema(description = "所连接的连接件id")
     @Column(name = "connected_ids")
     @JSONField(name = "ConnectedIds")
     @JsonProperty("ConnectedIds")
     var connectedIds: ArrayList<String>? = null
 
     /** 管道系统类型名称 */
-    @ApiModelProperty(value = "管道系统类型名称")
+   @Schema(description = "管道系统类型名称")
     @Column(name = "mep_system_type")
     @JSONField(name = "MepSystemTypeName")
     @JsonProperty("MepSystemTypeName")
     var mepSystemType: String? = null
 
     /** 形状 Circle|Rectangle|Ellipse */
-    @ApiModelProperty(value = "形状 Circle|Rectangle|Ellipse")
+   @Schema(description = "形状 Circle|Rectangle|Ellipse")
     @Column(name = "shape")
     @JSONField(name = "Shape")
     @JsonProperty("Shape")
     var shape: String? = null
 
     /** 直径;当形状为Circle时有效 */
-    @ApiModelProperty(value = "直径;当形状为Circle时有效")
+   @Schema(description = "直径;当形状为Circle时有效")
     @Column(name = "diameter")
     @JSONField(name = "Diameter")
     @JsonProperty("Diameter")
     var diameter: Double? = null
 
     /** 宽度 当形状为Rectangle或者Ellipse */
-    @ApiModelProperty(value = "宽度 当形状为Rectangle或者Ellipse")
+   @Schema(description = "宽度 当形状为Rectangle或者Ellipse")
     @Column(name = "width")
     @JSONField(name = "Width")
     @JsonProperty("Width")
     var width: Double? = null
 
     /** 高度 当形状为Rectangle或者Ellipse */
-    @ApiModelProperty(value = "高度 当形状为Rectangle或者Ellipse")
+   @Schema(description = "高度 当形状为Rectangle或者Ellipse")
     @Column(name = "height")
     @JSONField(name = "Height")
     @JsonProperty("Height")
     var height: Double? = null
 
     /** 参数列表 */
-    @ApiModelProperty(value = "参数列表")
+   @Schema(description = "参数列表")
     @Column(name = "parameters")
     @JSONField(name = "Parameters")
     @JsonProperty("Parameters")

+ 19 - 20
revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/EquipPart.kt

@@ -26,8 +26,7 @@ import com.fasterxml.jackson.annotation.JsonProperty
 import com.persagy.revit.models.jsonAnalyzer.Location
 import com.persagy.revit.models.jsonAnalyzer.Parameter
 import com.persagy.revit.models.jsonAnalyzer.Point
-import io.swagger.annotations.ApiModel
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
 import javax.persistence.Column
 import javax.persistence.Table
 
@@ -37,113 +36,113 @@ import javax.persistence.Table
  *
  * @author jxing
  */
-@ApiModel(description = "部件")
+@Schema(description = "部件")
 @Table(name = "revit.component")
 @JsonIgnoreProperties(ignoreUnknown = true)
 class EquipPart  : BaseComponent(){
 
     /** 名称 */
-    @ApiModelProperty(value = "名称")
+   @Schema(description = "名称")
     @Column(name = "name")
     @JSONField(name = "Name")
     @JsonProperty("Name")
     var name: String? = null
 
     /** 补充信息 */
-    @ApiModelProperty(value = "补充信息")
+   @Schema(description = "补充信息")
     @Column(name = "tag")
     @JSONField(name = "Tag")
     @JsonProperty("Tag")
     var tag: String? = null
 
     /** 本地编码 */
-    @ApiModelProperty(value = "本地编码")
+   @Schema(description = "本地编码")
     @Column(name = "local_id")
     var localId: String? = null
 
     /** 本地名称 */
-    @ApiModelProperty(value = "本地名称")
+   @Schema(description = "本地名称")
     @Column(name = "local_name")
     var localName: String? = null
 
     /** 6位部件类型编码 */
-    @ApiModelProperty(value = "6位部件类型编码")
+   @Schema(description = "6位部件类型编码")
     @Column(name = "family")
     @JSONField(name = "Family")
     @JsonProperty("Family")
     var family: String? = null
 
     /** 类型中文名称 */
-    @ApiModelProperty(value = "类型中文名称")
+   @Schema(description = "类型中文名称")
     @Column(name = "family_name")
     @JSONField(name = "FamilyName")
     @JsonProperty("FamilyName")
     var familyName: String? = null
 
     /** 族符号 */
-    @ApiModelProperty(value = "族符号")
+   @Schema(description = "族符号")
     @Column(name = "family_symbol")
     @JSONField(name = "FamilySymbol")
     @JsonProperty("FamilySymbol")
     var familySymbol: String? = null
 
     /** 定位点 */
-    @ApiModelProperty(value = "定位点")
+   @Schema(description = "定位点")
     @Column(name = "location")
     @JsonProperty("Location")
     var location: Location? = null
 
     /** 设备轮廓 */
-    @ApiModelProperty(value = "设备轮廓")
+   @Schema(description = "设备轮廓")
     @Column(name = "outline")
     @JsonProperty("OutLine")
     var outline : ArrayList<ArrayList<Point>>? = null
 
     /** 参数列表 */
-    @ApiModelProperty(value = "参数列表")
+   @Schema(description = "参数列表")
     @Column(name = "parameters")
     @JSONField(name = "Parameters")
     @JsonProperty("Parameters")
     var parameters: ArrayList<Parameter>? = null
 
     /** 所属设备的revit_id */
-    @ApiModelProperty(value = "所属设备的revit_id")
+   @Schema(description = "所属设备的revit_id")
     @Column(name = "owner")
     @JsonProperty("Owner")
     var owner: String? = null
 
     /** 所属设备的id */
-    @ApiModelProperty(value = "所属设备的id")
+   @Schema(description = "所属设备的id")
     @Column(name = "owner_id")
     var ownerId : String? = null
 
     /** 所属设备的sourceId */
-    @ApiModelProperty(value = "所属设备的sourceId")
+   @Schema(description = "所属设备的sourceId")
     @Column(name = "owner_source_id")
     var ownerSourceId : String? = null
 
     /** 旋转角度 */
-    @ApiModelProperty(value = "旋转角度")
+   @Schema(description = "旋转角度")
     @Column(name = "rotation")
     @JsonProperty("Rotation")
     var rotation: Double? = null
 
     /** 资产id */
-    @ApiModelProperty(value = "资产id")
+   @Schema(description = "资产id")
     @Column(name = "property_id")
     @JsonProperty("PropertyId")
     @JSONField(name = "PropertyId")
     var propertyId: String? = null
 
     /** BIMID */
-    @ApiModelProperty(value = "BIMID")
+   @Schema(description = "BIMID")
     @Column(name = "bimid")
     @JSONField(name = "BimId")
     @JsonProperty("BimId")
     var bimId: String? = null
 
     /** 万达BIMTypeID */
-    @ApiModelProperty(value = "万达BIMTypeID")
+   @Schema(description = "万达BIMTypeID")
     @Column(name = "bim_type_id")
     @JSONField(name = "BIMTypeID")
     @JsonProperty("BIMTypeID")

+ 31 - 17
revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/Equipment.kt

@@ -20,104 +20,105 @@
 
 package com.persagy.revit.models.entities
 
+
 import com.alibaba.fastjson.annotation.JSONField
 import com.fasterxml.jackson.annotation.JsonIgnoreProperties
 import com.fasterxml.jackson.annotation.JsonProperty
 import com.persagy.revit.models.jsonAnalyzer.Location
 import com.persagy.revit.models.jsonAnalyzer.Parameter
 import com.persagy.revit.models.jsonAnalyzer.Point
-import io.swagger.annotations.ApiModel
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
 import javax.persistence.Column
+import javax.persistence.Id
 import javax.persistence.Table
 /**
  * 设备
  *
  * @author jxing
  */
-@ApiModel(description = "设备")
+@Schema(description = "设备")
 @Table(name = "revit.equipment")
 @JsonIgnoreProperties(ignoreUnknown = true)
 class Equipment : BaseComponent(){
 
     /** 名称 */
-    @ApiModelProperty(value = "名称")
+   @Schema(description = "名称")
     @Column(name = "name")
     @JsonProperty("Name")
     var name: String? = null
 
     /** 补充信息 */
-    @ApiModelProperty(value = "补充信息")
+   @Schema(description = "补充信息")
     @Column(name = "tag")
     @JsonProperty("Tag")
     var tag: String? = null
 
     /** 本地编码 */
-    @ApiModelProperty(value = "本地编码")
+   @Schema(description = "本地编码")
     @Column(name = "local_id")
     var localId: String? = null
 
     /** 本地名称 */
-    @ApiModelProperty(value = "本地名称")
+   @Schema(description = "本地名称")
     @Column(name = "local_name")
     var localName: String? = null
 
     /** 4位部件类型编码 */
-    @ApiModelProperty(value = "4位部件类型编码")
+   @Schema(description = "4位部件类型编码")
     @Column(name = "family")
     @JSONField(name = "Family")
     @JsonProperty("Family")
     var family: String? = null
 
     /** 类型中文名称 */
-    @ApiModelProperty(value = "类型中文名称")
+   @Schema(description = "类型中文名称")
     @Column(name = "family_name")
     @JSONField(name = "FamilyName")
     @JsonProperty("FamilyName")
     var familyName: String? = null
 
     /** 族符号 */
-    @ApiModelProperty(value = "族符号")
+   @Schema(description = "族符号")
     @Column(name = "family_symbol")
     @JSONField(name = "FamilySymbol")
     @JsonProperty("FamilySymbol")
     var familySymbol: String? = null
 
     /** 定位点 */
-    @ApiModelProperty(value = "定位点")
+   @Schema(description = "定位点")
     @Column(name = "location")
     @JsonProperty("Location")
     var location: Location? = null
 
     /** 设备轮廓 */
-    @ApiModelProperty(value = "设备轮廓")
+   @Schema(description = "设备轮廓")
     @Column(name = "outline")
     @JsonProperty("OutLine")
     var outline : ArrayList<ArrayList<Point>>? = null
 
     /** 参数列表 */
-    @ApiModelProperty(value = "参数列表")
+   @Schema(description = "参数列表")
     @Column(name = "parameters")
     @JSONField(name = "Parameters")
     @JsonProperty("Parameters")
     var parameters: ArrayList<Parameter>? = null
 
     /** 旋转角度 */
-    @ApiModelProperty(value = "旋转角度")
+   @Schema(description = "旋转角度")
     @Column(name = "rotation")
     @JSONField(name = "Rotation")
     @JsonProperty("Rotation")
     var rotation: Double? = null
 
     /** 资产id */
-    @ApiModelProperty(value = "资产id")
+   @Schema(description = "资产id")
     @Column(name = "property_id")
     @JsonProperty("PropertyId")
     @JSONField(name = "PropertyId")
     var propertyId: String? = null
 
     /** BIMID */
-    @ApiModelProperty(value = "BIMID")
+   @Schema(description = "BIMID")
     @Column(name = "bimid")
     @JSONField(name = "BimId")
     @JsonProperty("BimId")
@@ -125,9 +126,22 @@ class Equipment : BaseComponent(){
 
 
     /** 万达BIMTypeID */
-    @ApiModelProperty(value = "万达BIMTypeID")
+   @Schema(description = "万达BIMTypeID")
     @Column(name = "bim_type_id")
     @JSONField(name = "BIMTypeID")
     @JsonProperty("BIMTypeID")
     var bimTypeID: String? = null
+
+
+    /** 初始4位部件类型编码 */
+   @Schema(description = "初始4位部件类型编码")
+    @Column(name = "init_family")
+    @JSONField(name = "InitFamily")
+    @JsonProperty("InitFamily")
+    var initFamily: String? = null
+
+    /** 转换后的信息点 */
+   @Schema(description = "转换后的信息点")
+    @Column(name = "infos")
+    var infos: Map<String,String>? = null
 }

+ 7 - 8
revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/Grid.kt

@@ -23,8 +23,7 @@ package com.persagy.revit.models.entities
 import com.persagy.revit.models.jsonAnalyzer.Location
 import com.fasterxml.jackson.annotation.JsonIgnoreProperties
 import com.fasterxml.jackson.annotation.JsonProperty
-import io.swagger.annotations.ApiModel
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
 import javax.persistence.Column
 import javax.persistence.Table
 
@@ -33,35 +32,35 @@ import javax.persistence.Table
  *
  * @author jxing
  */
-@ApiModel(description = "轴网")
+@Schema(description = "轴网")
 @Table(name = "revit.grid")
 @JsonIgnoreProperties(ignoreUnknown = true)
 class Grid : BaseComponent() {
 
     /** 名称 */
-    @ApiModelProperty(value = "名称")
+   @Schema(description = "名称")
     @Column(name = "name")
     @JsonProperty("Name")
     var name: String? = null
 
     /** 定位点 */
-    @ApiModelProperty(value = "定位点")
+   @Schema(description = "定位点")
     @Column(name = "location")
     @JsonProperty("Location")
     var location: Location? = null
 
 //    /** 起始点 */
-//    @ApiModelProperty(value = "起始点")
+//   @Schema(description = "起始点")
 //    @Column(name = "start")
 //    var start: Map<String, Any?>? = null
 //
 //    /** 中心点 */
-//    @ApiModelProperty(value = "中心点")
+//   @Schema(description = "中心点")
 //    @Column(name = "mid")
 //    var mid: Map<String, Any?>? = null
 //
 //    /** 结束点 */
-//    @ApiModelProperty(value = "结束点")
+//   @Schema(description = "结束点")
 //    @Column(name = "md5")
 //    var end : Map<String, Any?>? = null
 }

+ 53 - 0
revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/InfoPointComp.kt

@@ -0,0 +1,53 @@
+package com.persagy.revit.models.entities
+
+import com.alibaba.fastjson.annotation.JSONField
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties
+import com.fasterxml.jackson.annotation.JsonProperty
+import io.swagger.v3.oas.annotations.media.Schema
+import javax.persistence.Column
+import javax.persistence.Id
+import javax.persistence.Table
+
+/**
+ * 信息点对照表
+ * @author  Cainga
+ * @date  2020/12/3 16:01
+ */
+
+@Schema(description = "信息点对照表")
+@Table(name = "revit.info_point_comp")
+@JsonIgnoreProperties(ignoreUnknown = true)
+open class InfoPointComp {
+
+    /** id */
+   @Schema(description = "id")
+    @Column(name = "id", updatable = false)
+    @Id
+    var id: Int? = null
+
+    /** 4位部件类型编码 */
+   @Schema(description = "4位部件类型编码")
+    @Column(name = "family")
+    var family: String? = null
+
+    /** 信息点编码 */
+   @Schema(description = "信息点编码")
+    @Column(name = "info_point_code")
+    var infoPointCode: String? = null
+
+    /** 信息点名称 */
+   @Schema(description = "信息点名称")
+    @Column(name = "info_point_name")
+    var infoPointName: String? = null
+
+    /** 标准信息点编码 */
+   @Schema(description = "标准信息点编码")
+    @Column(name = "s_info_point_code")
+    var sInfoPointCode: String? = null
+
+    /** 标准信息点名称  */
+   @Schema(description = "标准信息点名称")
+    @Column(name = "s_info_point_name")
+    var sInfoPointName: String? = null
+
+}

+ 9 - 10
revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/JoinObject.kt

@@ -5,8 +5,7 @@ import com.persagy.revit.models.jsonAnalyzer.Point
 import com.alibaba.fastjson.annotation.JSONField
 import com.fasterxml.jackson.annotation.JsonIgnoreProperties
 import com.fasterxml.jackson.annotation.JsonProperty
-import io.swagger.annotations.ApiModel
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
 import javax.persistence.Column
 import javax.persistence.Table
 
@@ -16,55 +15,55 @@ import javax.persistence.Table
  *
  * @author jxing
  */
-@ApiModel(description = "连接件对象")
+@Schema(description = "连接件对象")
 @Table(name = "revit.join_object")
 @JsonIgnoreProperties(ignoreUnknown = true)
 class JoinObject : BaseComponent(){
 
     /** 名称 */
-    @ApiModelProperty(value = "名称")
+   @Schema(description = "名称")
     @Column(name = "name")
     @JSONField(name = "Name")
     @JsonProperty("Name")
     var name: String? = null
 
     /** 连接的连接件id */
-    @ApiModelProperty(value = "连接的连接件id")
+   @Schema(description = "连接的连接件id")
     @Column(name = "connected_ids")
     @JSONField(name = "ConnectedIds")
     @JsonProperty("ConnectedIds")
     var connectedIds: ArrayList<String>? = null
 
     /** 定位点 */
-    @ApiModelProperty(value = "定位点")
+   @Schema(description = "定位点")
     @Column(name = "location")
     @JSONField(name = "Location")
     @JsonProperty("Location")
     var location: Location? = null
 
     /** 轮廓路径 */
-    @ApiModelProperty(value = "轮廓路径")
+   @Schema(description = "轮廓路径")
     @Column(name = "outline")
     @JSONField(name = "OutLine")
     @JsonProperty("OutLine")
     var outline: ArrayList<ArrayList<Point>>? = null
 
     /** 类型中文名称 */
-    @ApiModelProperty(value = "类型中文名称")
+   @Schema(description = "类型中文名称")
     @Column(name = "family_name")
     @JSONField(name = "FamilyName")
     @JsonProperty("FamilyName")
     var familyName: String? = null
 
     /** 族符号 */
-    @ApiModelProperty(value = "族符号")
+   @Schema(description = "族符号")
     @Column(name = "family_symbol")
     @JSONField(name = "FamilySymbol")
     @JsonProperty("FamilySymbol")
     var familySymbol: String? = null
 
     /** 旋转角度 */
-    @ApiModelProperty(value = "旋转角度")
+   @Schema(description = "旋转角度")
     @Column(name = "rotation")
     @JsonProperty("Rotation")
     var rotation: Double? = null

+ 4 - 5
revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/Level.kt

@@ -23,8 +23,7 @@ package com.persagy.revit.models.entities
 import com.alibaba.fastjson.annotation.JSONField
 import com.fasterxml.jackson.annotation.JsonIgnoreProperties
 import com.fasterxml.jackson.annotation.JsonProperty
-import io.swagger.annotations.ApiModel
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
 import javax.persistence.Column
 import javax.persistence.Table
 /**
@@ -32,20 +31,20 @@ import javax.persistence.Table
  *
  * @author jxing
  */
-@ApiModel(description = "层--标高")
+@Schema(description = "层--标高")
 @Table(name = "revit.level")
 @JsonIgnoreProperties(ignoreUnknown = true)
 class Level : BaseComponent() {
 
     /** 名称 */
-    @ApiModelProperty(value = "名称")
+   @Schema(description = "名称")
     @Column(name = "name")
     @JSONField(name = "Name")
     @JsonProperty("Name")
     var name: String? = null
 
     /** 立面高度 */
-    @ApiModelProperty(value = "立面高度")
+   @Schema(description = "立面高度")
     @Column(name = "elevation")
     @JSONField(name = "Value")
     @JsonProperty("Value")

+ 9 - 10
revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/Other.kt

@@ -5,8 +5,7 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties
 import com.fasterxml.jackson.annotation.JsonProperty
 import com.persagy.revit.models.jsonAnalyzer.Location
 import com.persagy.revit.models.jsonAnalyzer.Point
-import io.swagger.annotations.ApiModel
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
 import javax.persistence.Column
 import javax.persistence.Table
 
@@ -15,55 +14,55 @@ import javax.persistence.Table
  *
  * @author jxing
  */
-@ApiModel(description = "其他对象")
+@Schema(description = "其他对象")
 @Table(name = "revit.other")
 @JsonIgnoreProperties(ignoreUnknown = true)
 class Other : BaseComponent(){
 
     /** 名称 */
-    @ApiModelProperty(value = "名称")
+   @Schema(description = "名称")
     @Column(name = "name")
     @JSONField(name = "Name")
     @JsonProperty("Name")
     var name: String? = null
 
     /** 连接的连接件id */
-    @ApiModelProperty(value = "连接的连接件id")
+   @Schema(description = "连接的连接件id")
     @Column(name = "connected_ids")
     @JSONField(name = "ConnectedIds")
     @JsonProperty("ConnectedIds")
     var connectedIds: ArrayList<String>? = null
 
     /** 定位点 */
-    @ApiModelProperty(value = "定位点")
+   @Schema(description = "定位点")
     @Column(name = "location")
     @JSONField(name = "Location")
     @JsonProperty("Location")
     var location: Location? = null
 
     /** 轮廓路径 */
-    @ApiModelProperty(value = "轮廓路径")
+   @Schema(description = "轮廓路径")
     @Column(name = "outline")
     @JSONField(name = "OutLine")
     @JsonProperty("OutLine")
     var outline: ArrayList<ArrayList<Point>>? = null
 
     /** 类型中文名称 */
-    @ApiModelProperty(value = "类型中文名称")
+   @Schema(description = "类型中文名称")
     @Column(name = "family_name")
     @JSONField(name = "FamilyName")
     @JsonProperty("FamilyName")
     var familyName: String? = null
 
     /** 族符号 */
-    @ApiModelProperty(value = "族符号")
+   @Schema(description = "族符号")
     @Column(name = "family_symbol")
     @JSONField(name = "FamilySymbol")
     @JsonProperty("FamilySymbol")
     var familySymbol: String? = null
 
     /** 旋转角度 */
-    @ApiModelProperty(value = "旋转角度")
+   @Schema(description = "旋转角度")
     @Column(name = "rotation")
     @JsonProperty("Rotation")
     var rotation: Double? = null

+ 9 - 10
revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/Pipe.kt

@@ -27,8 +27,7 @@ import com.fasterxml.jackson.annotation.JsonProperty
 import com.persagy.revit.models.jsonAnalyzer.Location
 import com.persagy.revit.models.jsonAnalyzer.Parameter
 import com.persagy.revit.models.jsonAnalyzer.Point
-import io.swagger.annotations.ApiModel
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
 import javax.persistence.Column
 import javax.persistence.Table
 
@@ -37,55 +36,55 @@ import javax.persistence.Table
  *
  * @author jxing
  */
-@ApiModel(description = "水管")
+@Schema(description = "水管")
 @Table(name = "revit.pipe")
 @JsonIgnoreProperties(ignoreUnknown = true)
 class Pipe  : BaseComponent(){
 
     /** 名称 */
-    @ApiModelProperty(value = "名称")
+   @Schema(description = "名称")
     @Column(name = "name")
     @JSONField(name = "Name")
     @JsonProperty("Name")
     var name: String? = null
 
     /** 定位点 */
-    @ApiModelProperty(value = "定位点")
+   @Schema(description = "定位点")
     @Column(name = "location")
     @JSONField(name = "Location")
     @JsonProperty("Location")
     var location: Location? = null
 
     /** 设备轮廓 */
-    @ApiModelProperty(value = "设备轮廓")
+   @Schema(description = "设备轮廓")
     @Column(name = "outline")
     @JSONField(name = "OutLine")
     @JsonProperty("OutLine")
     var outline : ArrayList<ArrayList<Point>>? = null
 
     /** 连接的连接件id */
-    @ApiModelProperty(value = "连接的连接件id")
+   @Schema(description = "连接的连接件id")
     @Column(name = "connected_ids")
     @JSONField(name = "ConnectedIds")
     @JsonProperty("ConnectedIds")
     var connectedIds: ArrayList<String>? = null
 
     /** 管道系统类型名称 */
-    @ApiModelProperty(value = "管道系统类型名称")
+   @Schema(description = "管道系统类型名称")
     @Column(name = "mep_system_type")
     @JSONField(name = "MepSystemTypeName")
     @JsonProperty("MepSystemTypeName")
     var mepSystemType: String? = null
 
     /** 直径 */
-    @ApiModelProperty(value = "直径")
+   @Schema(description = "直径")
     @Column(name = "diameter")
     @JSONField(name = "Diameter")
     @JsonProperty("Diameter")
     var diameter: Double? = null
 
     /** 参数列表 */
-    @ApiModelProperty(value = "参数列表")
+   @Schema(description = "参数列表")
     @Column(name = "parameters")
     @JSONField(name = "Parameters")
     @JsonProperty("Parameters")

+ 2 - 2
revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/Plan.kt

@@ -21,14 +21,14 @@
 package com.persagy.revit.models.entities
 
 import com.persagy.service.models.SBaseEntity
-import io.swagger.annotations.ApiModel
+import io.swagger.v3.oas.annotations.media.Schema
 import javax.persistence.Table
 /**
  * 平面
  *
  * @author jxing
  */
-@ApiModel(description = "平面")
+@Schema(description = "平面")
 @Table(name = "revit.plan")
 class Plan : SBaseEntity() {
 }

+ 29 - 0
revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/Project.kt

@@ -0,0 +1,29 @@
+package com.persagy.revit.models.entities
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties
+import io.swagger.v3.oas.annotations.media.Schema
+import javax.persistence.Column
+import javax.persistence.Id
+import javax.persistence.Table
+
+/**
+ * 项目
+ * @author  Cainga
+ * @date  2020/12/3 15:50
+ */
+@Schema(description = "项目")
+@Table(name = "revit.project")
+@JsonIgnoreProperties(ignoreUnknown = true)
+open class Project {
+    /** 项目id */
+   @Schema(description = "项目id")
+    @Column(name = "id", updatable = false)
+    @Id
+    var id: String? = null
+
+    /** 项目名称 */
+   @Schema(description = "项目名称")
+    @Column(name = "name")
+    var name: String? = null
+
+}

+ 68 - 0
revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/Room.kt

@@ -0,0 +1,68 @@
+package com.persagy.revit.models.entities
+
+import com.alibaba.fastjson.annotation.JSONField
+import com.fasterxml.jackson.annotation.JsonProperty
+import com.persagy.revit.models.jsonAnalyzer.Location
+import com.persagy.revit.models.jsonAnalyzer.Parameter
+import com.persagy.revit.models.jsonAnalyzer.Point
+import io.swagger.v3.oas.annotations.media.Schema
+import javax.persistence.Column
+import javax.persistence.Id
+import javax.persistence.Table
+
+/**
+ * 房间
+ * @author  Cainga
+ * @date  2020/12/4 10:05
+ */
+@Schema(description = "房间")
+@Table(name = "revit.room")
+open class Room : BaseComponent(){
+
+    /** 轮廓线段 */
+   @Schema(description = "轮廓线段")
+    @Column(name = "boundary_segments")
+    var boundarySegment: ArrayList<ArrayList<String>>? = null
+
+    /** 空间高度 */
+   @Schema(description = "空间高度")
+    @Column(name = "height")
+    var height: Double? = null
+
+    /** 定位点 */
+   @Schema(description = "定位点")
+    @Column(name = "location")
+    var location: Location? = null
+
+    /** 空间轮廓 */
+   @Schema(description = "空间轮廓")
+    @Column(name = "outline")
+    var outline: ArrayList<ArrayList<Point>>? = null
+
+//    /** 对应Revit模型id */
+//   @Schema(description = "对应Revit模型id")
+//    @Column(name = "source_id")
+//    var sourceId: String? = null
+
+    /** 参数列表 */
+   @Schema(description = "参数列表")
+    @Column(name = "parameters")
+    var parameters: ArrayList<Parameter>? = null
+
+
+//    /** revit模型中的id */
+//   @Schema(description = "revit模型中的id")
+//    @Column(name = "revit_id")
+//    var revitId: String? = null
+
+    /** 名称 */
+   @Schema(description = "名称")
+    @Column(name = "name")
+    var name: String? = null
+
+    /** 本地名称 */
+   @Schema(description = "本地名称")
+    @Column(name = "local_name")
+    var localName: String? = null
+
+}

+ 16 - 17
revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/Space.kt

@@ -26,8 +26,7 @@ import com.persagy.revit.models.jsonAnalyzer.Point
 import com.alibaba.fastjson.annotation.JSONField
 import com.fasterxml.jackson.annotation.JsonIgnoreProperties
 import com.fasterxml.jackson.annotation.JsonProperty
-import io.swagger.annotations.ApiModel
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
 import javax.persistence.Column
 import javax.persistence.Table
 /**
@@ -35,75 +34,75 @@ import javax.persistence.Table
  *
  * @author jxing
  */
-@ApiModel(description = "空间")
+@Schema(description = "空间")
 @Table(name = "revit.space")
 @JsonIgnoreProperties(ignoreUnknown = true)
 class Space : BaseComponent(){
 
     /** 名称 */
-    @ApiModelProperty(value = "名称")
+   @Schema(description = "名称")
     @Column(name = "name")
     @JSONField(name = "Name")
     @JsonProperty("Name")
     var name: String? = null
 
 //    /** 对应Revit模型id */
-//    @ApiModelProperty(value = "对应Revit模型id")
+//   @Schema(description = "对应Revit模型id")
 //    @Column(name = "source_id")
 //    @JSONField(name = "SourceId")
 //    @JsonProperty("SourceId")
 //    var sourceId: String? = null
 
     /** 补充信息 */
-    @ApiModelProperty(value = "补充信息")
+   @Schema(description = "补充信息")
     @Column(name = "tag")
     @JSONField(name = "Tag")
     @JsonProperty("Tag")
     var tag: String? = null
 
     /** 定位点 */
-    @ApiModelProperty(value = "定位点")
+   @Schema(description = "定位点")
     @Column(name = "location")
     @JSONField(name = "Location")
     @JsonProperty("Location")
     var location: Location? = null
 
     /** 空间轮廓 */
-    @ApiModelProperty(value = "空间轮廓")
+   @Schema(description = "空间轮廓")
     @Column(name = "outline")
     @JSONField(name = "OutLine")
     @JsonProperty("OutLine")
     var outline: ArrayList<ArrayList<Point>>? = null
 
     /** 空间外轮廓(包含外墙) */
-    @ApiModelProperty(value = "空间外轮廓(包含外墙)")
+   @Schema(description = "空间外轮廓(包含外墙)")
     @Column(name = "outer_outline")
     @JSONField(name = "OutLine2")
     @JsonProperty("OutLine2")
     var outerOutline: ArrayList<ArrayList<Point>>? = null
 
     /** 轮廓线段 */
-    @ApiModelProperty(value = "轮廓线段")
+   @Schema(description = "轮廓线段")
     @Column(name = "boundary_segments")
     @JSONField(name = "BoundarySegments")
     @JsonProperty("BoundarySegments")
     var boundarySegment: ArrayList<ArrayList<String>>? = null
 
     /** 参数列表 */
-    @ApiModelProperty(value = "参数列表")
+   @Schema(description = "参数列表")
     @Column(name = "parameters")
     @JSONField(name = "Parameters")
     @JsonProperty("Parameters")
     var parameters: ArrayList<Parameter>? = null
 
     /** 本地名称 */
-    @ApiModelProperty(value = "本地名称")
+   @Schema(description = "本地名称")
     @Column(name = "local_name")
     var localName: String? = null
 
 
     /** 万达专用信息点 */
-    @ApiModelProperty(value = "万达专用信息点")
+   @Schema(description = "万达专用信息点")
     @Column(name = "wd_room_func_id")
     @JSONField(name = "WDRoomFuncID")
     @JsonProperty("WDRoomFuncID")
@@ -111,7 +110,7 @@ class Space : BaseComponent(){
 
 
     /** 万达专用信息点 */
-    @ApiModelProperty(value = "万达专用信息点")
+   @Schema(description = "万达专用信息点")
     @Column(name = "wd_room_func_name")
     @JSONField(name = "WDRoomFuncName")
     @JsonProperty("WDRoomFuncName")
@@ -120,19 +119,19 @@ class Space : BaseComponent(){
 
 
     /** 空间高度 */
-    @ApiModelProperty(value = "空间高度")
+   @Schema(description = "空间高度")
     @Column(name = "height")
     @JSONField(name = "Height")
     @JsonProperty("Height")
     var height: Double? = null
 
-//    @ApiModelProperty(value = "revit模型中的id")
+//   @Schema(description = "revit模型中的id")
 //    @Column(name = "revit_id")
 //    @JSONField(name = "Id")
 //    var revitId : String? = null
 
 //    @JSONField(name = "ElementType")
-//    @ApiModelProperty(value = "类型")
+//   @Schema(description = "类型")
 //    @Column(name = "type")
 //    var elementType : String? = null
 

+ 8 - 9
revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/VirtualWall.kt

@@ -25,8 +25,7 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties
 import com.fasterxml.jackson.annotation.JsonProperty
 import com.persagy.server.datacenter.models.entities.graphtype.MLocation
 import com.persagy.server.datacenter.models.entities.graphtype.MPoint
-import io.swagger.annotations.ApiModel
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
 import javax.persistence.Column
 import javax.persistence.Table
 /**
@@ -34,46 +33,46 @@ import javax.persistence.Table
  *
  * @author jxing
  */
-@ApiModel(description = "虚拟墙")
+@Schema(description = "虚拟墙")
 @Table(name = "revit.virtual_wall")
 @JsonIgnoreProperties(ignoreUnknown = true)
 open class VirtualWall : WallColumnLog() {
 
     /** 名称 */
-    @ApiModelProperty(value = "名称")
+   @Schema(description = "名称")
     @Column(name = "name")
     @JSONField(name = "Name")
     @JsonProperty("Name")
     var name: String? = null
 
 //    /** 对应Revit模型id */
-//    @ApiModelProperty(value = "对应Revit模型id")
+//   @Schema(description = "对应Revit模型id")
 //    @Column(name = "source_id")
 //    @JSONField(name = "SourceId")
 //    @JsonProperty("SourceId")
 //    var sourceId: String? = null
 
     /** 墙路径 */
-    @ApiModelProperty(value = "墙路径")
+   @Schema(description = "墙路径")
     @Column(name = "location")
     @JSONField(name = "Location")
     @JsonProperty("Location")
     var location : MLocation? = null
 
     /** 墙轮廓 */
-    @ApiModelProperty(value = "墙轮廓")
+   @Schema(description = "墙轮廓")
     @Column(name = "outline")
     @JSONField(name = "OutLine")
     @JsonProperty("OutLine")
     var outline: ArrayList<ArrayList<MPoint>>? = null
 
-//    @ApiModelProperty(value = "revit模型中的id")
+//   @Schema(description = "revit模型中的id")
 //    @Column(name = "revit_id")
 //    @JSONField(name = "Id")
 //    var revitId : String? = null
 
 //    @JSONField(name = "ElementType")
-//    @ApiModelProperty(value = "类型")
+//   @Schema(description = "类型")
 //    @Column(name = "type")
 //    var elementType : String? = null
 

+ 10 - 11
revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/Wall.kt

@@ -25,8 +25,7 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties
 import com.fasterxml.jackson.annotation.JsonProperty
 import com.persagy.revit.models.jsonAnalyzer.Location
 import com.persagy.revit.models.jsonAnalyzer.Point
-import io.swagger.annotations.ApiModel
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
 import javax.persistence.Column
 import javax.persistence.Table
 /**
@@ -34,59 +33,59 @@ import javax.persistence.Table
  *
  * @author jxing
  */
-@ApiModel(description = "墙")
+@Schema(description = "墙")
 @Table(name = "revit.wall")
 @JsonIgnoreProperties(ignoreUnknown = true)
 open class Wall : WallColumnLog() {
 
     /** 层id */
-    @ApiModelProperty(value = "层id")
+   @Schema(description = "层id")
     @Column(name = "level_id")
     @JSONField(serialize = false)
     var levelId: String? = null
 
     /** 名称 */
-    @ApiModelProperty(value = "名称")
+   @Schema(description = "名称")
     @Column(name = "name")
     @JSONField(name = "Name")
     @JsonProperty("Name")
     var name: String? = null
 
 //    /** 对应Revit模型id */
-//    @ApiModelProperty(value = "对应Revit模型id")
+//   @Schema(description = "对应Revit模型id")
 //    @Column(name = "source_id")
 //    @JSONField(name = "SourceId")
 //    @JsonProperty("SourceId")
 //    var sourceId: String? = null
 
     /** 厚度 */
-    @ApiModelProperty(value = "厚度")
+   @Schema(description = "厚度")
     @Column(name = "width")
     @JSONField(name = "Width")
     @JsonProperty("Width")
     var width: Double? = null
 
     /** 墙路径 */
-    @ApiModelProperty(value = "墙路径")
+   @Schema(description = "墙路径")
     @Column(name = "location")
     @JSONField(name = "Location")
     @JsonProperty("Location")
     var location: Location? = null
 
     /** 墙轮廓 */
-    @ApiModelProperty(value = "墙轮廓")
+   @Schema(description = "墙轮廓")
     @Column(name = "outline")
     @JSONField(name = "OutLine")
     @JsonProperty("OutLine")
     var outline: ArrayList<ArrayList<Point>>? = null
 
-//    @ApiModelProperty(value = "revit模型中的id")
+//   @Schema(description = "revit模型中的id")
 //    @Column(name = "revit_id")
 //    @JSONField(name = "Id")
 //    var revitId : String? = null
 
 //    @JSONField(name = "ElementType")
-//    @ApiModelProperty(value = "类型")
+//   @Schema(description = "类型")
 //    @Column(name = "type")
 //    var elementType : String? = null
 

+ 2 - 2
revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/WallColumnLog.kt

@@ -1,12 +1,12 @@
 package com.persagy.revit.models.entities
 
 import com.alibaba.fastjson.annotation.JSONField
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
 
 open class WallColumnLog : BaseComponent(){
 
     /** operation */
-    @ApiModelProperty(value = "操作 : 0表示删除, 1表示添加, 2表示修改")
+   @Schema(description = "操作 : 0表示删除, 1表示添加, 2表示修改")
     @JSONField(name = "Operation")
     var operation: Int? = null
 }

+ 12 - 13
revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/Window.kt

@@ -25,8 +25,7 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties
 import com.fasterxml.jackson.annotation.JsonProperty
 import com.persagy.server.datacenter.models.entities.graphtype.MLocation
 import com.persagy.server.datacenter.models.entities.graphtype.MPoint
-import io.swagger.annotations.ApiModel
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
 import javax.persistence.Column
 import javax.persistence.Table
 /**
@@ -34,70 +33,70 @@ import javax.persistence.Table
  *
  * @author jxing
  */
-@ApiModel(description = "窗")
+@Schema(description = "窗")
 @Table(name = "revit.window")
 @JsonIgnoreProperties(ignoreUnknown = true)
 class Window : WindowDoorBase() {
 
     /** 名称 */
-    @ApiModelProperty(value = "名称")
+   @Schema(description = "名称")
     @Column(name = "name")
     @JSONField(name = "Name")
     @JsonProperty("Name")
     var name: String? = null
 
     /** 宽度 */
-    @ApiModelProperty(value = "宽度")
+   @Schema(description = "宽度")
     @Column(name = "width")
     var width: Double? = null
 
 //    /** 对应Revit模型id */
-//    @ApiModelProperty(value = "对应Revit模型id")
+//   @Schema(description = "对应Revit模型id")
 //    @Column(name = "source_id")
 //    @JSONField(name = "SourceId")
 //    @JsonProperty("SourceId")
 //    var sourceId: String? = null
 
     /** 定位点 */
-    @ApiModelProperty(value = "定位点")
+   @Schema(description = "定位点")
     @Column(name = "location")
     @JSONField(name = "Location")
     @JsonProperty("Location")
     var location: MLocation? = null
 
     /** 轮廓线 */
-    @ApiModelProperty(value = "轮廓线")
+   @Schema(description = "轮廓线")
     @Column(name = "outline")
     @JSONField(name = "OutLine")
     @JsonProperty("OutLine")
     var outline: ArrayList<ArrayList<MPoint>>? = null
 
     /** 类型中文名称 */
-    @ApiModelProperty(value = "类型中文名称")
+   @Schema(description = "类型中文名称")
     @Column(name = "family_name")
     @JSONField(name = "FamilyName")
     @JsonProperty("FamilyName")
     var familyName: String? = null
 
     /** 族符号 */
-    @ApiModelProperty(value = "族符号")
+   @Schema(description = "族符号")
     @Column(name = "family_symbol")
     @JSONField(name = "FamilySymbol")
     @JsonProperty("FamilySymbol")
     var familySymbol: String? = null
 
-//    @ApiModelProperty(value = "revit模型中的id")
+//   @Schema(description = "revit模型中的id")
 //    @Column(name = "revit_id")
 //    @JSONField(name = "Id")
 //    var revitId : String? = null
 
 //    @JSONField(name = "ElementType")
-//    @ApiModelProperty(value = "类型")
+//   @Schema(description = "类型")
 //    @Column(name = "type")
 //    var elementType : String? = null
 
     @JSONField(name = "Thick")
-    @ApiModelProperty(value = "厚度")
+   @Schema(description = "厚度")
     @Column(name = "thick")
     @JsonProperty("Thick")
     var thick : Double? = null

+ 3 - 3
revit-algorithm/src/main/kotlin/com/persagy/revit/models/entities/WindowDoorBase.kt

@@ -3,7 +3,7 @@ package com.persagy.revit.models.entities
 import com.alibaba.fastjson.annotation.JSONField
 import com.fasterxml.jackson.annotation.JsonIgnoreProperties
 import com.fasterxml.jackson.annotation.JsonProperty
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
 import javax.persistence.Column
 
 /**
@@ -15,12 +15,12 @@ import javax.persistence.Column
 open class WindowDoorBase : BaseComponent() {
 
     /** 所属墙 */
-    @ApiModelProperty(value = "所属墙")
+   @Schema(description = "所属墙")
     @Column(name = "wall_id")
     var wallId: String? = null
 
     /** 拥有者的RevitId */
-    @ApiModelProperty(value = "拥有者的RevitId")
+   @Schema(description = "拥有者的RevitId")
     @Column(name = "owner")
     @JSONField(name = "Owner")
     @JsonProperty("Owner")

+ 4 - 0
revit-algorithm/src/main/kotlin/com/persagy/revit/models/jsonAnalyzer/AllComponents.kt

@@ -69,6 +69,10 @@ class AllComponents{
     @JsonProperty("Spaces")
     var spaces : ArrayList<Space>? = null
 
+    @JSONField(name = "Rooms")
+    @JsonProperty("Rooms")
+    var rooms : ArrayList<Room>? = null
+
     @JSONField(name = "Walls")
     @JsonProperty("Walls")
     var walls : ArrayList<Wall>? = null

+ 1 - 1
revit-algorithm/src/main/kotlin/com/persagy/revit/models/jsonAnalyzer/Parameter.kt

@@ -14,7 +14,7 @@ class Parameter {
 
     @JSONField(name = "Name")
     @JsonProperty("Name")
-    val name : String? = null
+    var name : String? = null
 
     @JSONField(name = "Value")
     @JsonProperty("Value")

+ 15 - 16
revit-algorithm/src/main/kotlin/com/persagy/revit/models/log/SyncLogEntity.kt

@@ -1,8 +1,7 @@
 package com.persagy.revit.models.log
 
 import com.fasterxml.jackson.annotation.JsonIgnoreProperties
-import io.swagger.annotations.ApiModel
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
 import javax.persistence.Column
 import javax.persistence.Id
 import javax.persistence.Table
@@ -12,73 +11,73 @@ import javax.persistence.Table
  *
  * @author jxing
  */
-@ApiModel(description = "同步数据到数据中心的日志")
+@Schema(description = "同步数据到数据中心的日志")
 @Table(name = "revit.sync_log")
 @JsonIgnoreProperties(ignoreUnknown = true)
 class SyncLogEntity {
     /** 自增id */
-    @ApiModelProperty(value = "模型id")
+   @Schema(description = "模型id")
     @Column(name = "id", updatable = false)
     @Id
     var id: Int? = null
 
     /** 对象id */
-    @ApiModelProperty(value = "对象id")
+   @Schema(description = "对象id")
     @Column(name = "obj_id")
     var objId: String? = null
 
     /** 模型id */
-    @ApiModelProperty(value = "模型id")
+   @Schema(description = "模型id")
     @Column(name = "model_id")
     var modelId: String? = null
 
     /** 操作: 0表示删除, 1表示添加, 2表示修改  */
-    @ApiModelProperty(value = "操作: 0表示删除, 1表示添加, 2表示修改")
+   @Schema(description = "操作: 0表示删除, 1表示添加, 2表示修改")
     @Column(name = "operation")
     var operation: Int? = null
 
     /** 建筑id */
-    @ApiModelProperty(value = "建筑id")
+   @Schema(description = "建筑id")
     @Column(name = "building_id")
     var buildingId: String? = null
 
     /** 楼层id */
-    @ApiModelProperty(value = "楼层id")
+   @Schema(description = "楼层id")
     @Column(name = "floor_id")
     var floorId: String? = null
 
     /** 建筑名 */
-    @ApiModelProperty(value = "建筑名")
+   @Schema(description = "建筑名")
     @Column(name = "building_name")
     var buildingName: String? = null
 
     /** 楼层名 */
-    @ApiModelProperty(value = "楼层名")
+   @Schema(description = "楼层名")
     @Column(name = "floor_name")
     var floorName: String? = null
 
     /** BIMID */
-    @ApiModelProperty(value = "BIMID")
+   @Schema(description = "BIMID")
     @Column(name = "bim_id")
     var bimId: String? = null
 
     /** 本地名称 */
-    @ApiModelProperty(value = "本地名称")
+   @Schema(description = "本地名称")
     @Column(name = "local_name")
     var localName: String? = null
 
     /** 本地编码 */
-    @ApiModelProperty(value = "本地编码")
+   @Schema(description = "本地编码")
     @Column(name = "local_id")
     var localId: String? = null
 
     /** CADID */
-    @ApiModelProperty(value = "CADID")
+   @Schema(description = "CADID")
     @Column(name = "cad_id")
     var cadId: String? = null
 
     /** 对象类型 */
-    @ApiModelProperty(value = "对象类型")
+   @Schema(description = "对象类型")
     @Column(name = "type")
     var type: String? = null
 }

+ 11 - 12
revit-algorithm/src/main/kotlin/com/persagy/revit/models/modelFile/FloorModel.kt

@@ -23,8 +23,7 @@ package com.persagy.revit.models.modelFile
 import com.alibaba.fastjson.JSONArray
 import com.persagy.service.models.SBaseEntity
 import com.sun.org.apache.xpath.internal.operations.Bool
-import io.swagger.annotations.ApiModel
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
 import javax.persistence.Column
 import javax.persistence.Id
 import javax.persistence.Table
@@ -34,52 +33,52 @@ import javax.persistence.Table
  *
  * @author jxing
  */
-@ApiModel(description = "模型楼层")
+@Schema(description = "模型楼层")
 @Table(name = "revit.model_floor")
 class FloorModel : SBaseEntity() {
     /** 表自增id */
-    @ApiModelProperty(value = "表自增id")
+   @Schema(description = "表自增id")
     @Column(name = "id")
     @Id
     var id: String? = null
 
     /** 项目id */
-    @ApiModelProperty(value = "项目id")
+   @Schema(description = "项目id")
     @Column(name = "project_id")
     var projectId: String? = null
 
     /** 楼层名称 */
-    @ApiModelProperty(value = "楼层名称")
+   @Schema(description = "楼层名称")
     @Column(name = "floor_name")
     var floorName: String? = null
 
     /** 该楼层当前的模型id */
-    @ApiModelProperty(value = "该楼层当前的模型id")
+   @Schema(description = "该楼层当前的模型id")
     @Column(name = "current_model_id")
     var currentModelId: String? = null
 
     /** 该楼层所属的文件夹id */
-    @ApiModelProperty(value = "该楼层所属的文件夹id")
+   @Schema(description = "该楼层所属的文件夹id")
     @Column(name = "folder_id")
     var folderId: String? = null
 
     // new
 
     /** 该楼层在物理世界上的楼层id */
-    @ApiModelProperty(value = "该楼层在物理世界上的楼层id")
+   @Schema(description = "该楼层在物理世界上的楼层id")
     var floorId: String? = null
 
     /** 该楼层在物理世界上的楼层id */
-    @ApiModelProperty(value = "是否覆盖以前绑定的楼层, true是覆盖, false是只添加, 默认false")
+   @Schema(description = "是否覆盖以前绑定的楼层, true是覆盖, false是只添加, 默认false")
     var isCover: Boolean? = null
 
     /** 该楼层在物理世界上的建筑id */
-    @ApiModelProperty(value = "该楼层在物理世界上的建筑id")
+   @Schema(description = "该楼层在物理世界上的建筑id")
     @Column(name = "building_id")
     var buildingId: String? = null
 
 //    /** 该楼层在物理世界上的楼层id */
-//    @ApiModelProperty(value = "该楼层在物理世界上的楼层id")
+//   @Schema(description = "该楼层在物理世界上的楼层id")
 //    @Column(name = "bind_floor_ids")
 //    var floorIdList: ArrayList<String>? = null
 

+ 23 - 24
revit-algorithm/src/main/kotlin/com/persagy/revit/models/modelFile/FloorModelView.kt

@@ -1,7 +1,6 @@
 package com.persagy.revit.models.modelFile
 
-import io.swagger.annotations.ApiModel
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
 import java.io.Serializable
 import java.util.*
 import javax.persistence.Column
@@ -13,112 +12,112 @@ import javax.persistence.Table
  *
  * @author jxing
  */
-@ApiModel(description = "模型楼层查询视图")
+@Schema(description = "模型楼层查询视图")
 @Table(name = "revit.model_floor_file")
 open class FloorModelView : Serializable {
     /** 楼层id */
-    @ApiModelProperty(value = "视图id")
+   @Schema(description = "视图id")
     @Column(name = "id" , insertable = false, updatable = false)
     @Id
     var id: String? = null
 
     /** 项目id */
-    @ApiModelProperty(value = "项目id")
+   @Schema(description = "项目id")
     @Column(name = "project_id")
     var projectId: String? = null
 
     /** 楼层名称 */
-    @ApiModelProperty(value = "楼层名称")
+   @Schema(description = "楼层名称")
     @Column(name = "floor_name")
     var floorName: String? = null
 
     /** 该楼层当前的模型id */
-    @ApiModelProperty(value = "该楼层当前的模型id")
+   @Schema(description = "该楼层当前的模型id")
     @Column(name = "fid")
     var currentModelId: String? = null
 
     /** 该楼层所属的文件夹id */
-    @ApiModelProperty(value = "该楼层所属的文件夹id")
+   @Schema(description = "该楼层所属的文件夹id")
     @Column(name = "folder_id")
     var folderId: String? = null
 
     /** 上传完成, 初步校验完成时间 */
-    @ApiModelProperty(value = "上传完成, 初步校验完成时间")
+   @Schema(description = "上传完成, 初步校验完成时间")
     @Column(name = "accept_time")
     var acceptTime: Date? = null
 
     /** 版本号 */
-    @ApiModelProperty(value = "版本号")
+   @Schema(description = "版本号")
     @Column(name = "version")
     var version: Int? = null
 
     /** 备注 */
-    @ApiModelProperty(value = "备注")
+   @Schema(description = "备注")
     @Column(name = "note")
     var note: String? = null
 
     /** 上传人用户id */
-    @ApiModelProperty(value = "上传人用户id")
+   @Schema(description = "上传人用户id")
     @Column(name = "user_id")
     var userId: String? = null
 
     /** 上传人用户名 */
-    @ApiModelProperty(value = "上传人用户名")
+   @Schema(description = "上传人用户名")
     @Column(name = "user_name")
     var userName: String? = null
 
     /** 处理日志 */
-    @ApiModelProperty(value = "处理日志")
+   @Schema(description = "处理日志")
     @Column(name = "log")
     var log: Map<String, Any?>? = null
 
     /** 模型url */
-    @ApiModelProperty(value = "模型url")
+   @Schema(description = "模型url")
     @Column(name = "url")
     var url: String? = null
 
     /** 模型md5值 */
-    @ApiModelProperty(value = "模型md5值")
+   @Schema(description = "模型md5值")
     @Column(name = "md5")
     var md5: String? = null
 
     /** 模型文件状态 */
-    @ApiModelProperty(value = "模型文件状态")
+   @Schema(description = "模型文件状态")
     @Column(name = "status")
     var status: Int? = null
 
     /** 模型文件平面图名称 */
-    @ApiModelProperty(value = "模型文件平面图名称")
+   @Schema(description = "模型文件平面图名称")
     @Column(name = "plan_name")
     var planName: String? = null
 
     /** 模型文件的标高 */
-    @ApiModelProperty(value = "模型文件的标高")
+   @Schema(description = "模型文件的标高")
     @Column(name = "level")
     var baseLevel: Double? = null
 
     /** 调度器信息 */
-    @ApiModelProperty(value = "调度器信息")
+   @Schema(description = "调度器信息")
     @Column(name = "scheduler_info")
     var taskInfo: SchedulerInfo? = null
 
     /** 模型文件检查结果中非阻塞性检查是否有错误 */
-    @ApiModelProperty(value = "模型文件检查结果中非阻塞性检查是否有错误")
+   @Schema(description = "模型文件检查结果中非阻塞性检查是否有错误")
     @Column(name = "data_check_result")
     var dataCheckResult: Boolean? = null
 
     /** 模型文件大小 */
-    @ApiModelProperty(value = "模型文件大小")
+   @Schema(description = "模型文件大小")
     @Column(name = "size")
     var size: Long? = null
 
     /** 模型文件原始名称 */
-    @ApiModelProperty(value = "模型文件原始名称")
+   @Schema(description = "模型文件原始名称")
     @Column(name = "original_name")
     var originalName: String? = null
 
     /** 模型的revit版本 */
-    @ApiModelProperty(value = "模型的revit版本")
+   @Schema(description = "模型的revit版本")
     @Column(name = "revit_version")
     var revitVersion: String? = null
 }

+ 0 - 0
revit-algorithm/src/main/kotlin/com/persagy/revit/models/modelFile/ModelFile.kt


部分文件因文件數量過多而無法顯示