已重命名14个文件
已添加9个文件
已修改80个文件
已删除77个文件
13997 ■■■■ 文件已修改
pom.xml 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-collect/pom.xml 123 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-collect/src/main/java/com/terra/collect/SeCollectApp.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-collect/src/main/java/com/terra/collect/controller/TestController.java 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-collect/src/main/java/com/terra/collect/entity/all/HttpStatus.java 104 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-collect/src/main/java/com/terra/collect/entity/all/ResponseMsg.java 107 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-collect/src/main/resources/application-prod.yml 81 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-collect/src/main/resources/bootstrap.yml 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-collect/src/main/resources/mybatis.xml 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/pom.xml 94 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/annotation/Excel.java 187 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/annotation/Excels.java 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/config/MybatisPlusConfig.java 52 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/config/SpringDocAutoConfiguration.java 64 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/configure/FastJson2JsonRedisSerializer.java 53 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/configure/RedisConfig.java 43 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/constant/CacheConstants.java 59 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/constant/GenConstants.java 117 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/constant/HttpStatus.java 94 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/constant/ScheduleConstants.java 50 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/constant/SecurityConstants.java 49 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/constant/ServiceNameConstants.java 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/constant/TokenConstants.java 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/constant/UserConstants.java 88 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/context/SecurityContextHolder.java 98 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/controller/all/BaseController.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/entity/all/HttpStatus.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/entity/all/ResponseMsg.java 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/entity/all/SpringDocProperties.java 135 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/entity/all/StaticData.java 272 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/enums/UserStatus.java 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/exception/CaptchaException.java 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/exception/CheckedException.java 31 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/exception/DemoModeException.java 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/exception/GlobalException.java 58 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/exception/InnerAuthException.java 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/exception/PreAuthorizeException.java 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/exception/ServiceException.java 74 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/exception/UtilException.java 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/exception/auth/NotLoginException.java 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/exception/auth/NotPermissionException.java 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/exception/auth/NotRoleException.java 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/exception/base/BaseException.java 79 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/exception/file/FileException.java 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/exception/file/FileNameLengthLimitExceededException.java 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/exception/file/FileSizeLimitExceededException.java 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/exception/file/FileUploadException.java 61 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/exception/file/InvalidExtensionException.java 80 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/exception/job/TaskException.java 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/exception/user/CaptchaExpireException.java 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/exception/user/UserException.java 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/exception/user/UserPasswordNotMatchException.java 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/extend/CustomizedSqlInjector.java 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/extend/InsertBatchMethod.java 76 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/extend/UpdateBatchMethod.java 86 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/service/RedisService.java 265 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/utils/DateUtils.java 191 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/utils/ExceptionUtil.java 39 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/utils/JwtUtils.java 123 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/utils/PageUtils.java 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/utils/SpringUtils.java 114 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/utils/bean/BeanUtils.java 110 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/utils/bean/BeanValidators.java 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/utils/file/FileTypeUtils.java 95 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/utils/file/FileUtils.java 253 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/utils/file/ImageUtils.java 84 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/utils/file/MimeTypeUtils.java 59 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/utils/ip/IpUtils.java 382 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/utils/poi/ExcelHandlerAdapter.java 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/utils/poi/ExcelUtil.java 1626 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/utils/reflect/ReflectUtils.java 410 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/utils/sign/Base64.java 291 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/utils/sql/SqlUtil.java 70 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/utils/uuid/IdUtils.java 49 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/utils/uuid/Seq.java 86 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/utils/uuid/UUID.java 484 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/web/controller/BaseController.java 160 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/web/domain/AjaxResult.java 216 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/web/domain/BaseEntity.java 118 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/web/domain/TreeEntity.java 79 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/web/page/PageDomain.java 101 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/web/page/TableDataInfo.java 85 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/web/page/TableSupport.java 56 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/xss/Xss.java 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/java/com/terra/common/xss/XssValidator.java 39 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-common/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-discover/pom.xml 133 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-discover/src/main/java/com/terra/discover/SeDiscoverApp.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-discover/src/main/java/com/terra/discover/controller/TestController.java 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-discover/src/main/java/com/terra/discover/controller/all/BaseController.java 44 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-discover/src/main/java/com/terra/discover/entity/all/ResponseMsg.java 107 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-discover/src/main/resources/bootstrap.yml 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-discover/src/main/resources/mybatis.xml 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-gateway/pom.xml 21 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-gateway/src/main/java/com/terra/gateway/SeGatewayApp.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-gateway/src/main/java/com/terra/gateway/config/SpringDocConfig.java 94 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-gateway/src/main/java/com/terra/gateway/constant/Constants.java 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-gateway/src/main/java/com/terra/gateway/domain/R.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-gateway/src/main/java/com/terra/gateway/filter/AuthFilter.java 128 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-gateway/src/main/java/com/terra/gateway/filter/BlackListUrlFilter.java 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-gateway/src/main/java/com/terra/gateway/filter/XssFilter.java 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-gateway/src/main/java/com/terra/gateway/handler/GatewayExceptionHandler.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-gateway/src/main/java/com/terra/gateway/handler/SentinelFallbackHandler.java 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-gateway/src/main/java/com/terra/gateway/text/CharsetKit.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-gateway/src/main/java/com/terra/gateway/text/Convert.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-gateway/src/main/java/com/terra/gateway/text/StrFormatter.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-gateway/src/main/java/com/terra/gateway/utils/ServletUtils.java 35 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-gateway/src/main/java/com/terra/gateway/utils/StringUtils.java 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-gateway/src/main/java/com/terra/gateway/utils/html/EscapeUtil.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-gateway/src/main/java/com/terra/gateway/utils/html/HTMLFilter.java 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-gateway/src/main/resources/bootstrap.yml 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-publish/pom.xml 133 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-publish/src/main/java/com/terra/publish/SePublishApp.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-publish/src/main/java/com/terra/publish/controller/TestController.java 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-publish/src/main/java/com/terra/publish/controller/all/BaseController.java 44 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-publish/src/main/java/com/terra/publish/entity/all/HttpStatus.java 104 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-publish/src/main/resources/bootstrap.yml 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-publish/src/main/resources/mybatis.xml 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/pom.xml 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/SeSystemApp.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/aspect/LogAspect.java 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/config/SwaggerConfig.java 76 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/config/WebConfig.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/all/BaseQueryController.java 226 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/all/CrdsController.java 164 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/all/FmeItController.java 290 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/all/PermsController.java 35 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/all/SignController.java 35 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/data/DataCountController.java 88 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/data/DataQueryController.java 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/data/DictController.java 93 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/data/DirController.java 73 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/data/DomainController.java 109 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/data/MetaController.java 161 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/data/ProjectController.java 57 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/data/PublishController.java 96 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/data/StyleController.java 97 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/data/TaskController.java 73 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/data/VerController.java 62 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/data/WmtsController.java 31 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/data/upload/CheckController.java 70 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/data/upload/QueryController.java 80 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/data/upload/UploadController.java 70 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/show/ApplyController.java 71 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/show/ComprehensiveController.java 93 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/show/DataLibController.java 65 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/show/ExportController.java 33 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/show/InquiryController.java 25 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/show/MarkController.java 61 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/show/ModelController.java 67 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/ArgsController.java 81 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/AuthController.java 86 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/BlacklistController.java 87 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/CtrlController.java 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/DepController.java 61 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/DownlogController.java 27 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/LayerController.java 65 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/LoginController.java 94 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/MenuAuthController.java 97 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/MenuController.java 62 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/OperateController.java 94 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/ReportController.java 59 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/ResController.java 98 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/ResLogController.java 55 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/ResOpController.java 94 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/RoleController.java 82 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/RoleLayerController.java 69 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/RoleMenuAuthController.java 93 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/RoleResController.java 69 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/RoleUserController.java 81 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/TokenController.java 86 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/controller/sys/UserController.java 118 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/entity/all/StaticData.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/java/com/terra/system/service/data/UploadService.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/resources/application-dev.yml 137 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/resources/application-prod.yml 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/resources/application-test.yml 158 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/resources/bootstrap.yml 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/resources/mybatis.xml 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
sm.txt 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pom.xml
@@ -111,32 +111,11 @@
                <version>${tomcat.version}</version>
            </dependency>
            <!-- pagehelper åˆ†é¡µæ’ä»¶ -->
            <dependency>
                <groupId>com.github.pagehelper</groupId>
                <artifactId>pagehelper-spring-boot-starter</artifactId>
                <version>${pagehelper.boot.version}</version>
            </dependency>
            <!-- io常用工具类 -->
            <dependency>
                <groupId>commons-io</groupId>
                <artifactId>commons-io</artifactId>
                <version>${commons.io.version}</version>
            </dependency>
            <!-- excel工具 -->
            <dependency>
                <groupId>org.apache.poi</groupId>
                <artifactId>poi-ooxml</artifactId>
                <version>${poi.version}</version>
            </dependency>
            <!-- ä»£ç ç”Ÿæˆä½¿ç”¨æ¨¡æ¿ -->
            <dependency>
                <groupId>org.apache.velocity</groupId>
                <artifactId>velocity-engine-core</artifactId>
                <version>${velocity.version}</version>
            </dependency>
            <!-- JSON è§£æžå™¨å’Œç”Ÿæˆå™¨ -->
@@ -166,6 +145,9 @@
        <module>se-common</module>
        <module>se-gateway</module>
        <module>se-system</module>
        <module>se-collect</module>
        <module>se-discover</module>
        <module>se-publish</module>
    </modules>
    <packaging>pom</packaging>
se-collect/pom.xml
@@ -50,19 +50,6 @@
            <optional>true</optional>
        </dependency>
        <!--mybatis-plus-->
        <dependency>
            <groupId>com.baomidou</groupId>
            <artifactId>mybatis-plus-boot-starter</artifactId>
            <version>3.5.1</version>
        </dependency>
        <!--redis-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-redis</artifactId>
        </dependency>
        <!--postgresql-->
        <dependency>
            <groupId>org.postgresql</groupId>
@@ -80,13 +67,6 @@
            <artifactId>spring-boot-starter-aop</artifactId>
        </dependency>
        <!--fastjson-->
        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>fastjson</artifactId>
            <version>1.2.47</version>
        </dependency>
        <!--整合druid数据源-->
        <dependency>
            <groupId>com.alibaba</groupId>
@@ -99,114 +79,11 @@
            <version>1.2.25</version>
        </dependency>
        <!--text-->
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-text</artifactId>
            <version>1.1</version>
        </dependency>
        <!--swagger-->
        <dependency>
            <groupId>io.springfox</groupId>
            <artifactId>springfox-swagger2</artifactId>
            <version>2.9.2</version>
        </dependency>
        <dependency>
            <groupId>io.springfox</groupId>
            <artifactId>springfox-swagger-ui</artifactId>
            <version>2.9.2</version>
        </dependency>
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <version>27.0-jre</version>
        </dependency>
        <!--httpclient-->
        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpclient</artifactId>
        </dependency>
        <!--websocket-->
        <dependency>
            <groupId>javax.websocket</groupId>
            <artifactId>javax.websocket-api</artifactId>
            <version>1.0</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-websocket</artifactId>
        </dependency>
        <!--hutool-->
        <dependency>
            <groupId>cn.hutool</groupId>
            <artifactId>hutool-all</artifactId>
            <version>5.7.20</version>
        </dependency>
        <!--commons-fileupload-->
        <dependency>
            <groupId>commons-fileupload</groupId>
            <artifactId>commons-fileupload</artifactId>
            <version>1.4</version>
        </dependency>
        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
            <version>2.11.0</version>
        </dependency>
        <!--gdal-->
        <dependency>
            <groupId>org.gdal</groupId>
            <artifactId>gdal</artifactId>
            <version>3.2.0</version>
        </dependency>
        <!--zip4j-->
        <dependency>
            <groupId>net.lingala.zip4j</groupId>
            <artifactId>zip4j</artifactId>
            <version>2.6.4</version>
        </dependency>
        <!--easyexcel-->
        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>easyexcel</artifactId>
            <version>2.2.10</version>
        </dependency>
        <!--servlet-->
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <version>3.1.0</version>
            <scope>provided</scope>
        </dependency>
        <!--apache.poi-->
        <dependency>
            <groupId>org.apache.poi</groupId>
            <artifactId>poi-ooxml</artifactId>
            <version>3.16</version>
        </dependency>
        <!--proj4j-->
        <dependency>
            <groupId>org.osgeo</groupId>
            <artifactId>proj4j</artifactId>
            <version>0.1.0</version>
        </dependency>
        <!--JTS-->
        <dependency>
            <groupId>org.locationtech.jts</groupId>
            <artifactId>jts-core</artifactId>
            <version>1.19.0</version>
        </dependency>
        <!-- se-common -->
se-collect/src/main/java/com/terra/collect/SeCollectApp.java
@@ -4,10 +4,8 @@
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
@EnableAsync
@EnableSwagger2
@EnableAspectJAutoProxy(exposeProxy = true)
@SpringBootApplication(scanBasePackages = {"com.terra.collect.*"})
public class SeCollectApp
se-collect/src/main/java/com/terra/collect/controller/TestController.java
@@ -1,27 +1,23 @@
package com.terra.collect.controller;
import com.terra.collect.controller.all.BaseController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import com.terra.common.controller.all.BaseController;
import org.springframework.web.bind.annotation.*;
import com.terra.collect.entity.all.ResponseMsg;
import com.terra.common.entity.all.ResponseMsg;
import java.util.Date;
import java.text.SimpleDateFormat;
@Api(tags = "数据汇集\\测试服务")
@RestController
@RequestMapping("/test")
public class TestController extends BaseController {
    public static final SimpleDateFormat YMDHMS_FORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    @ApiOperation(value = "Test")
    @GetMapping(value = "/test")
    public ResponseMsg<Object> test() {
        try {
            String date = YMDHMS_FORMAT.format(new Date());
            return success(date);
            return success("Collect", date);
        } catch (Exception ex) {
            return fail(ex, null);
        }
se-collect/src/main/java/com/terra/collect/entity/all/HttpStatus.java
ÎļþÒÑɾ³ý
se-collect/src/main/java/com/terra/collect/entity/all/ResponseMsg.java
ÎļþÒÑɾ³ý
se-collect/src/main/resources/application-prod.yml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,81 @@
server:
  tomcat:
    uri-encoding: UTF-8
    max-connections: 5000
    max-http-form-post-size: 100MB
    threads:
      max: 2000
  servlet:
    context-path: /
spring:
  # redis
  redis:
    database: 0
    host: 192.168.11.203
    port: 6379
    password: rediS_5L#F4_Server
    timeout: 10000
    lettuce:
      pool:
        max-active: 1000
        max-wait: -1
        max-idle: 10
        min-idle: 5
  # session
  session:
    timeout: PT20M
  # servlet
  servlet:
    multipart:
      enabled: true
      max-file-size: 204800MB
      max-request-size: 1048576MB
  # jackson
  jackson:
    time-zone: GMT+8
    date-format: yyyy-MM-dd HH:mm:ss
    locale: zh_CN
  # datasource
  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    url: jdbc:postgresql://192.168.11.203:5432/jhs?useAffectedRows=true
    username: postgres
    password: Postgres!_17_jHs
    driver-class-name: org.postgresql.Driver
    platform: POSTGRESQL
    filters: stat,wall,log4j
    connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
    logAbandoned: true
    # druid
    druid:
      initial-size: 5
      min-idle: 5
      max-active: 100
      max-wait: 60000
      time-between-eviction-runs-millis: 60000
      min-evictable-idle-time-millis: 300000
      max-pool-prepared-statement-per-connection-size: 50
      pool-prepared-statements: true
      validation-query: SELECT 1
      test-while-idle: true
      test-on-borrow: false
      test-on-return: false
      filters: stat,wall
      stat-view-servlet:
        enabled: false
mybatis-plus:
  config-location: classpath:mybatis.xml
logging:
  config: classpath:logback.xml
remote:
  maxTotalConnect: 0
  maxConnectPerRoute: 1000
  connectTimeout: 30000
  readTimeout: -1
sys:
  swaggerEnable: true
se-collect/src/main/resources/bootstrap.yml
@@ -17,6 +17,8 @@
      discovery:
        # æœåŠ¡æ³¨å†Œåœ°å€
        server-addr: 127.0.0.1:8848
        group: JHS_GROUP
        #namespace: public
      config:
        group: JHS_GROUP
        # é…ç½®ä¸­å¿ƒåœ°å€
se-collect/src/main/resources/mybatis.xml
@@ -32,6 +32,7 @@
        <setting name="logImpl" value="NO_LOGGING" />
    </settings>
    <typeAliases>
        <!--‌类型别名配置-->
        <package name="com.terra.collect.entity"/>
    </typeAliases>
</configuration>
se-common/pom.xml
@@ -17,100 +17,24 @@
    <dependencies>
        <!-- SpringCloud Openfeign -->
        <!--mybatis-plus-->
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-openfeign</artifactId>
        </dependency>
        <!-- SpringCloud Loadbalancer -->
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-loadbalancer</artifactId>
            <groupId>com.baomidou</groupId>
            <artifactId>mybatis-plus-boot-starter</artifactId>
            <version>3.5.1</version>
        </dependency>
        <!-- Spring Context Support -->
        <!-- SpringDoc webmvc -->
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context-support</artifactId>
            <groupId>org.springdoc</groupId>
            <artifactId>springdoc-openapi-ui</artifactId>
            <version>${springdoc.version}</version>
        </dependency>
        <!-- Spring Web -->
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-web</artifactId>
        </dependency>
        <!-- Transmittable ThreadLocal -->
        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>transmittable-thread-local</artifactId>
        </dependency>
        <!-- Pagehelper -->
        <dependency>
            <groupId>com.github.pagehelper</groupId>
            <artifactId>pagehelper-spring-boot-starter</artifactId>
        </dependency>
        <!-- Hibernate Validator -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-validation</artifactId>
        </dependency>
        <!-- Jackson -->
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
        </dependency>
        <!-- Alibaba Fastjson -->
        <!-- JSON è§£æžå™¨å’Œç”Ÿæˆå™¨ -->
        <dependency>
            <groupId>com.alibaba.fastjson2</groupId>
            <artifactId>fastjson2</artifactId>
        </dependency>
        <!-- Jwt -->
        <dependency>
            <groupId>io.jsonwebtoken</groupId>
            <artifactId>jjwt</artifactId>
        </dependency>
        <!-- Jaxb -->
        <dependency>
            <groupId>javax.xml.bind</groupId>
            <artifactId>jaxb-api</artifactId>
        </dependency>
        <!-- Apache Lang3 -->
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
        </dependency>
        <!-- Commons Io -->
        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
        </dependency>
        <!-- excel工具 -->
        <dependency>
            <groupId>org.apache.poi</groupId>
            <artifactId>poi-ooxml</artifactId>
        </dependency>
        <!-- Java Servlet -->
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
        </dependency>
        <!-- SpringBoot Boot Redis -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-redis</artifactId>
        </dependency>
    </dependencies>
se-common/src/main/java/com/terra/common/annotation/Excel.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/annotation/Excels.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/config/MybatisPlusConfig.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,52 @@
package com.terra.common.config;
import com.baomidou.mybatisplus.annotation.DbType;
import com.baomidou.mybatisplus.autoconfigure.ConfigurationCustomizer;
import com.baomidou.mybatisplus.core.MybatisConfiguration;
import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import com.terra.common.extend.CustomizedSqlInjector;
import org.apache.ibatis.type.JdbcType;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;
/**
 * Mybatis-Plus分页配置
 * @author WWW
 */
@EnableTransactionManagement
@Configuration
@MapperScan("com.terra.*.mapper")
public class MybatisPlusConfig {
    /**
     * æ–°çš„分页插件,一缓和二缓遵循mybatis的规则,需要设置
     * MybatisConfiguration#useDeprecatedExecutor = false
     * é¿å…ç¼“存出现问题(该属性会在旧插件移除后一同移除)
     */
    @Bean
    public MybatisPlusInterceptor mybatisPlusInterceptor() {
        MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
        interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.POSTGRE_SQL));
        return interceptor;
    }
    @Bean
    public ConfigurationCustomizer configurationCustomizer() {
        return new ConfigurationCustomizer() {
            @Override
            public void customize(MybatisConfiguration configuration) {
                configuration.setCacheEnabled(true);
                configuration.setMapUnderscoreToCamelCase(true);
                configuration.setCallSettersOnNulls(true);
                configuration.setJdbcTypeForNull(JdbcType.NULL);
            }
        };
    }
    @Bean
    public CustomizedSqlInjector customizedSqlInjector() {
        return new CustomizedSqlInjector();
    }
}
se-common/src/main/java/com/terra/common/config/SpringDocAutoConfiguration.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,64 @@
package com.terra.common.config;
import com.terra.common.entity.all.SpringDocProperties;
import io.swagger.v3.oas.models.Components;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.security.SecurityRequirement;
import io.swagger.v3.oas.models.security.SecurityScheme;
import io.swagger.v3.oas.models.servers.Server;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import java.util.ArrayList;
import java.util.List;
/**
 * Swagger æ–‡æ¡£é…ç½®
 *
 * @author admin
 */
@EnableConfigurationProperties(SpringDocProperties.class)
@ConditionalOnProperty(name = "springdoc.api-docs.enabled", havingValue = "true", matchIfMissing = true)
public class SpringDocAutoConfiguration
{
    @Bean
    @ConditionalOnMissingBean(OpenAPI.class)
    public OpenAPI openApi(SpringDocProperties properties)
    {
        return new OpenAPI().components(new Components()
            // è®¾ç½®è®¤è¯çš„请求头
            .addSecuritySchemes("apikey", securityScheme()))
            .addSecurityItem(new SecurityRequirement().addList("apikey"))
            .info(convertInfo(properties.getInfo()))
            .servers(servers(properties.getGatewayUrl()));
    }
    public SecurityScheme securityScheme()
    {
        return new SecurityScheme().type(SecurityScheme.Type.APIKEY)
            .name("Authorization")
            .in(SecurityScheme.In.HEADER)
            .scheme("Bearer");
    }
    private Info convertInfo(SpringDocProperties.InfoProperties infoProperties)
    {
        Info info = new Info();
        info.setTitle(infoProperties.getTitle());
        info.setDescription(infoProperties.getDescription());
        info.setContact(infoProperties.getContact());
        info.setLicense(infoProperties.getLicense());
        info.setVersion(infoProperties.getVersion());
        return info;
    }
    public List<Server> servers(String gatewayUrl)
    {
        List<Server> serverList = new ArrayList<>();
        serverList.add(new Server().url(gatewayUrl));
        return serverList;
    }
}
se-common/src/main/java/com/terra/common/configure/FastJson2JsonRedisSerializer.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/configure/RedisConfig.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/constant/CacheConstants.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/constant/GenConstants.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/constant/HttpStatus.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/constant/ScheduleConstants.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/constant/SecurityConstants.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/constant/ServiceNameConstants.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/constant/TokenConstants.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/constant/UserConstants.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/context/SecurityContextHolder.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/controller/all/BaseController.java
ÎļþÃû´Ó se-collect/src/main/java/com/terra/collect/controller/all/BaseController.java ÐÞ¸Ä
@@ -1,7 +1,7 @@
package com.terra.collect.controller.all;
package com.terra.common.controller.all;
import com.terra.collect.entity.all.HttpStatus;
import com.terra.collect.entity.all.ResponseMsg;
import com.terra.common.entity.all.HttpStatus;
import com.terra.common.entity.all.ResponseMsg;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
se-common/src/main/java/com/terra/common/entity/all/HttpStatus.java
ÎļþÃû´Ó se-discover/src/main/java/com/terra/discover/entity/all/HttpStatus.java ÐÞ¸Ä
@@ -1,4 +1,4 @@
package com.terra.discover.entity.all;
package com.terra.common.entity.all;
/**
 * Http状态码类
se-common/src/main/java/com/terra/common/entity/all/ResponseMsg.java
ÎļþÃû´Ó se-publish/src/main/java/com/terra/publish/entity/all/ResponseMsg.java ÐÞ¸Ä
@@ -1,4 +1,6 @@
package com.terra.publish.entity.all;
package com.terra.common.entity.all;
import com.terra.common.entity.all.HttpStatus;
/**
 * å“åº”消息类
se-common/src/main/java/com/terra/common/entity/all/SpringDocProperties.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,135 @@
package com.terra.common.entity.all;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.License;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;
/**
 * Swagger é…ç½®å±žæ€§
 *
 * @author admin
 */
@ConfigurationProperties(prefix = "springdoc")
public class SpringDocProperties
{
    /**
     * ç½‘å…³
     */
    private String gatewayUrl;
    /**
     * æ–‡æ¡£åŸºæœ¬ä¿¡æ¯
     */
    @NestedConfigurationProperty
    private InfoProperties info = new InfoProperties();
    /**
     * <p>
     * æ–‡æ¡£çš„基础属性信息
     * </p>
     *
     * @see io.swagger.v3.oas.models.info.Info
     *
     * ä¸ºäº† springboot è‡ªåŠ¨ç”Ÿäº§é…ç½®æç¤ºä¿¡æ¯ï¼Œæ‰€ä»¥è¿™é‡Œå¤åˆ¶ä¸€ä¸ªç±»å‡ºæ¥
     */
    public static class InfoProperties
    {
        /**
         * æ ‡é¢˜
         */
        private String title = null;
        /**
         * æè¿°
         */
        private String description = null;
        /**
         * è”系人信息
         */
        @NestedConfigurationProperty
        private Contact contact = null;
        /**
         * è®¸å¯è¯
         */
        @NestedConfigurationProperty
        private License license = null;
        /**
         * ç‰ˆæœ¬
         */
        private String version = null;
        public String getTitle()
        {
            return title;
        }
        public void setTitle(String title)
        {
            this.title = title;
        }
        public String getDescription()
        {
            return description;
        }
        public void setDescription(String description)
        {
            this.description = description;
        }
        public Contact getContact()
        {
            return contact;
        }
        public void setContact(Contact contact)
        {
            this.contact = contact;
        }
        public License getLicense()
        {
            return license;
        }
        public void setLicense(License license)
        {
            this.license = license;
        }
        public String getVersion()
        {
            return version;
        }
        public void setVersion(String version)
        {
            this.version = version;
        }
    }
    public String getGatewayUrl()
    {
        return gatewayUrl;
    }
    public void setGatewayUrl(String gatewayUrl)
    {
        this.gatewayUrl = gatewayUrl;
    }
    public InfoProperties getInfo()
    {
        return info;
    }
    public void setInfo(InfoProperties info)
    {
        this.info = info;
    }
}
se-common/src/main/java/com/terra/common/entity/all/StaticData.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,272 @@
package com.terra.common.entity.all;
import com.alibaba.fastjson2.JSON;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
 * é™æ€æ•°æ®ç±»
 * @author WWW
 */
public class StaticData {
    /**
     * æƒé™æŽ’除路径:/proxy,要求全部小写
     */
    public static String[] EXCLUDE_PATH = new String[]{"/sign/", "/perms/", "/fmeit/", "/crds/", "/floatserver/", "/wmts/select", "/onemap/", "/swagger", "/error"};
    public final static int I1 = 1;
    public final static int I2 = 2;
    public final static int FOUR = 4;
    public final static int I5 = 5;
    public final static int NINE = 9;
    public final static int I10 = 10;
    public final static int SIXTEEN = 16;
    public final static int TWO_HUNDRED = 200;
    public final static int I100000 = 100000;
    public final static int I1000000 = 1000000;
    public static final double D90 = 90.0;
    public static final double D100 = 100.0;
    public static final double D1024 = 1024.0;
    public static final double D1050 = 1050.0;
    public static final int I12 = 12;
    public static final int I23 = 23;
    public static final int I24 = 24;
    public static final int I31 = 31;
    public static final int I50 = 50;
    public static final int I60 = 60;
    public static final int I90 = 90;
    public static final int I90_NEG = -90;
    public final static int I100 = 100;
    public final static int I120 = 120;
    public static final int I180 = 180;
    public static final int I180_NEG = -180;
    public static final int I1000 = 1000;
    public static final int I2050 = 2050;
    public static final int I4326 = 4326;
    public static final int I4490 = 4490;
    public final static String S1 = "1";
    public final static String EQ = "=";
    public final static String POINT = ".";
    public final static String COMMA = ",";
    public final static String TILDE = "~";
    public final static String SINGLE_QUOTES = "'";
    public final static String BBOREHOLE = "bborehole";
    public final static String SLASH = "/";
    public final static String IN = "in";
    public final static String DWG = "dwg";
    public final static String ZIP = ".zip";
    public final static String XLS = ".xls";
    public final static String XLSX = ".xlsx";
    public final static String MDB = ".mdb";
    public final static String KML = ".kml";
    public final static String SHP = ".shp";
    public final static String NGDB = "gdb";
    public final static String GDB = ".gdb";
    public final static String JPG = ".jpg";
    public final static String IMG = ".img";
    public final static String MPT = ".mpt";
    public final static String D3DML = ".3dml";
    public final static String TIF = ".tif";
    public final static String TIFF = ".tiff";
    public final static String LAS = ".las";
    public final static String OSGB = ".osgb";
    public static String ADMIN = "admin";
    public final static String SYS_META = "sysmeta";
    public final static String VERSION = "1.0.0";
    public final static String TOKEN_KEY = "token";
    public final static String TOKEN_COOKIE_KEY = "token";
    public final static String TEXT_ENCODER = "UTF-8";
    public final static String CHECK_MAIN = "checkMain";
    public final static String OBJECT = "java.lang.Object";
    public final static String DRUID_COOKIE_KEY = "JSESSIONID";
    public final static String YES = "YES";
    public final static String NO = "NO";
    public final static String ROUTE = "线路";
    public final static String CROSSING = "穿跨越";
    public final static String LINESTRING = "LINESTRING";
    public final static String MULTILINESTRING = "MULTILINESTRING";
    public final static String POLYGON = "POLYGON";
    public final static String MULTIPOLYGON = "MULTIPOLYGON";
    public final static String MULTICURVE = "MULTICURVE";
    public final static String COMPOUNDCURVE = "COMPOUNDCURVE";
    public final static String CGCS2000 = "CGCS2000";
    public static final String NO_FILE = JSON.toJSONString(new ResponseMsg<String>(HttpStatus.NOT_FOUND, "文件找不到"));
    /**
     * 16进制
     */
    public static final char[] HEX_DIGITS = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
    /**
     * æ …格数据扩展名
     */
    public final static List<String> RASTER_EXT = new ArrayList<>(Arrays.asList(".img", ".tif", ".tiff", ".jpg", ".jp2"));
    /**
     * å¯†ç æ­£åˆ™è¡¨è¾¾å¼
     */
    public final static String PWD_REG = "^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![a-z0-9]+$)(?![a-z\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![0-9\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)[a-zA-Z0-9\\W!@#$%^&*`~()\\-_+=,.?;<>]{12,20}$";
    /**
     * MPT文件扩展名
     */
    public final static List<String> MPT_EXT = new ArrayList<>(Arrays.asList(".midx", ".strmi", ".ei.midx", ".ei.mpt", ".ei.strmi"));
    /**
     * JPG文件扩展名
     */
    public final static List<String> JPG_EXT = new ArrayList<>(Arrays.asList(".jpg.aux.xml", ".jpg.ovr", ".jpg.xml", ".jgw", ".prj"));
    /**
     * JP2文件扩展名
     */
    public final static List<String> JP2_EXT = new ArrayList<>(Arrays.asList(".jp2.aux.xml", ".jp2.ovr", ".jp2.xml", ".jgw", ".prj", ".jp2.html", ".jp2.txt"));
    /**
     * IMG文件扩展名
     */
    public final static List<String> IMG_EXT = new ArrayList<>(Arrays.asList(".rrd", ".img.aux.xml", ".hdr", ".img.enp", ".img.xml"));
    /**
     * TIF文件扩展名
     */
    public final static List<String> TIF_EXT = new ArrayList<>(Arrays.asList(".prj", ".tfw", ".aux", ".tif.ovr", ".tif.aux.xml", ".tif.xml"));
    /**
     * TIFF文件扩展名
     */
    public final static List<String> TIFF_EXT = new ArrayList<>(Arrays.asList(".prj", ".tfw", ".aux", ".tiff.ovr", ".tiff.aux.xml", ".tiff.xml"));
    /**
     * SHP文件扩展名
     */
    public final static List<String> SHP_EXT = new ArrayList<>(Arrays.asList(".shx", ".dbf", ".prj", ".cpg"));
    /**
     * Mapper排除扩展名
     */
    public final static List<String> MAPPER_EXCLUDE_EXT = new ArrayList<>(Arrays.asList(".jpg.aux.xml", ".jpg.xml", ".jp2.aux.xml", ".jp2.xml", ".jp2.html", ".jp2.txt", ".img.aux.xml", ".img.xml", ".tif.aux.xml", ".tif.xml", ".tiff.aux.xml", ".tiff.xml", ".shp.xml", ".ecw.xml", "ecw.aux.xml"));
    /**
     * æ‰€æœ‰æ–‡ä»¶æ‰©å±•名
     */
    public final static List<String> ALL_EXTENSION = new ArrayList<>(Arrays.asList(".txt", ".xml", ".pdf", ".xls", ".xlsx", ".doc", ".docx", ".ppt", ".pptx", ".shp", ".gdb", ".mdb", ".dwg", ".las", ".laz", ".cpt", ".mpt", ".ei.mpt", ".fly", ".efb", ".g3d", ".fbx", ".obj", ".3dm", ".3dml", ".osgb", ".rvt", ".ifc", ".jpg", ".jp2", ".png", ".img", ".tif", ".tiff", ".dem", ".bmp", ".gif", ".rmvb", ".rm", ".mp3", ".mp4", ".avi", ".wma", ".wmv", ".7z", ".rar", ".zip", ".lz", ".kml"));
    /**
     * æ’入排除字段
     */
    public final static List<String> INSERT_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("gid", "objectid", "updateuser", "updatetime", "shape_leng", "shape_area", "serialVersionUID", "dirName", "depName", "verName", "createName", "updateName"));
    /**
     * æ›´æ–°æŽ’除字段
     */
    public final static List<String> UPDATE_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("objectid", "createuser", "createtime", "shape_leng", "shape_area", "serialVersionUID", "dirName", "depName", "verName", "createName", "updateName"));
    /**
     * è¯»å–排除字段
     */
    public final static List<String> READ_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("gid", "eventid", "parentid", "objectid", "dirid", "depid", "verid", "createtime", "createuser", "updateuser", "updatetime", "shape_leng", "shape_area", "serialversionuid", "dirname", "depname", "vername", "createname", "updatename"));
    /**
     * MDB排除字段
     */
    public final static List<String> MDB_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("Shape", "SHAPE_LENG", "Shape_Length", "Shape_Area", "OBJECTID_1"));
    /**
     * æ ‡ç»˜Shp排除字段
     */
    public final static List<String> MARK_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("wkt", "geom", "objectid", "shape_leng", "shape_area", "serialVersionUID", "dirName", "depName", "verName", "createName", "updateName"));
    /**
     * GDB排除字段
     */
    public final static List<String> GDB_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("geom", "objectid", "shape_leng", "shape_area", "serialVersionUID", "dirName", "depName", "verName", "createName", "updateName"));
    /**
     * ç®¡çº¿åˆ†æžè¡¨åé›†åˆ
     */
    public final static List<String> PIPE_ANALYSIS_TABS = new ArrayList<>(Arrays.asList("bd.dlg_25w_hydl", "bd.dlg_25w_lrdl", "bd.dlg_25w_lrrl", "bd.dlg_25w_hyda"));
    /**
     * ç®¡çº¿æŽ’除字段
     */
    public final static List<String> PIPE_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("serialVersionUID", "tabs", "pwd", "gid", "wkt"));
}
se-common/src/main/java/com/terra/common/enums/UserStatus.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/exception/CaptchaException.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/exception/CheckedException.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/exception/DemoModeException.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/exception/GlobalException.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/exception/InnerAuthException.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/exception/PreAuthorizeException.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/exception/ServiceException.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/exception/UtilException.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/exception/auth/NotLoginException.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/exception/auth/NotPermissionException.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/exception/auth/NotRoleException.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/exception/base/BaseException.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/exception/file/FileException.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/exception/file/FileNameLengthLimitExceededException.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/exception/file/FileSizeLimitExceededException.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/exception/file/FileUploadException.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/exception/file/InvalidExtensionException.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/exception/job/TaskException.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/exception/user/CaptchaExpireException.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/exception/user/UserException.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/exception/user/UserPasswordNotMatchException.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/extend/CustomizedSqlInjector.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,27 @@
package com.terra.common.extend;
import com.baomidou.mybatisplus.core.injector.AbstractMethod;
import com.baomidou.mybatisplus.core.injector.DefaultSqlInjector;
import com.baomidou.mybatisplus.core.metadata.TableInfo;
import com.terra.common.extend.UpdateBatchMethod;
import java.util.List;
/**
 * è‡ªå®šä¹‰æ–¹æ³•SQL注入器
 * @author WWW
 */
public class CustomizedSqlInjector extends DefaultSqlInjector {
    /**
     * å¦‚果只需增加方法,保留mybatis plus自带方法,
     * å¯ä»¥å…ˆèŽ·å–super.getMethodList(),再添加add
     */
    @Override
    public List<AbstractMethod> getMethodList(Class<?> mapperClass, TableInfo tableInfo) {
        List<AbstractMethod> methodList = super.getMethodList(mapperClass, tableInfo);
        methodList.add(new InsertBatchMethod());
        methodList.add(new UpdateBatchMethod());
        return methodList;
    }
}
se-common/src/main/java/com/terra/common/extend/InsertBatchMethod.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,76 @@
package com.terra.common.extend;
import com.baomidou.mybatisplus.core.injector.AbstractMethod;
import com.baomidou.mybatisplus.core.metadata.TableFieldInfo;
import com.baomidou.mybatisplus.core.metadata.TableInfo;
import com.terra.common.entity.all.StaticData;
import org.apache.ibatis.executor.keygen.NoKeyGenerator;
import org.apache.ibatis.mapping.MappedStatement;
import org.apache.ibatis.mapping.SqlSource;
/**
 * æ‰¹é‡æ’入方法
 * @author WWW
 */
@SuppressWarnings("ALL")
public class InsertBatchMethod extends AbstractMethod {
    /**
     * insert into user(id, name, age) values (1, "a", 17), (2, "b", 18);
     * <script>
     * insert into user(id, name, age) values
     * <foreach collection="list" item="item" index="index" open="(" separator="),(" close=")">
     * #{item.id}, #{item.name}, #{item.age}
     * </foreach>
     * </script>
     */
    @Override
    public MappedStatement injectMappedStatement(Class<?> mapperClass, Class<?> modelClass, TableInfo tableInfo) {
        final String sql = "<script>insert into %s %s values %s</script>";
        final String fieldSql = prepareFieldSql(tableInfo);
        final String valueSql = prepareValuesSql(tableInfo);
        final String sqlResult = String.format(sql, tableInfo.getTableName(), fieldSql, valueSql);
        SqlSource sqlSource = languageDriver.createSqlSource(configuration, sqlResult, modelClass);
        // ç¬¬ä¸‰ä¸ªå‚数必须和RootMapper的自定义方法名一致
        return this.addInsertMappedStatement(mapperClass, modelClass, "insertBatch", sqlSource, new NoKeyGenerator(), null, null);
    }
    private String prepareFieldSql(TableInfo tableInfo) {
        StringBuilder fieldSql = new StringBuilder();
        // fieldSql.append(tableInfo.getKeyColumn()).append(",")
        // tableInfo.getFieldList().forEach(x -> fieldSql.append(x.getColumn()).append(","))
        for (TableFieldInfo f : tableInfo.getFieldList()) {
            if (StaticData.INSERT_EXCLUDE_FIELDS.contains(f.getProperty())) {
                continue;
            }
            fieldSql.append(f.getColumn()).append(",");
        }
        fieldSql.delete(fieldSql.length() - 1, fieldSql.length());
        fieldSql.insert(0, "(");
        fieldSql.append(")");
        return fieldSql.toString();
    }
    private String prepareValuesSql(TableInfo tableInfo) {
        final StringBuilder valueSql = new StringBuilder();
        valueSql.append("<foreach collection=\"list\" item=\"item\" index=\"index\" open=\"(\" separator=\"),(\" close=\")\">");
        // valueSql.append("#{item.").append(tableInfo.getKeyProperty()).append("},")
        // tableInfo.getFieldList().forEach(x -> valueSql.append("#{item.").append(x.getProperty()).append("},"))
        for (TableFieldInfo f : tableInfo.getFieldList()) {
            if (StaticData.INSERT_EXCLUDE_FIELDS.contains(f.getProperty())) {
                continue;
            }
            valueSql.append("geom".equals(f.getProperty()) ? "${item." : "#{item.").append(f.getProperty()).append("},");
        }
        valueSql.delete(valueSql.length() - 1, valueSql.length());
        valueSql.append("</foreach>");
        return valueSql.toString();
    }
}
se-common/src/main/java/com/terra/common/extend/UpdateBatchMethod.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,86 @@
package com.terra.common.extend;
import com.baomidou.mybatisplus.core.injector.AbstractMethod;
import com.baomidou.mybatisplus.core.metadata.TableFieldInfo;
import com.baomidou.mybatisplus.core.metadata.TableInfo;
import com.baomidou.mybatisplus.core.toolkit.sql.SqlScriptUtils;
import com.terra.common.entity.all.StaticData;
import org.apache.ibatis.mapping.MappedStatement;
import org.apache.ibatis.mapping.SqlSource;
/**
 * æ‰¹é‡æ›´æ–°æ–¹æ³•
 * @author WWW
 */
@SuppressWarnings("ALL")
public class UpdateBatchMethod extends AbstractMethod {
    /**
     * update user set name = "a", age = 17 where id = 1;
     * update user set name = "b", age = 18 where id = 2;
     * <script>
     * <foreach collection="list" item="item" separator=";">
     * update user
     * <set>
     * <if test="item.name != null and item.name != ''">
     * name = #{item.name,jdbcType=VARCHAR},
     * </if>
     * <if test="item.age != null">
     * age = #{item.age,jdbcType=INTEGER},
     * </if>
     * </set>
     * where id = #{item.id,jdbcType=INTEGER}
     * </foreach>
     * </script>
     */
    @Override
    public MappedStatement injectMappedStatement(Class<?> mapperClass, Class<?> modelClass, TableInfo tableInfo) {
        String sql = "<script>\n<foreach collection=\"list\" item=\"item\" separator=\";\">\nupdate %s %s where %s=#{%s} %s\n</foreach>\n</script>";
        String additional = tableInfo.isWithVersion() ? tableInfo.getVersionFieldInfo().getVersionOli("item", "item.") : "" + tableInfo.getLogicDeleteSql(true, true);
        //String setSql = sqlSet(tableInfo.isWithLogicDelete(), false, tableInfo, false, "item", "item.");
        String setSql = getSqlSet(tableInfo.isWithLogicDelete(), false, tableInfo, false, "item", "item.");
        String sqlResult = String.format(sql, tableInfo.getTableName(), setSql, tableInfo.getKeyColumn(), "item." + tableInfo.getKeyProperty(), additional);
        // update %s %s where %s=#{%s} %s
        // update tab set a=#{a} where gid=1
        SqlSource sqlSource = languageDriver.createSqlSource(configuration, sqlResult, modelClass);
        // ç¬¬ä¸‰ä¸ªå‚数必须和RootMapper的自定义方法名一致
        return this.addUpdateMappedStatement(mapperClass, modelClass, "updateBatch", sqlSource);
    }
    private String getSqlSet(boolean logic, boolean ew, TableInfo table, boolean judgeAliasNull, final String alias, final String prefix) {
        // String sqlScript = table.getAllSqlSet(logic, prefix);
        String sqlScript = getSqlSet(table);
        if (judgeAliasNull) {
            sqlScript = SqlScriptUtils.convertIf(sqlScript, String.format("%s != null", alias), true);
        }
        if (ew) {
            sqlScript = sqlScript + "\n";
            sqlScript = sqlScript + this.convertIfEwParam("ew.sqlSet", false);
        }
        sqlScript = SqlScriptUtils.convertSet(sqlScript);
        return sqlScript;
    }
    private String getSqlSet(TableInfo tableInfo) {
        StringBuilder sb = new StringBuilder();
        for (TableFieldInfo f : tableInfo.getFieldList()) {
            if (StaticData.UPDATE_EXCLUDE_FIELDS.contains(f.getProperty())) {
                continue;
            }
            if ("geom".equals(f.getProperty())) {
                sb.append("<if test=\"item['geom'] != null\">geom=${item.geom},</if>\n");
                continue;
            }
            sb.append(String.format("<if test=\"item['%s'] != null\">%s=#{item.%s},</if>\n", f.getProperty(), f.getColumn(), f.getProperty()));
        }
        sb.deleteCharAt(sb.length() - 1);
        return sb.toString();
    }
}
se-common/src/main/java/com/terra/common/service/RedisService.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/utils/DateUtils.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/utils/ExceptionUtil.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/utils/JwtUtils.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/utils/PageUtils.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/utils/SpringUtils.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/utils/bean/BeanUtils.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/utils/bean/BeanValidators.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/utils/file/FileTypeUtils.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/utils/file/FileUtils.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/utils/file/ImageUtils.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/utils/file/MimeTypeUtils.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/utils/ip/IpUtils.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/utils/poi/ExcelHandlerAdapter.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/utils/poi/ExcelUtil.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/utils/reflect/ReflectUtils.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/utils/sign/Base64.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/utils/sql/SqlUtil.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/utils/uuid/IdUtils.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/utils/uuid/Seq.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/utils/uuid/UUID.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/web/controller/BaseController.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/web/domain/AjaxResult.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/web/domain/BaseEntity.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/web/domain/TreeEntity.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/web/page/PageDomain.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/web/page/TableDataInfo.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/web/page/TableSupport.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/xss/Xss.java
ÎļþÒÑɾ³ý
se-common/src/main/java/com/terra/common/xss/XssValidator.java
ÎļþÒÑɾ³ý
se-common/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
@@ -1,3 +1,2 @@
com.terra.common.utils.SpringUtils
com.terra.common.service.RedisService
com.terra.common.configure.RedisConfig
com.terra.common.config.MybatisPlusConfig
com.terra.common.config.SpringDocAutoConfiguration
se-discover/pom.xml
@@ -16,20 +16,20 @@
    </description>
    
    <dependencies>
        <!-- SpringCloud Alibaba Nacos -->
        <!-- SpringCloud Alibaba Nacos -->
        <dependency>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
        </dependency>
        <!-- SpringCloud Alibaba Nacos Config -->
        <dependency>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
        </dependency>
        <!-- SpringCloud Alibaba Sentinel -->
        <!-- SpringCloud Alibaba Sentinel -->
        <dependency>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
@@ -50,19 +50,6 @@
            <optional>true</optional>
        </dependency>
        <!--mybatis-plus-->
        <dependency>
            <groupId>com.baomidou</groupId>
            <artifactId>mybatis-plus-boot-starter</artifactId>
            <version>3.5.1</version>
        </dependency>
        <!--redis-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-redis</artifactId>
        </dependency>
        <!--postgresql-->
        <dependency>
            <groupId>org.postgresql</groupId>
@@ -80,13 +67,6 @@
            <artifactId>spring-boot-starter-aop</artifactId>
        </dependency>
        <!--fastjson-->
        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>fastjson</artifactId>
            <version>1.2.47</version>
        </dependency>
        <!--整合druid数据源-->
        <dependency>
            <groupId>com.alibaba</groupId>
@@ -99,114 +79,11 @@
            <version>1.2.25</version>
        </dependency>
        <!--text-->
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-text</artifactId>
            <version>1.1</version>
        </dependency>
        <!--swagger-->
        <dependency>
            <groupId>io.springfox</groupId>
            <artifactId>springfox-swagger2</artifactId>
            <version>2.9.2</version>
        </dependency>
        <dependency>
            <groupId>io.springfox</groupId>
            <artifactId>springfox-swagger-ui</artifactId>
            <version>2.9.2</version>
        </dependency>
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <version>27.0-jre</version>
        </dependency>
        <!--httpclient-->
        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpclient</artifactId>
        </dependency>
        <!--websocket-->
        <dependency>
            <groupId>javax.websocket</groupId>
            <artifactId>javax.websocket-api</artifactId>
            <version>1.0</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-websocket</artifactId>
        </dependency>
        <!--hutool-->
        <dependency>
            <groupId>cn.hutool</groupId>
            <artifactId>hutool-all</artifactId>
            <version>5.7.20</version>
        </dependency>
        <!--commons-fileupload-->
        <dependency>
            <groupId>commons-fileupload</groupId>
            <artifactId>commons-fileupload</artifactId>
            <version>1.4</version>
        </dependency>
        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
            <version>2.11.0</version>
        </dependency>
        <!--gdal-->
        <dependency>
            <groupId>org.gdal</groupId>
            <artifactId>gdal</artifactId>
            <version>3.2.0</version>
        </dependency>
        <!--zip4j-->
        <dependency>
            <groupId>net.lingala.zip4j</groupId>
            <artifactId>zip4j</artifactId>
            <version>2.6.4</version>
        </dependency>
        <!--easyexcel-->
        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>easyexcel</artifactId>
            <version>2.2.10</version>
        </dependency>
        <!--servlet-->
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <version>3.1.0</version>
            <scope>provided</scope>
        </dependency>
        <!--apache.poi-->
        <dependency>
            <groupId>org.apache.poi</groupId>
            <artifactId>poi-ooxml</artifactId>
            <version>3.16</version>
        </dependency>
        <!--proj4j-->
        <dependency>
            <groupId>org.osgeo</groupId>
            <artifactId>proj4j</artifactId>
            <version>0.1.0</version>
        </dependency>
        <!--JTS-->
        <dependency>
            <groupId>org.locationtech.jts</groupId>
            <artifactId>jts-core</artifactId>
            <version>1.19.0</version>
        </dependency>
        <!-- se-common -->
se-discover/src/main/java/com/terra/discover/SeDiscoverApp.java
@@ -4,10 +4,8 @@
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
@EnableAsync
@EnableSwagger2
@EnableAspectJAutoProxy(exposeProxy = true)
@SpringBootApplication(scanBasePackages = {"com.terra.discover.*"})
public class SeDiscoverApp
se-discover/src/main/java/com/terra/discover/controller/TestController.java
@@ -1,27 +1,23 @@
package com.terra.discover.controller;
import com.terra.discover.controller.all.BaseController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import com.terra.common.controller.all.BaseController;
import org.springframework.web.bind.annotation.*;
import com.terra.discover.entity.all.ResponseMsg;
import com.terra.common.entity.all.ResponseMsg;
import java.util.Date;
import java.text.SimpleDateFormat;
@Api(tags = "知识发现\\测试服务")
@RestController
@RequestMapping("/test")
public class TestController extends BaseController {
    public static final SimpleDateFormat YMDHMS_FORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    @ApiOperation(value = "Test")
    @GetMapping(value = "/test")
    public ResponseMsg<Object> test() {
        try {
            String date = YMDHMS_FORMAT.format(new Date());
            return success(date);
            return success("Discover", date);
        } catch (Exception ex) {
            return fail(ex, null);
        }
se-discover/src/main/java/com/terra/discover/controller/all/BaseController.java
ÎļþÒÑɾ³ý
se-discover/src/main/java/com/terra/discover/entity/all/ResponseMsg.java
ÎļþÒÑɾ³ý
se-discover/src/main/resources/bootstrap.yml
@@ -17,6 +17,7 @@
      discovery:
        # æœåŠ¡æ³¨å†Œåœ°å€
        server-addr: 127.0.0.1:8848
        group: JHS_GROUP
      config:
        group: JHS_GROUP
        # é…ç½®ä¸­å¿ƒåœ°å€
se-discover/src/main/resources/mybatis.xml
@@ -32,6 +32,7 @@
        <setting name="logImpl" value="NO_LOGGING" />
    </settings>
    <typeAliases>
        <package name="com.terra.discover.entity"/>
        <!--‌类型别名配置-->
        <package name="com.terra.collect.entity"/>
    </typeAliases>
</configuration>
se-gateway/pom.xml
@@ -58,12 +58,23 @@
            <artifactId>spring-cloud-loadbalancer</artifactId>
        </dependency>
        <!-- se-common -->
        <!-- Springdoc -->
        <dependency>
            <groupId>com.terra</groupId>
            <artifactId>se-common</artifactId>
            <version>1.0.2</version>
            <scope>compile</scope>
            <groupId>org.springdoc</groupId>
            <artifactId>springdoc-openapi-webflux-ui</artifactId>
            <version>${springdoc.version}</version>
        </dependency>
        <!-- Alibaba Fastjson -->
        <dependency>
            <groupId>com.alibaba.fastjson2</groupId>
            <artifactId>fastjson2</artifactId>
        </dependency>
        <!-- Java Servlet -->
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
        </dependency>
    </dependencies>
se-gateway/src/main/java/com/terra/gateway/SeGatewayApp.java
ÎļþÃû´Ó se-gateway/src/main/java/com/terra/gateway/SeGatewayApplication.java ÐÞ¸Ä
@@ -11,7 +11,7 @@
 * @author admin
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class })
public class SeGatewayApplication {
public class SeGatewayApp {
    private static String TEST;
    @Value("${spring.test}")
@@ -20,7 +20,7 @@
    }
    public static void main(String[] args) {
        SpringApplication.run(SeGatewayApplication.class, args);
        SpringApplication.run(SeGatewayApp.class, args);
        System.out.println("----------网关模块启动成功----------  \n");
    }
}
se-gateway/src/main/java/com/terra/gateway/config/SpringDocConfig.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,94 @@
package com.terra.gateway.config;
import com.alibaba.nacos.client.naming.event.InstancesChangeEvent;
import com.alibaba.nacos.common.notify.Event;
import com.alibaba.nacos.common.notify.NotifyCenter;
import com.alibaba.nacos.common.notify.listener.Subscriber;
import com.terra.gateway.utils.StringUtils;
import org.springdoc.core.AbstractSwaggerUiConfigProperties;
import org.springdoc.core.SwaggerUiConfigProperties;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.context.annotation.Configuration;
import java.util.Set;
import java.util.stream.Collectors;
/**
 * SpringDoc配置类
 *
 * @author admin
 */
@Configuration(proxyBeanMethods = false)
@ConditionalOnProperty(value = "springdoc.api-docs.enabled", matchIfMissing = true)
public class SpringDocConfig implements InitializingBean
{
    @Autowired
    private SwaggerUiConfigProperties swaggerUiConfigProperties;
    @Autowired
    private DiscoveryClient discoveryClient;
    /**
     * åœ¨åˆå§‹åŒ–后调用的方法
     */
    @Override
    public void afterPropertiesSet()
    {
        NotifyCenter.registerSubscriber(new SwaggerDocRegister(swaggerUiConfigProperties, discoveryClient));
    }
}
/**
 * Swagger文档注册器
 */
class SwaggerDocRegister extends Subscriber<InstancesChangeEvent>
{
    @Autowired
    private SwaggerUiConfigProperties swaggerUiConfigProperties;
    @Autowired
    private DiscoveryClient discoveryClient;
    private final static String[] EXCLUDE_ROUTES = new String[] { "se-gateway" };
    public SwaggerDocRegister(SwaggerUiConfigProperties swaggerUiConfigProperties, DiscoveryClient discoveryClient)
    {
        this.swaggerUiConfigProperties = swaggerUiConfigProperties;
        this.discoveryClient = discoveryClient;
    }
    /**
     * äº‹ä»¶å›žè°ƒæ–¹æ³•,处理InstancesChangeEvent事件
     * @param event äº‹ä»¶å¯¹è±¡
     */
    @Override
    public void onEvent(InstancesChangeEvent event)
    {
        Set<AbstractSwaggerUiConfigProperties.SwaggerUrl> swaggerUrlSet = discoveryClient.getServices()
            .stream()
            .flatMap(serviceId -> discoveryClient.getInstances(serviceId).stream())
            .filter(instance -> !StringUtils.equalsAnyIgnoreCase(instance.getServiceId(), EXCLUDE_ROUTES))
            .map(instance -> {
                AbstractSwaggerUiConfigProperties.SwaggerUrl swaggerUrl = new AbstractSwaggerUiConfigProperties.SwaggerUrl();
                swaggerUrl.setName(instance.getServiceId());
                swaggerUrl.setUrl(String.format("/%s/v3/api-docs", instance.getServiceId()));
                return swaggerUrl;
            })
            .collect(Collectors.toSet());
        swaggerUiConfigProperties.setUrls(swaggerUrlSet);
    }
    /**
     * è®¢é˜…类型方法,返回订阅的事件类型
     * @return è®¢é˜…的事件类型
     */
    @Override
    public Class<? extends Event> subscribeType()
    {
        return InstancesChangeEvent.class;
    }
}
se-gateway/src/main/java/com/terra/gateway/constant/Constants.java
ÎļþÃû´Ó se-common/src/main/java/com/terra/common/constant/Constants.java ÐÞ¸Ä
@@ -1,4 +1,4 @@
package com.terra.common.constant;
package com.terra.gateway.constant;
/**
 * é€šç”¨å¸¸é‡ä¿¡æ¯
@@ -120,16 +120,16 @@
    /**
     * è‡ªåŠ¨è¯†åˆ«json对象白名单配置(仅允许解析的包名,范围越小越安全)
     */
    public static final String[] JSON_WHITELIST_STR = { "org.springframework", "com.terra" };
    public static final String[] JSON_WHITELIST_STR = { "org.springframework", "com.ruoyi" };
    /**
     * å®šæ—¶ä»»åŠ¡ç™½åå•é…ç½®ï¼ˆä»…å…è®¸è®¿é—®çš„åŒ…åï¼Œå¦‚å…¶ä»–éœ€è¦å¯ä»¥è‡ªè¡Œæ·»åŠ ï¼‰
     */
    public static final String[] JOB_WHITELIST_STR = { "com.terra.job.task" };
    public static final String[] JOB_WHITELIST_STR = { "com.ruoyi.job.task" };
    /**
     * å®šæ—¶ä»»åŠ¡è¿è§„çš„å­—ç¬¦
     */
    public static final String[] JOB_ERROR_STR = { "java.net.URL", "javax.naming.InitialContext", "org.yaml.snakeyaml",
            "org.springframework", "org.apache", "com.terra.common.utils.file" };
            "org.springframework", "org.apache", "com.terra" };
}
se-gateway/src/main/java/com/terra/gateway/domain/R.java
ÎļþÃû´Ó se-common/src/main/java/com/terra/common/domain/R.java ÐÞ¸Ä
@@ -1,7 +1,8 @@
package com.terra.common.domain;
package com.terra.gateway.domain;
import com.terra.gateway.constant.Constants;
import java.io.Serializable;
import com.terra.common.constant.Constants;
/**
 * å“åº”信息主体
se-gateway/src/main/java/com/terra/gateway/filter/AuthFilter.java
ÎļþÒÑɾ³ý
se-gateway/src/main/java/com/terra/gateway/filter/BlackListUrlFilter.java
@@ -3,6 +3,8 @@
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import com.terra.gateway.utils.ServletUtils;
import org.springframework.cloud.gateway.filter.GatewayFilter;
import org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory;
import org.springframework.stereotype.Component;
@@ -23,7 +25,7 @@
            String url = exchange.getRequest().getURI().getPath();
            if (config.matchBlacklist(url))
            {
                //return ServletUtils.webFluxResponseWriter(exchange.getResponse(), "请求地址不允许访问");
                return ServletUtils.webFluxResponseWriter(exchange.getResponse(), "请求地址不允许访问");
            }
            return chain.filter(exchange);
se-gateway/src/main/java/com/terra/gateway/filter/XssFilter.java
@@ -2,6 +2,9 @@
import java.nio.charset.StandardCharsets;
import javax.annotation.Resource;
import com.terra.gateway.utils.StringUtils;
import com.terra.gateway.utils.html.EscapeUtil;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.cloud.gateway.filter.GatewayFilterChain;
import org.springframework.cloud.gateway.filter.GlobalFilter;
@@ -58,10 +61,10 @@
        }
        // excludeUrls ä¸è¿‡æ»¤
        String url = request.getURI().getPath();
//        if (StringUtils.matches(url, xss.getExcludeUrls()))
//        {
//            return chain.filter(exchange);
//        }
        if (StringUtils.matches(url, xss.getExcludeUrls()))
        {
            return chain.filter(exchange);
        }
        ServerHttpRequestDecorator httpRequestDecorator = requestDecorator(exchange);
        return chain.filter(exchange.mutate().request(httpRequestDecorator).build());
@@ -83,7 +86,7 @@
                    DataBufferUtils.release(join);
                    String bodyStr = new String(content, StandardCharsets.UTF_8);
                    // é˜²xss攻击过滤
                    //bodyStr = EscapeUtil.clean(bodyStr);
                    bodyStr = EscapeUtil.clean(bodyStr);
                    // è½¬æˆå­—节
                    byte[] bytes = bodyStr.getBytes(StandardCharsets.UTF_8);
                    NettyDataBufferFactory nettyDataBufferFactory = new NettyDataBufferFactory(ByteBufAllocator.DEFAULT);
@@ -110,14 +113,13 @@
    /**
     * æ˜¯å¦æ˜¯Json请求
     *
     *
     * @param exchange HTTP请求
     */
    public boolean isJsonRequest(ServerWebExchange exchange)
    {
        String header = exchange.getRequest().getHeaders().getFirst(HttpHeaders.CONTENT_TYPE);
        //return StringUtils.startsWithIgnoreCase(header, MediaType.APPLICATION_JSON_VALUE);
        return true;
        return StringUtils.startsWithIgnoreCase(header, MediaType.APPLICATION_JSON_VALUE);
    }
    @Override
se-gateway/src/main/java/com/terra/gateway/handler/GatewayExceptionHandler.java
@@ -1,5 +1,6 @@
package com.terra.gateway.handler;
import com.terra.gateway.utils.ServletUtils;
import org.springframework.cloud.gateway.support.NotFoundException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -50,7 +51,6 @@
        log.error("[网关异常处理]请求路径:{},异常信息:{}", exchange.getRequest().getPath(), ex.getMessage());
        //return ServletUtils.webFluxResponseWriter(response, msg);
        return Mono.error(ex);
        return ServletUtils.webFluxResponseWriter(response, msg);
    }
}
se-gateway/src/main/java/com/terra/gateway/handler/SentinelFallbackHandler.java
@@ -2,7 +2,8 @@
import com.alibaba.csp.sentinel.adapter.gateway.sc.callback.GatewayCallbackManager;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.terra.common.utils.ServletUtils;
import com.terra.gateway.utils.ServletUtils;
import org.springframework.web.reactive.function.server.ServerResponse;
import org.springframework.web.server.ServerWebExchange;
import org.springframework.web.server.WebExceptionHandler;
se-gateway/src/main/java/com/terra/gateway/text/CharsetKit.java
ÎļþÃû´Ó se-common/src/main/java/com/terra/common/text/CharsetKit.java ÐÞ¸Ä
@@ -1,8 +1,9 @@
package com.terra.common.text;
package com.terra.gateway.text;
import com.terra.gateway.utils.StringUtils;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import com.terra.common.utils.StringUtils;
/**
 * å­—符集工具类
se-gateway/src/main/java/com/terra/gateway/text/Convert.java
ÎļþÃû´Ó se-common/src/main/java/com/terra/common/text/Convert.java ÐÞ¸Ä
@@ -1,4 +1,6 @@
package com.terra.common.text;
package com.terra.gateway.text;
import com.terra.gateway.utils.StringUtils;
import java.math.BigDecimal;
import java.math.BigInteger;
@@ -7,7 +9,6 @@
import java.nio.charset.Charset;
import java.text.NumberFormat;
import java.util.Set;
import com.terra.common.utils.StringUtils;
/**
 * ç±»åž‹è½¬æ¢å™¨
se-gateway/src/main/java/com/terra/gateway/text/StrFormatter.java
ÎļþÃû´Ó se-common/src/main/java/com/terra/common/text/StrFormatter.java ÐÞ¸Ä
@@ -1,6 +1,7 @@
package com.terra.common.text;
package com.terra.gateway.text;
import com.terra.common.utils.StringUtils;
import com.terra.gateway.utils.StringUtils;
/**
 * å­—符串格式化
se-gateway/src/main/java/com/terra/gateway/utils/ServletUtils.java
ÎļþÃû´Ó se-common/src/main/java/com/terra/common/utils/ServletUtils.java ÐÞ¸Ä
@@ -1,17 +1,9 @@
package com.terra.common.utils;
package com.terra.gateway.utils;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.util.Collections;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.ServletRequest;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import com.alibaba.fastjson2.JSON;
import com.terra.gateway.constant.Constants;
import com.terra.gateway.domain.R;
import com.terra.gateway.text.Convert;
import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
@@ -21,12 +13,21 @@
import org.springframework.web.context.request.RequestAttributes;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
import com.alibaba.fastjson2.JSON;
import com.terra.common.constant.Constants;
import com.terra.common.domain.R;
import com.terra.common.text.Convert;
import reactor.core.publisher.Mono;
import javax.servlet.ServletRequest;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.util.Collections;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;
/**
 * å®¢æˆ·ç«¯å·¥å…·ç±»
 * 
se-gateway/src/main/java/com/terra/gateway/utils/StringUtils.java
ÎļþÃû´Ó se-common/src/main/java/com/terra/common/utils/StringUtils.java ÐÞ¸Ä
@@ -1,11 +1,12 @@
package com.terra.common.utils;
package com.terra.gateway.utils;
import com.terra.gateway.constant.Constants;
import com.terra.gateway.text.StrFormatter;
import org.springframework.util.AntPathMatcher;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import org.springframework.util.AntPathMatcher;
import com.terra.common.constant.Constants;
import com.terra.common.text.StrFormatter;
/**
 * å­—符串工具类
se-gateway/src/main/java/com/terra/gateway/utils/html/EscapeUtil.java
ÎļþÃû´Ó se-common/src/main/java/com/terra/common/utils/html/EscapeUtil.java ÐÞ¸Ä
@@ -1,6 +1,7 @@
package com.terra.common.utils.html;
package com.terra.gateway.utils.html;
import com.terra.common.utils.StringUtils;
import com.terra.gateway.utils.StringUtils;
/**
 * è½¬ä¹‰å’Œåè½¬ä¹‰å·¥å…·ç±»
se-gateway/src/main/java/com/terra/gateway/utils/html/HTMLFilter.java
ÎļþÃû´Ó se-common/src/main/java/com/terra/common/utils/html/HTMLFilter.java ÐÞ¸Ä
@@ -1,10 +1,6 @@
package com.terra.common.utils.html;
package com.terra.gateway.utils.html;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.regex.Matcher;
se-gateway/src/main/resources/bootstrap.yml
@@ -19,6 +19,7 @@
      discovery:
        # æœåŠ¡æ³¨å†Œåœ°å€
        server-addr: 127.0.0.1:8848
        group: JHS_GROUP
      config:
        group: JHS_GROUP
        # é…ç½®ä¸­å¿ƒåœ°å€
se-publish/pom.xml
@@ -16,20 +16,20 @@
    </description>
    
    <dependencies>
        <!-- SpringCloud Alibaba Nacos -->
        <!-- SpringCloud Alibaba Nacos -->
        <dependency>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
        </dependency>
        <!-- SpringCloud Alibaba Nacos Config -->
        <dependency>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
        </dependency>
        <!-- SpringCloud Alibaba Sentinel -->
        <!-- SpringCloud Alibaba Sentinel -->
        <dependency>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
@@ -50,19 +50,6 @@
            <optional>true</optional>
        </dependency>
        <!--mybatis-plus-->
        <dependency>
            <groupId>com.baomidou</groupId>
            <artifactId>mybatis-plus-boot-starter</artifactId>
            <version>3.5.1</version>
        </dependency>
        <!--redis-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-redis</artifactId>
        </dependency>
        <!--postgresql-->
        <dependency>
            <groupId>org.postgresql</groupId>
@@ -80,13 +67,6 @@
            <artifactId>spring-boot-starter-aop</artifactId>
        </dependency>
        <!--fastjson-->
        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>fastjson</artifactId>
            <version>1.2.47</version>
        </dependency>
        <!--整合druid数据源-->
        <dependency>
            <groupId>com.alibaba</groupId>
@@ -99,114 +79,11 @@
            <version>1.2.25</version>
        </dependency>
        <!--text-->
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-text</artifactId>
            <version>1.1</version>
        </dependency>
        <!--swagger-->
        <dependency>
            <groupId>io.springfox</groupId>
            <artifactId>springfox-swagger2</artifactId>
            <version>2.9.2</version>
        </dependency>
        <dependency>
            <groupId>io.springfox</groupId>
            <artifactId>springfox-swagger-ui</artifactId>
            <version>2.9.2</version>
        </dependency>
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <version>27.0-jre</version>
        </dependency>
        <!--httpclient-->
        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpclient</artifactId>
        </dependency>
        <!--websocket-->
        <dependency>
            <groupId>javax.websocket</groupId>
            <artifactId>javax.websocket-api</artifactId>
            <version>1.0</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-websocket</artifactId>
        </dependency>
        <!--hutool-->
        <dependency>
            <groupId>cn.hutool</groupId>
            <artifactId>hutool-all</artifactId>
            <version>5.7.20</version>
        </dependency>
        <!--commons-fileupload-->
        <dependency>
            <groupId>commons-fileupload</groupId>
            <artifactId>commons-fileupload</artifactId>
            <version>1.4</version>
        </dependency>
        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
            <version>2.11.0</version>
        </dependency>
        <!--gdal-->
        <dependency>
            <groupId>org.gdal</groupId>
            <artifactId>gdal</artifactId>
            <version>3.2.0</version>
        </dependency>
        <!--zip4j-->
        <dependency>
            <groupId>net.lingala.zip4j</groupId>
            <artifactId>zip4j</artifactId>
            <version>2.6.4</version>
        </dependency>
        <!--easyexcel-->
        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>easyexcel</artifactId>
            <version>2.2.10</version>
        </dependency>
        <!--servlet-->
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <version>3.1.0</version>
            <scope>provided</scope>
        </dependency>
        <!--apache.poi-->
        <dependency>
            <groupId>org.apache.poi</groupId>
            <artifactId>poi-ooxml</artifactId>
            <version>3.16</version>
        </dependency>
        <!--proj4j-->
        <dependency>
            <groupId>org.osgeo</groupId>
            <artifactId>proj4j</artifactId>
            <version>0.1.0</version>
        </dependency>
        <!--JTS-->
        <dependency>
            <groupId>org.locationtech.jts</groupId>
            <artifactId>jts-core</artifactId>
            <version>1.19.0</version>
        </dependency>
        <!-- se-common -->
se-publish/src/main/java/com/terra/publish/SePublishApp.java
@@ -4,10 +4,8 @@
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
@EnableAsync
@EnableSwagger2
@EnableAspectJAutoProxy(exposeProxy = true)
@SpringBootApplication(scanBasePackages = {"com.terra.publish.*"})
public class SePublishApp
se-publish/src/main/java/com/terra/publish/controller/TestController.java
@@ -1,27 +1,23 @@
package com.terra.publish.controller;
import com.terra.publish.controller.all.BaseController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import com.terra.common.controller.all.BaseController;
import org.springframework.web.bind.annotation.*;
import com.terra.publish.entity.all.ResponseMsg;
import com.terra.common.entity.all.ResponseMsg;
import java.util.Date;
import java.text.SimpleDateFormat;
@Api(tags = "数据发布\\测试服务")
@RestController
@RequestMapping("/test")
public class TestController extends BaseController {
    public static final SimpleDateFormat YMDHMS_FORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    @ApiOperation(value = "Test")
    @GetMapping(value = "/test")
    @GetMapping(value = "/testp")
    public ResponseMsg<Object> test() {
        try {
            String date = YMDHMS_FORMAT.format(new Date());
            return success(date);
            return success("Publish", date);
        } catch (Exception ex) {
            return fail(ex, null);
        }
se-publish/src/main/java/com/terra/publish/controller/all/BaseController.java
ÎļþÒÑɾ³ý
se-publish/src/main/java/com/terra/publish/entity/all/HttpStatus.java
ÎļþÒÑɾ³ý
se-publish/src/main/resources/bootstrap.yml
@@ -17,6 +17,7 @@
      discovery:
        # æœåŠ¡æ³¨å†Œåœ°å€
        server-addr: 127.0.0.1:8848
        group: JHS_GROUP
      config:
        group: JHS_GROUP
        # é…ç½®ä¸­å¿ƒåœ°å€
se-publish/src/main/resources/mybatis.xml
@@ -32,6 +32,7 @@
        <setting name="logImpl" value="NO_LOGGING" />
    </settings>
    <typeAliases>
        <package name="com.terra.publish.entity"/>
        <!--‌类型别名配置-->
        <package name="com.terra.collect.entity"/>
    </typeAliases>
</configuration>
se-system/pom.xml
@@ -113,21 +113,11 @@
            <version>1.1</version>
        </dependency>
        <!--swagger-->
        <!-- SpringDoc webmvc -->
        <dependency>
            <groupId>io.springfox</groupId>
            <artifactId>springfox-swagger2</artifactId>
            <version>2.9.2</version>
        </dependency>
        <dependency>
            <groupId>io.springfox</groupId>
            <artifactId>springfox-swagger-ui</artifactId>
            <version>2.9.2</version>
        </dependency>
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <version>27.0-jre</version>
            <groupId>org.springdoc</groupId>
            <artifactId>springdoc-openapi-ui</artifactId>
            <version>${springdoc.version}</version>
        </dependency>
        <!--httpclient-->
se-system/src/main/java/com/terra/system/SeSystemApp.java
ÎļþÃû´Ó se-system/src/main/java/com/terra/system/SeSystemApplication.java ÐÞ¸Ä
@@ -4,7 +4,6 @@
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
/**
 * ç³»ç»Ÿæ¨¡å—
@@ -14,14 +13,13 @@
 * @author admin
 */
@EnableAsync
@EnableSwagger2
@EnableAspectJAutoProxy(exposeProxy = true)
@SpringBootApplication(scanBasePackages = {"com.terra.system.*"})
public class SeSystemApplication
public class SeSystemApp
{
    public static void main(String[] args)
    {
        SpringApplication.run(SeSystemApplication.class, args);
        SpringApplication.run(SeSystemApp.class, args);
        System.out.println("----------系统模块启动成功----------  \n");
    }
}
se-system/src/main/java/com/terra/system/aspect/LogAspect.java
@@ -6,7 +6,7 @@
import com.terra.system.helper.WebHelper;
import com.terra.system.service.sys.OperateService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.aspectj.lang.ProceedingJoinPoint;
@@ -93,9 +93,9 @@
            oe.setExec(time);
            // è®¾ç½®æ¨¡å—
            Api api = clazz.getAnnotation(Api.class);
            if (api != null) {
                String[] strs = api.tags()[0].split(SPLIT);
            Tag tag = clazz.getAnnotation(Tag.class);
            if (tag != null) {
                String[] strs = tag.name().split(SPLIT);
                oe.setModular1(strs[0]);
                oe.setModular2(strs[1]);
            }
se-system/src/main/java/com/terra/system/config/SwaggerConfig.java
ÎļþÒÑɾ³ý
se-system/src/main/java/com/terra/system/config/WebConfig.java
@@ -8,12 +8,14 @@
import javax.annotation.Resource;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.http.MediaType;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.util.AntPathMatcher;
import org.springframework.web.servlet.config.annotation.*;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.util.Collections;
import java.util.List;
/**
@@ -107,6 +109,9 @@
        converter.setFastJsonConfig(config);
        converter.setDefaultCharset(StandardCharsets.UTF_8);
        converter.setSupportedMediaTypes(Collections.singletonList(
                MediaType.APPLICATION_JSON
        ));
        converters.add(converter);
    }
}
se-system/src/main/java/com/terra/system/controller/all/BaseQueryController.java
@@ -30,11 +30,14 @@
import com.terra.system.service.sys.DepService;
import com.terra.system.service.sys.DownlogService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.media.ArraySchema;
import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -77,11 +80,11 @@
    DictService dictService;
    @SysLog()
    @ApiOperation(value = "查询记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "映射名称", dataType = "String", paramType = "query", example = "dlgagnp"),
            @ApiImplicitParam(name = "filter", value = "过滤条件", dataType = "String", paramType = "query", example = "gid >= 50 and name like '县' and objectid < 5000.0"),
            @ApiImplicitParam(name = "wkt", value = "WKT(著名文本)", dataType = "String", paramType = "query", example = "gAPpDbZ53XfoQfvT8dj/uhBWX5os8kBJQ1LrNvH3VX7byFQdUJMPiEr8Fkj0q2i1pw+L8KFrvR0MLXq2xaO21nlQQXmEPofJxpDQZwEWUIFZsToXo1kLRD3t6WQezxWB8YTzXHM20Ba73x/ZuuezVhOFOq1U8HKf1dXQdv7gBzEB6fWMmFDc3FuH8GDDHv3LfT86Gio9VgMO6ohlrUdf3ZKtTHeLSuzGF4t0RZuX97YBNo25IIzpeTfRTXBxfdxA")
    @Operation(description = "查询记录数")
    @Parameters({
            @Parameter(name = "name", description = "映射名称", example = "dlgagnp"),
            @Parameter(name = "filter", description = "过滤条件", example = "gid >= 50 and name like '县' and objectid < 5000.0"),
            @Parameter(name = "wkt", description = "WKT(著名文本)", example = "gAPpDbZ53XfoQfvT8dj/uhBWX5os8kBJQ1LrNvH3VX7byFQdUJMPiEr8Fkj0q2i1pw+L8KFrvR0MLXq2xaO21nlQQXmEPofJxpDQZwEWUIFZsToXo1kLRD3t6WQezxWB8YTzXHM20Ba73x/ZuuezVhOFOq1U8HKf1dXQdv7gBzEB6fWMmFDc3FuH8GDDHv3LfT86Gio9VgMO6ohlrUdf3ZKtTHeLSuzGF4t0RZuX97YBNo25IIzpeTfRTXBxfdxA")
    })
    @GetMapping(value = "/selectCount")
    @PostMapping(value = "/selectCount")
@@ -105,17 +108,16 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "映射名称", dataType = "String", paramType = "query", example = "dlgagnp"),
            @ApiImplicitParam(name = "depcode", value = "单位编码", dataType = "String", paramType = "query", example = "00"),
            @ApiImplicitParam(name = "dirs", value = "目录编码", dataType = "String", paramType = "query", example = "00,01"),
            @ApiImplicitParam(name = "filter", value = "过滤条件", dataType = "String", paramType = "query", example = "gid >= 50 and name like '县' and objectid < 5000.0"),
            @ApiImplicitParam(name = "wkt", value = "WKT(著名文本)", dataType = "String", paramType = "query", example = ""),
            //@ApiImplicitParam(name = "srid", value = "空间引用标识符", dataType = "Integer", paramType = "query", example = "4326"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "hasGeom", value = "是/否包含空间信息", dataType = "Integer", paramType = "query", example = "1")
    @Operation(description = "分页查询")
    @Parameters({
            @Parameter(name = "name", description = "映射名称", in = ParameterIn.QUERY, example = "dlgagnp"),
            @Parameter(name = "depcode", description = "单位编码", in = ParameterIn.QUERY, example = "00"),
            @Parameter(name = "dirs", description = "目录编码", in = ParameterIn.QUERY, example = "00,01"),
            @Parameter(name = "filter", description = "过滤条件", in = ParameterIn.QUERY, example = "gid >= 50 and name like '县' and objectid < 5000.0"),
            @Parameter(name = "wkt", description = "WKT(著名文本)", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "hasGeom", description = "是/否包含空间信息", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    @PostMapping(value = "/selectByPage")
@@ -187,12 +189,12 @@
    }
    @SysLog()
    @ApiOperation(value = "缓冲区查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "映射名称", dataType = "String", paramType = "query", example = "dlgagnp"),
            @ApiImplicitParam(name = "wkt", value = "WKT(著名文本)", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "buffer", value = "缓冲区大小", dataType = "Double", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "limit", value = "限制条数", dataType = "Integer", paramType = "query", example = "20")
    @Operation(description = "缓冲区查询")
    @Parameters({
            @Parameter(name = "name", description = "映射名称", in = ParameterIn.QUERY, example = "dlgagnp"),
            @Parameter(name = "wkt", description = "WKT(著名文本)", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "buffer", description = "缓冲区大小", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "limit", description = "限制条数", in = ParameterIn.QUERY, example = "20")
    })
    @GetMapping(value = "/selectByBuffer")
    public ResponseMsg<List<?>> selectByBuffer(String name, String wkt, Double buffer, Integer limit) {
@@ -226,12 +228,12 @@
    }
    @SysLog()
    @ApiOperation(value = "根据父ID分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "metaid", value = "父ID", dataType = "String", paramType = "query", example = "0"),
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(description = "根据父ID分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "metaid", description = "父ID", in = ParameterIn.QUERY, example = "0"),
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectPageAndCountByPid")
    public ResponseMsg<List<MetaEntity>> selectPageAndCountByPid(Integer metaid, String name, Integer pageSize, Integer pageIndex) {
@@ -257,10 +259,10 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询WKT")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "映射名称", dataType = "String", paramType = "query", example = "dlgagnp"),
            @ApiImplicitParam(name = "gid", value = "GID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(description = "根据ID查询WKT")
    @Parameters({
            @Parameter(name = "name", description = "映射名称", in = ParameterIn.QUERY, example = "dlgagnp"),
            @Parameter(name = "gid", description = "GID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectWktById")
    public ResponseMsg<String> selectWktById(String name, Integer gid) {
@@ -287,10 +289,10 @@
    }
    @SysLog()
    @ApiOperation(value = "根据GID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "映射名称", dataType = "String", paramType = "query", example = "dlgagnp"),
            @ApiImplicitParam(name = "gid", value = "GID", dataType = "int", paramType = "query", example = "1")
    @Operation(description = "根据GID查询")
    @Parameters({
            @Parameter(name = "name", description = "映射名称", in = ParameterIn.QUERY, example = "dlgagnp"),
            @Parameter(name = "gid", description = "GID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByGid")
    public ResponseMsg<Object> selectByGid(String name, int gid) {
@@ -316,9 +318,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据实体名查询表名")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "映射名称", dataType = "String", paramType = "query", example = "dlgagnp")
    @Operation(description = "根据实体名查询表名")
    @Parameters({
            @Parameter(name = "name", description = "映射名称", in = ParameterIn.QUERY, example = "dlgagnp")
    })
    @GetMapping(value = "/selectTabByEntity")
    public ResponseMsg<Object> selectTabByEntity(String name) {
@@ -337,11 +339,11 @@
    }
    @SysLog()
    @ApiOperation(value = "模糊搜索字段")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "映射名称", dataType = "String", paramType = "query", example = "dlgagnp"),
            @ApiImplicitParam(name = "field", value = "字段", dataType = "String", paramType = "query", example = "name"),
            @ApiImplicitParam(name = "value", value = "值", dataType = "String", paramType = "query", example = "'县'")
    @Operation(description = "模糊搜索字段")
    @Parameters({
            @Parameter(name = "name", description = "映射名称", in = ParameterIn.QUERY, example = "dlgagnp"),
            @Parameter(name = "field", description = "字段", in = ParameterIn.QUERY, example = "name"),
            @Parameter(name = "value", description = "值", in = ParameterIn.QUERY, example = "'县'")
    })
    @GetMapping(value = "/selectFieldFuzzy")
    public ResponseMsg<List<String>> selectFieldFuzzy(String name, String field, String value) {
@@ -369,9 +371,9 @@
    }
    @SysLog()
    @ApiOperation(value = "模糊搜索用户")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "用户名", dataType = "String", paramType = "query", example = "室")
    @Operation(description = "模糊搜索用户")
    @Parameters({
            @Parameter(name = "name", description = "用户名", in = ParameterIn.QUERY, example = "室")
    })
    @GetMapping(value = "/selectUserFuzzy")
    public ResponseMsg<List<IdNameEntity>> selectUserFuzzy(String name) {
@@ -385,9 +387,9 @@
    }
    @SysLog()
    @ApiOperation(value = "模糊搜索单位")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "单位名", dataType = "String", paramType = "query", example = "司")
    @Operation(description = "模糊搜索单位")
    @Parameters({
            @Parameter(name = "name", description = "单位名", in = ParameterIn.QUERY, example = "司")
    })
    @GetMapping(value = "/selectDepFuzzy")
    public ResponseMsg<List<IdNameEntity>> selectDepFuzzy(String name) {
@@ -401,10 +403,10 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "点"),
            @ApiImplicitParam(name = "hasGeom", value = "含有Geom字段", dataType = "Boolean", paramType = "query", example = "false")
    @Operation(description = "查询所有表")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "点"),
            @Parameter(name = "hasGeom", description = "含有Geom字段", in = ParameterIn.QUERY, example = "false")
    })
    @GetMapping(value = "/selectTabs")
    public ResponseMsg<List<TabEntity>> selectTabs(String name, Boolean hasGeom) {
@@ -418,16 +420,16 @@
    }
    @SysLog()
    @ApiOperation(value = "根据表名分页查询表")
    @Operation(description = "根据表名分页查询表")
    @GetMapping(value = "/selectTabsByPage")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "depcode", value = "单位编码", dataType = "String", paramType = "query", example = "00"),
            @ApiImplicitParam(name = "dirs", value = "目录编码", dataType = "String", paramType = "query", example = "00,01"),
            @ApiImplicitParam(name = "tab", value = "表名", dataType = "String", paramType = "query", example = "dlg_"),
            @ApiImplicitParam(name = "types", value = "类别", dataType = "String", paramType = "query", example = "测绘(ESV)"),
            @ApiImplicitParam(name = "hasGeom", value = "含有Geom字段", dataType = "Boolean", paramType = "query", example = "false"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Parameters({
            @Parameter(name = "depcode", description = "单位编码", in = ParameterIn.QUERY, example = "00"),
            @Parameter(name = "dirs", description = "目录编码", in = ParameterIn.QUERY, example = "00,01"),
            @Parameter(name = "tab", description = "表名", in = ParameterIn.QUERY, example = "dlg_"),
            @Parameter(name = "types", description = "类别", in = ParameterIn.QUERY, example = "测绘(ESV)"),
            @Parameter(name = "hasGeom", description = "含有Geom字段", in = ParameterIn.QUERY, example = "false"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    public ResponseMsg<Object> selectTabsByPage(String depcode, String dirs, String tab, String types, Boolean hasGeom, Integer pageSize, Integer pageIndex) {
        try {
@@ -505,9 +507,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询字段信息")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "映射名称", dataType = "String", paramType = "query", example = "dlg25wAanp")
    @Operation(description = "查询字段信息")
    @Parameters({
            @Parameter(name = "name", description = "映射名称", in = ParameterIn.QUERY, example = "dlg25wAanp")
    })
    @GetMapping(value = "/selectFields")
    public ResponseMsg<List<DictEntity>> selectFields(String name) {
@@ -532,10 +534,10 @@
    }
    @SysLog()
    @ApiOperation(value = "查询字段信息")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ns", value = "名称空间", dataType = "String", paramType = "query", example = "bd"),
            @ApiImplicitParam(name = "tab", value = "表名", dataType = "String", paramType = "query", example = "dlg25wAanp")
    @Operation(description = "查询字段信息")
    @Parameters({
            @Parameter(name = "ns", description = "名称空间", in = ParameterIn.QUERY, example = "bd"),
            @Parameter(name = "tab", description = "表名", in = ParameterIn.QUERY, example = "dlg25wAanp")
    })
    @GetMapping(value = "/selectTabFields")
    public ResponseMsg<List<DictEntity>> selectTabFields(String ns, String tab) {
@@ -553,9 +555,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询值域信息")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "映射名称", dataType = "String", paramType = "query", example = "dlg25wAanp")
    @Operation(description = "查询值域信息")
    @Parameters({
            @Parameter(name = "name", description = "映射名称", in = ParameterIn.QUERY, example = "dlg25wAanp")
    })
    @GetMapping(value = "/selectDomains")
    public ResponseMsg<List<DomainEntity>> selectDomains(String name) {
@@ -580,10 +582,10 @@
    }
    @SysLog()
    @ApiOperation(value = "查询文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "tabName", value = "表名", dataType = "String", paramType = "query", example = "lf.sys_style"),
            @ApiImplicitParam(name = "eventid", value = "主键", dataType = "String", paramType = "query", example = "fa25979a5ef8b43ba82a0be35b3fb0d4")
    @Operation(description = "查询文件")
    @Parameters({
            @Parameter(name = "tabName", description = "表名", in = ParameterIn.QUERY, example = "lf.sys_style"),
            @Parameter(name = "eventid", description = "主键", in = ParameterIn.QUERY, example = "fa25979a5ef8b43ba82a0be35b3fb0d4")
    })
    @GetMapping(value = "/selectFiles")
    public ResponseMsg<List<AttachEntity>> selectFiles(String tabName, String eventid) {
@@ -601,9 +603,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(description = "删除文件")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deleteFiles(@RequestParam List<Integer> ids) {
@@ -621,9 +623,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询元数据中溢出的单位ID")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "reqEntity", value = "请求下载实体", dataType = "DownloadReqEntity", paramType = "body")
    @Operation(description = "查询元数据中溢出的单位ID")
    @Parameters({
            @Parameter(name = "reqEntity", description = "请求下载实体")
    })
    @ResponseBody
    @PostMapping(value = "/selectMetaOverflowDep")
@@ -647,9 +649,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询DB中溢出的单位ID")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "reqEntity", value = "请求下载实体", dataType = "DownloadReqEntity", paramType = "body")
    @Operation(description = "查询DB中溢出的单位ID")
    @Parameters({
            @Parameter(name = "reqEntity", description = "请求下载实体")
    })
    @ResponseBody
    @PostMapping(value = "/selectDbOverflowDep")
@@ -676,9 +678,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据单位编码数组查询单位")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "codes", value = "单位编码数组", dataType = "String", paramType = "query", allowMultiple = true, example = "00,0001")
    @Operation(description = "根据单位编码数组查询单位")
    @Parameters({
            @Parameter(name = "codes", description = "单位编码数组", in = ParameterIn.QUERY, schema = @Schema(type = "array"), example = "00,0001")
    })
    @GetMapping(value = "/selectDepsByCodes")
    public ResponseMsg<Object> selectDepsByCodes(String[] codes) {
@@ -696,9 +698,9 @@
    }
    @SysLog()
    @ApiOperation(value = "下载DB数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "dr", value = "请求下载实体", dataType = "DownloadReqEntity", paramType = "body")
    @Operation(description = "下载DB数据")
    @Parameters({
            @Parameter(name = "dr", description = "请求下载实体")
    })
    @ResponseBody
    @PostMapping(value = "/downloadDbData")
@@ -730,9 +732,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查看文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "附件Guid", dataType = "String", paramType = "body")
    @Operation(description = "查看文件")
    @Parameters({
            @Parameter(name = "guid", description = "附件Guid", in = ParameterIn.QUERY)
    })
    @GetMapping(value = "/downloadForView")
    public void downloadForView(String guid, HttpServletResponse res) {
@@ -740,11 +742,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询下载文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(description = "分页查询下载文件")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectPageCountForDownload")
    public ResponseMsg<List<DownloadEntity>> selectPageCountForDownload(String name, Integer pageSize, Integer pageIndex, HttpServletRequest req) {
@@ -771,9 +773,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询目录类别")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "D")
    @Operation(description = "查询目录类别")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "D")
    })
    @GetMapping(value = "/selectDirTypes")
    public ResponseMsg<Object> selectDirTypes(String name) {
@@ -787,9 +789,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询项目名称")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "西")
    @Operation(description = "查询项目名称")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "西")
    })
    @GetMapping(value = "/selectProject")
    public ResponseMsg<Object> selectProject(String name) {
@@ -803,9 +805,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据元数据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(description = "根据元数据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectMetaById")
    public ResponseMsg<MetaEntity> selectMetaById(int id) {
se-system/src/main/java/com/terra/system/controller/all/CrdsController.java
ÎļþÒÑɾ³ý
se-system/src/main/java/com/terra/system/controller/all/FmeItController.java
ÎļþÒÑɾ³ý
se-system/src/main/java/com/terra/system/controller/all/PermsController.java
@@ -10,12 +10,13 @@
import com.terra.system.service.sys.LayerService;
import com.terra.system.service.sys.MenuService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -24,7 +25,7 @@
 * æŽˆæƒæŽ§åˆ¶å™¨
 * @author WWW
 */
@Api(tags = "运维管理\\授权管理")
@Tag(name = "运维管理\\授权管理")
@RestController
@RequestMapping("/perms")
public class PermsController extends BaseController {
@@ -41,7 +42,7 @@
    LayerService layerService;
    @SysLog()
    @ApiOperation(value = "查询当前用户的图层授权")
    @Operation(summary = "查询当前用户的图层授权")
    @GetMapping(value = "/selectLayers")
    public ResponseMsg<Object> selectLayers(HttpServletRequest req) {
        try {
@@ -60,7 +61,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询当前用户的投影图层授权")
    @Operation(summary = "查询当前用户的投影图层授权")
    @GetMapping(value = "/selectProjectLayers")
    public ResponseMsg<Object> selectProjectLayers(HttpServletRequest req) {
        try {
@@ -79,7 +80,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询当前用户的资源授权")
    @Operation(summary = "查询当前用户的资源授权")
    @GetMapping(value = "/selectRes")
    public ResponseMsg<Object> selectRes(HttpServletRequest req) {
        try {
@@ -98,7 +99,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询当前用户的菜单授权")
    @Operation(summary = "查询当前用户的菜单授权")
    @GetMapping(value = "/selectMenus")
    public ResponseMsg<List<MenusAuthEntity>> selectMenus(HttpServletRequest req) {
        try {
@@ -117,7 +118,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询当前用户的权限授权")
    @Operation(summary = "查询当前用户的权限授权")
    @GetMapping(value = "/selectPerms")
    public ResponseMsg<List<String>> selectPerms(HttpServletRequest req) {
        try {
@@ -136,7 +137,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询当前用户的权限授权实体集合")
    @Operation(summary = "查询当前用户的权限授权实体集合")
    @GetMapping(value = "/selectPermsEntity")
    public ResponseMsg<List<PermsAuthEntity>> selectPermsEntity(HttpServletRequest req) {
        try {
@@ -155,7 +156,7 @@
    }
    @SysLog()
    @ApiOperation(value = "清空授权缓存")
    @Operation(summary = "清空授权缓存")
    @GetMapping(value = "/deletePermsCache")
    public ResponseMsg<Boolean> deletePermsCache() {
        try {
@@ -168,7 +169,7 @@
    }
    @SysLog()
    @ApiOperation(value = "清空所有缓存")
    @Operation(summary = "清空所有缓存")
    @GetMapping(value = "/deleteAllCache")
    public ResponseMsg<Boolean> deleteAllCache() {
        try {
@@ -181,7 +182,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询用户角色")
    @Operation(summary = "查询用户角色")
    @GetMapping("/selectRoles")
    public ResponseMsg<Object> selectRoles(HttpServletRequest req) {
        try {
@@ -199,9 +200,9 @@
    }
    @SysLog()
    @ApiOperation(value = "递归查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "菜单ID", dataType = "Integer", paramType = "query", example = "14")
    @Operation(summary = "递归查询")
    @Parameters({
            @Parameter(name = "id", description = "菜单ID", in = ParameterIn.QUERY, example = "14")
    })
    @GetMapping(value = "/selectMenuRecursive")
    public ResponseMsg<Object> selectMenuRecursive(int id, HttpServletRequest req) {
se-system/src/main/java/com/terra/system/controller/all/SignController.java
@@ -16,11 +16,12 @@
import com.terra.system.service.sys.OperateService;
import com.terra.system.service.sys.TokenService;
import com.terra.system.service.sys.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;
@@ -32,7 +33,7 @@
 * @author WWW
 * @date   2022-09-21
 */
@Api(tags = "运维管理\\签名管理")
@Tag(name = "运维管理\\签名管理")
@RestController
@RequestMapping("/sign")
public class SignController extends BaseController {
@@ -58,7 +59,7 @@
    private ScheduleService scheduleService;
    @SysLog()
    @ApiOperation(value = "跳转首页")
    @Operation(summary = "跳转首页")
    @GetMapping({"/", "/toIndex"})
    public ModelAndView toIndex(ModelAndView mv, HttpServletRequest req) {
        mv.setViewName("index");
@@ -72,7 +73,7 @@
    }
    @SysLog()
    @ApiOperation(value = "跳转登录页")
    @Operation(summary = "跳转登录页")
    @GetMapping("/toLogin")
    public ModelAndView toLogin(ModelAndView mv) {
        mv.setViewName("login");
@@ -81,7 +82,7 @@
    }
    @SysLog()
    @ApiOperation(value = "数据库监控")
    @Operation(summary = "数据库监控")
    @GetMapping(value = "/toDruid")
    public ModelAndView toDruid(HttpServletRequest req, HttpServletResponse res) {
        ModelAndView mv = new ModelAndView();
@@ -103,7 +104,7 @@
    }
    @SysLog()
    @ApiOperation(value = "资源监控")
    @Operation(summary = "资源监控")
    @GetMapping(value = "/toMonitor")
    public ModelAndView toMonitor(ModelAndView mv, HttpServletRequest req, HttpServletResponse res) {
        try {
@@ -121,9 +122,9 @@
    }
    @SysLog()
    @ApiOperation(value = "登录")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "user", value = "用戶名", dataType = "UsersEntity", paramType = "body", example = "")
    @Operation(summary = "登录")
    @Parameters({
            @Parameter(name = "user", description = "用戶名", example = "")
    })
    @PostMapping(value = "/login", produces = "application/json; charset=UTF-8")
    public ResponseMsg<TokenEntity> login(@RequestBody UserEntity user, HttpServletRequest req, HttpServletResponse res) {
@@ -168,7 +169,7 @@
    }
    @SysLog()
    @ApiOperation(value = "登出")
    @Operation(summary = "登出")
    @GetMapping(value = "/logout")
    public ResponseMsg<Boolean> logout(HttpServletRequest req, HttpServletResponse res) {
        try {
@@ -186,7 +187,7 @@
    }
    @SysLog()
    @ApiOperation(value = "检查是/否登录")
    @Operation(summary = "检查是/否登录")
    @GetMapping("/check")
    public ResponseMsg<Boolean> check(HttpServletRequest req, HttpServletResponse res) {
        try {
@@ -205,7 +206,7 @@
    }
    @SysLog()
    @ApiOperation(value = "获取当前用户")
    @Operation(summary = "获取当前用户")
    @GetMapping("/getCurrentUser")
    public ResponseMsg<UserEntity> getCurrentUser(HttpServletRequest req) {
        try {
@@ -221,7 +222,7 @@
    }
    @SysLog()
    @ApiOperation(value = "获取RSA加密公钥")
    @Operation(summary = "获取RSA加密公钥")
    @GetMapping("/getPublicKey")
    public ResponseMsg<String> getPublicKey() {
        try {
@@ -233,7 +234,7 @@
        }
    }
    @ApiOperation(value = "插入操作日志")
    @Operation(summary = "插入操作日志")
    @GetMapping("/insertOpLog")
    public ResponseMsg<Object> insertOpLog(String m1, String m2, HttpServletRequest req) {
        try {
se-system/src/main/java/com/terra/system/controller/data/DataCountController.java
@@ -10,12 +10,14 @@
import com.terra.system.service.all.UploadAttachService;
import com.terra.system.service.sys.ReportService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -25,7 +27,7 @@
 * æ•°æ®ç»Ÿè®¡
 * @author WWW
 */
@Api(tags = "数据管理\\数据统计")
@Tag(name = "数据管理\\数据统计")
@RestController
@RequestMapping("/dataCount")
public class DataCountController extends BaseController {
@@ -39,12 +41,12 @@
    UploadAttachService uploadAttachService;
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "code", value = "编码", dataType = "String", paramType = "query", example = "countOperates"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "code", description = "编码", in = ParameterIn.QUERY, example = "countOperates"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<ReportEntity>> selectByPageAndCount(String name, String code, Integer pageSize, Integer pageIndex) {
@@ -67,7 +69,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询数据量统计")
    @Operation(summary = "查询数据量统计")
    @GetMapping(value = "/selectCountSizes")
    public ResponseMsg<Object> selectCountSizes() {
        try {
@@ -80,7 +82,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按文件类型统计")
    @Operation(summary = "按文件类型统计")
    @GetMapping(value = "/countSizesByType")
    public ResponseMsg<Object> countSizesByType() {
        try {
@@ -93,7 +95,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询服务调用量统计")
    @Operation(summary = "查询服务调用量统计")
    @GetMapping(value = "/selectCountServices")
    public ResponseMsg<Object> selectCountServices() {
        try {
@@ -106,7 +108,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询用户流量统计")
    @Operation(summary = "查询用户流量统计")
    @GetMapping(value = "/selectCountOperates")
    public ResponseMsg<Object> selectCountOperates() {
        try {
@@ -119,7 +121,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计数据")
    @Operation(summary = "按项目统计数据")
    @GetMapping(value = "/countSizesByPrj")
    public ResponseMsg<Object> countSizesByPrj() {
        try {
@@ -132,7 +134,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计钻孔数据")
    @Operation(summary = "按项目统计钻孔数据")
    @GetMapping(value = "/countExplorationPoints")
    public ResponseMsg<Object> countExplorationPoints() {
        try {
@@ -145,10 +147,10 @@
    }
    @SysLog()
    @ApiOperation(value = "下载报告")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "报告ID", dataType = "Integer", paramType = "query", example = "18"),
            @ApiImplicitParam(name = "code", value = "目录编码", dataType = "String", paramType = "query", example = "00"),
    @Operation(summary = "下载报告")
    @Parameters({
            @Parameter(name = "id", description = "报告ID", in = ParameterIn.QUERY, example = "18"),
            @Parameter(name = "code", description = "目录编码", in = ParameterIn.QUERY, example = "00"),
    })
    @GetMapping(value = "/downloadReport")
    public void downloadReport(Integer id, String code, HttpServletRequest req, HttpServletResponse res) {
@@ -171,7 +173,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计数字高程模型面积")
    @Operation(summary = "按项目统计数字高程模型面积")
    @GetMapping(value = "/countDemAreaByPrj")
    public ResponseMsg<Object> countDemAreaByPrj() {
        try {
@@ -184,7 +186,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计三维地形模型面积")
    @Operation(summary = "按项目统计三维地形模型面积")
    @GetMapping(value = "/countMptAreaByPrj")
    public ResponseMsg<Object> countMptAreaByPrj() {
        try {
@@ -197,7 +199,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计倾斜摄影模型面积")
    @Operation(summary = "按项目统计倾斜摄影模型面积")
    @GetMapping(value = "/countOsgbAreaByPrj")
    public ResponseMsg<Object> countOsgbAreaByPrj() {
        try {
@@ -210,7 +212,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计激光点云模型面积")
    @Operation(summary = "按项目统计激光点云模型面积")
    @GetMapping(value = "/countLasAreaByPrj")
    public ResponseMsg<Object> countLasAreaByPrj() {
        try {
@@ -223,7 +225,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计勘察工点个数")
    @Operation(summary = "按项目统计勘察工点个数")
    @GetMapping(value = "/countSurveyWorksiteByPrj")
    public ResponseMsg<Object> countSurveyWorksiteByPrj() {
        try {
@@ -236,7 +238,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计勘察报告个数")
    @Operation(summary = "按项目统计勘察报告个数")
    @GetMapping(value = "/countExplorationReportByPrj")
    public ResponseMsg<Object> countExplorationReportByPrj() {
        try {
@@ -249,7 +251,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计崩塌个数")
    @Operation(summary = "按项目统计崩塌个数")
    @GetMapping(value = "/countCollapseByPrj")
    public ResponseMsg<Object> countCollapseByPrj() {
        try {
@@ -262,7 +264,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计泥石流个数")
    @Operation(summary = "按项目统计泥石流个数")
    @GetMapping(value = "/countDebrisFlowByPrj")
    public ResponseMsg<Object> countDebrisFlowByPrj() {
        try {
@@ -275,7 +277,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计地面塌陷个数")
    @Operation(summary = "按项目统计地面塌陷个数")
    @GetMapping(value = "/countGroundCollapseByPrj")
    public ResponseMsg<Object> countGroundCollapseByPrj() {
        try {
@@ -288,7 +290,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计高陡边坡个数")
    @Operation(summary = "按项目统计高陡边坡个数")
    @GetMapping(value = "/countHighSteepSlopeByPrj")
    public ResponseMsg<Object> countHighSteepSlopeByPrj() {
        try {
@@ -301,7 +303,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计滑坡个数")
    @Operation(summary = "按项目统计滑坡个数")
    @GetMapping(value = "/countLandSlideByPrj")
    public ResponseMsg<Object> countLandSlideByPrj() {
        try {
@@ -314,7 +316,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计不稳定斜坡个数")
    @Operation(summary = "按项目统计不稳定斜坡个数")
    @GetMapping(value = "/countUnstableSlopeByPrj")
    public ResponseMsg<Object> countUnstableSlopeByPrj() {
        try {
@@ -327,7 +329,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计水毁个数")
    @Operation(summary = "按项目统计水毁个数")
    @GetMapping(value = "/countWaterDamageByPrj")
    public ResponseMsg<Object> countWaterDamageByPrj() {
        try {
@@ -340,7 +342,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计数字线划图面积")
    @Operation(summary = "按项目统计数字线划图面积")
    @GetMapping(value = "/countDlgAreaByPrj")
    public ResponseMsg<Object> countDlgAreaByPrj() {
        try {
@@ -353,7 +355,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计数字正射影像图面积")
    @Operation(summary = "按项目统计数字正射影像图面积")
    @GetMapping(value = "/countDomAreaByPrj")
    public ResponseMsg<Object> countDomAreaByPrj() {
        try {
@@ -366,7 +368,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计管线长度")
    @Operation(summary = "按项目统计管线长度")
    @GetMapping(value = "/countLineLength")
    public ResponseMsg<Object> countLineLength() {
        try {
@@ -379,7 +381,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计勘探点个数")
    @Operation(summary = "按项目统计勘探点个数")
    @GetMapping(value = "/countExplorationPointByPrj")
    public ResponseMsg<Object> countExplorationPointByPrj() {
        try {
@@ -392,7 +394,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计三维地质模型面积")
    @Operation(summary = "按项目统计三维地质模型面积")
    @GetMapping(value = "/countGeoModelAreaByPrj")
    public ResponseMsg<Object> countGeoModelAreaByPrj() {
        try {
@@ -405,7 +407,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计地灾点个数")
    @Operation(summary = "按项目统计地灾点个数")
    @GetMapping(value = "/countGeologicHazardByPrj")
    public ResponseMsg<Object> countGeologicHazardByPrj() {
        try {
@@ -418,9 +420,9 @@
    }
    @SysLog()
    @ApiOperation(value = "项目数据分类统计")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "code", value = "项目编码", dataType = "String", paramType = "query", example = "0B")
    @Operation(summary = "项目数据分类统计")
    @Parameters({
            @Parameter(name = "code", description = "项目编码", in = ParameterIn.QUERY, example = "0B")
    })
    @GetMapping(value = "/countVariousDataByPrj")
    public ResponseMsg<Object> countVariousDataByPrj(String code) {
se-system/src/main/java/com/terra/system/controller/data/DataQueryController.java
@@ -7,11 +7,13 @@
import com.terra.system.helper.StringHelper;
import com.terra.system.service.data.DataQueryService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.bind.annotation.*;
@@ -21,7 +23,7 @@
 * æ•°æ®æ£€ç´¢
 * @author WWW
 */
@Api(tags = "数据管理\\数据查询")
@Tag(name = "数据管理\\数据查询")
@RestController
@RequestMapping("/dataQuery")
public class DataQueryController extends BaseQueryController {
@@ -32,11 +34,11 @@
    DataQueryService dataQueryService;
    @SysLog()
    @ApiOperation(value = "上传文件")
    @Operation(summary = "上传文件")
    @ResponseBody
    @ApiImplicitParams({
            @ApiImplicitParam(name = "tabName", value = "表名", dataType = "String", paramType = "query", example = "lf.sys_style"),
            @ApiImplicitParam(name = "eventid", value = "主键", dataType = "String", paramType = "query", example = "fa25979a5ef8b43ba82a0be35b3fb0d4")
    @Parameters({
            @Parameter(name = "tabName", description = "表名", in = ParameterIn.QUERY, example = "lf.sys_style"),
            @Parameter(name = "eventid", description = "主键", in = ParameterIn.QUERY, example = "fa25979a5ef8b43ba82a0be35b3fb0d4")
    })
    @PostMapping(value = "/uploadFiles")
    public ResponseMsg<Integer> uploadFiles(String tabName, String eventid, @RequestParam("file") MultipartFile[] files, HttpServletRequest req) {
se-system/src/main/java/com/terra/system/controller/data/DictController.java
@@ -8,12 +8,13 @@
import com.terra.system.entity.sys.UserEntity;
import com.terra.system.service.data.DictService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -22,7 +23,7 @@
 * å­—典管理
 * @author WWW
 */
@Api(tags = "数据管理\\字典管理")
@Tag(name = "数据管理\\字典管理")
@RestController
@RequestMapping("/dict")
public class DictController extends BaseController {
@@ -33,10 +34,10 @@
    TokenService tokenService;
    @SysLog()
    @ApiOperation(value = "查询记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ns", value = "表空间", dataType = "String", paramType = "query", required = false, example = "bd"),
            @ApiImplicitParam(name = "tab", value = "表名", dataType = "String", paramType = "query", example = "dlg_25w_hyda")
    @Operation(summary = "查询记录数")
    @Parameters({
            @Parameter(name = "ns", description = "表空间", in = ParameterIn.QUERY, required = false, example = "bd"),
            @Parameter(name = "tab", description = "表名", in = ParameterIn.QUERY, example = "dlg_25w_hyda")
    })
    @GetMapping({"/selectCount"})
    public ResponseMsg<Integer> selectCount(String ns, String tab) {
@@ -50,12 +51,12 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ns", value = "表空间", dataType = "String", paramType = "query", example = "bd"),
            @ApiImplicitParam(name = "tab", value = "表名", dataType = "String", paramType = "query", example = "dlg_25w_hyda"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询")
    @Parameters({
            @Parameter(name = "ns", description = "表空间", in = ParameterIn.QUERY, example = "bd"),
            @Parameter(name = "tab", description = "表名", in = ParameterIn.QUERY, example = "dlg_25w_hyda"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    public ResponseMsg<List<DictEntity>> selectByPage(String ns, String tab, Integer pageSize, Integer pageIndex) {
@@ -73,12 +74,12 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ns", value = "表空间", dataType = "String", paramType = "query", example = "bd"),
            @ApiImplicitParam(name = "tab", value = "表名", dataType = "String", paramType = "query", example = "dlg_25w_hyda"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "ns", description = "表空间", in = ParameterIn.QUERY, example = "bd"),
            @Parameter(name = "tab", description = "表名", in = ParameterIn.QUERY, example = "dlg_25w_hyda"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<DictEntity>> selectByPageAndCount(String ns, String tab, Integer pageSize, Integer pageIndex) {
@@ -101,9 +102,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<DictEntity> selectById(int id) {
@@ -117,10 +118,10 @@
    }
    @SysLog()
    @ApiOperation(value = "查询字典表结构")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "点"),
            @ApiImplicitParam(name = "hasGeom", value = "含有Geom字段", dataType = "Boolean", paramType = "query", example = "false")
    @Operation(summary = "查询字典表结构")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "点"),
            @Parameter(name = "hasGeom", description = "含有Geom字段", in = ParameterIn.QUERY, example = "false")
    })
    @GetMapping(value = "/selectDictTab")
    public ResponseMsg<List<TabEntity>> selectDictTab(String name, Boolean hasGeom) {
@@ -134,9 +135,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "DictEntity", paramType = "body")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insert(@RequestBody DictEntity entity, HttpServletRequest req) {
@@ -155,9 +156,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "DictEntity", paramType = "body")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> inserts(@RequestBody List<DictEntity> list, HttpServletRequest req) {
@@ -178,9 +179,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int id) {
@@ -194,9 +195,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) {
@@ -214,9 +215,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "DictEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
@@ -236,9 +237,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "DictEntity", paramType = "body")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8")
se-system/src/main/java/com/terra/system/controller/data/DirController.java
@@ -8,12 +8,13 @@
import com.terra.system.helper.WebHelper;
import com.terra.system.service.data.DirService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -24,7 +25,7 @@
 * @author sws
 * @date   2022-09-22
 */
@Api(tags = "数据管理\\目录管理")
@Tag(name = "数据管理\\目录管理")
@RestController
@RequestMapping("/dir")
public class DirController extends BaseController {
@@ -35,9 +36,9 @@
    TokenService tokenService;
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "DirEntity", paramType = "body", example = "")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @PostMapping(value = "/insertDir", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertDir(@RequestBody DirEntity entity, HttpServletRequest req) {
@@ -56,9 +57,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "DirEntity", paramType = "body", example = "")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合", example = "")
    })
    @PostMapping(value = "/insertDirs", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertDirs(@RequestBody List<DirEntity> list, HttpServletRequest req) {
@@ -77,9 +78,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/deleteDir")
    public ResponseMsg<Integer> deleteDir(int id) {
@@ -93,9 +94,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "DirEntity", paramType = "body", example = "")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", example = "")
    })
    @GetMapping(value = "/deleteDirs")
    public ResponseMsg<Integer> deleteDirs(@RequestParam List<Integer> ids) {
@@ -113,9 +114,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "DictEntity", paramType = "body", example = "")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @ResponseBody
    @PostMapping(value = "/updateDir", produces = "application/json; charset=UTF-8")
@@ -135,9 +136,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "DirEntity", paramType = "body", example = "")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合", example = "")
    })
    @ResponseBody
    @PostMapping(value = "/updateDirs", produces = "application/json; charset=UTF-8")
@@ -159,9 +160,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询数据")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectDir")
    public ResponseMsg<DirEntity> selectDir(int id) {
@@ -175,7 +176,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有数据")
    @Operation(summary = "查询所有数据")
    @GetMapping(value = "/selectDirAll")
    public ResponseMsg<List<DirEntity>> selectDirAll() {
        try {
@@ -187,9 +188,9 @@
    }
    @SysLog()
    @ApiOperation(value = "下载目录结构")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "目录ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "下载目录结构")
    @Parameters({
            @Parameter(name = "id", description = "目录ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/downloadDir")
    public void downloadDir(int id, HttpServletResponse res) {
@@ -211,9 +212,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询项目")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "西")
    @Operation(summary = "查询项目")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "西")
    })
    @GetMapping(value = "/selectProject")
    public ResponseMsg<List<DirEntity>> selectProject(String name) {
@@ -227,9 +228,9 @@
    }
    @SysLog()
    @ApiOperation(value = "递归查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "pid", value = "父ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "递归查询")
    @Parameters({
            @Parameter(name = "pid", description = "父ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPid")
    public ResponseMsg<List<DirEntity>> selectByPid(int pid) {
se-system/src/main/java/com/terra/system/controller/data/DomainController.java
@@ -11,12 +11,13 @@
import com.terra.system.service.data.DictService;
import com.terra.system.service.data.DomainService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -25,7 +26,7 @@
 * å€¼åŸŸ
 * @author WWW
 */
@Api(tags = "数据管理\\值域")
@Tag(name = "数据管理\\值域")
@RestController
@RequestMapping("/domain")
public class DomainController extends BaseController {
@@ -42,11 +43,11 @@
    DictService dictService;
    @SysLog()
    @ApiOperation(value = "查询记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ns", value = "名称空间", dataType = "String", paramType = "query", example = "bd"),
            @ApiImplicitParam(name = "tab", value = "表名", dataType = "String", paramType = "query", example = "dlg_25w_aanp"),
            @ApiImplicitParam(name = "code", value = "编码", dataType = "String", paramType = "query", example = "210")
    @Operation(summary = "查询记录数")
    @Parameters({
            @Parameter(name = "ns", description = "名称空间", in = ParameterIn.QUERY, example = "bd"),
            @Parameter(name = "tab", description = "表名", in = ParameterIn.QUERY, example = "dlg_25w_aanp"),
            @Parameter(name = "code", description = "编码", in = ParameterIn.QUERY, example = "210")
    })
    @GetMapping({"/selectCount"})
    public ResponseMsg<Integer> selectCount(String ns, String tab, String code) {
@@ -60,13 +61,13 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ns", value = "名称空间", dataType = "String", paramType = "query", example = "bd"),
            @ApiImplicitParam(name = "tab", value = "表名", dataType = "String", paramType = "query", example = "dlg_25w_aanp"),
            @ApiImplicitParam(name = "code", value = "编码", dataType = "String", paramType = "query", example = "210"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询")
    @Parameters({
            @Parameter(name = "ns", description = "名称空间", in = ParameterIn.QUERY, example = "bd"),
            @Parameter(name = "tab", description = "表名", in = ParameterIn.QUERY, example = "dlg_25w_aanp"),
            @Parameter(name = "code", description = "编码", in = ParameterIn.QUERY, example = "210"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    public ResponseMsg<List<DomainEntity>> selectByPage(String ns, String tab, String code, Integer pageSize, Integer pageIndex) {
@@ -84,13 +85,13 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ns", value = "名称空间", dataType = "String", paramType = "query", example = "bd"),
            @ApiImplicitParam(name = "tab", value = "表名", dataType = "String", paramType = "query", example = "b_hy20w_s23"),
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "等级"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "ns", description = "名称空间", in = ParameterIn.QUERY, example = "bd"),
            @Parameter(name = "tab", description = "表名", in = ParameterIn.QUERY, example = "b_hy20w_s23"),
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "等级"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<DomainEntity>> selectByPageAndCount(String ns, String tab, String name, Integer pageSize, Integer pageIndex) {
@@ -113,7 +114,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectAll")
    public ResponseMsg<List<DomainEntity>> selectAll() {
        try {
@@ -126,10 +127,10 @@
    }
    @SysLog()
    @ApiOperation(value = "查询值域表集合")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "b_"),
            @ApiImplicitParam(name = "hasGeom", value = "含有Geom字段", dataType = "Boolean", paramType = "query", example = "false")
    @Operation(summary = "查询值域表集合")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "b_"),
            @Parameter(name = "hasGeom", description = "含有Geom字段", in = ParameterIn.QUERY, example = "false")
    })
    @GetMapping(value = "/selectDomainTabs")
    public ResponseMsg<List<TabEntity>> selectDomainTabs(String name, Boolean hasGeom) {
@@ -143,10 +144,10 @@
    }
    @SysLog()
    @ApiOperation(value = "根据表名查询值域名称")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ns", value = "名称空间", dataType = "String", paramType = "query", example = "bd"),
            @ApiImplicitParam(name = "tab", value = "表名", dataType = "String", paramType = "query", example = "b_hy20w_s23")
    @Operation(summary = "根据表名查询值域名称")
    @Parameters({
            @Parameter(name = "ns", description = "名称空间", in = ParameterIn.QUERY, example = "bd"),
            @Parameter(name = "tab", description = "表名", in = ParameterIn.QUERY, example = "b_hy20w_s23")
    })
    @GetMapping(value = "/selectDomainNames")
    public ResponseMsg<List<String>> selectDomainNames(String ns, String tab) {
@@ -164,9 +165,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<DomainEntity> selectById(int id) {
@@ -180,9 +181,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "DomainEntity", paramType = "body")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insert(@RequestBody DomainEntity entity, HttpServletRequest req) {
@@ -201,9 +202,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "DomainEntity", paramType = "body")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> inserts(@RequestBody List<DomainEntity> list, HttpServletRequest req) {
@@ -224,9 +225,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int id) {
@@ -240,9 +241,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) {
@@ -260,9 +261,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "DomainEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
@@ -282,9 +283,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "DomainEntity", paramType = "body")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8")
se-system/src/main/java/com/terra/system/controller/data/MetaController.java
@@ -26,8 +26,13 @@
import com.terra.system.service.sys.DepService;
import com.terra.system.service.sys.DownlogService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.*;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
@@ -42,7 +47,7 @@
 * å…ƒæ•°æ®
 * @author WWW
 */
@Api(tags = "数据管理\\信息管理")
@Tag(name = "数据管理\\信息管理")
@RestController
@RequestMapping("/meta")
public class MetaController extends BaseController {
@@ -71,14 +76,14 @@
    CadService cadService;
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "depcode", value = "单位编码", dataType = "String", paramType = "query", example = "00"),
            @ApiImplicitParam(name = "dircode", value = "目录编码", dataType = "String", paramType = "query", example = "00"),
            @ApiImplicitParam(name = "verid", value = "版本ID", dataType = "Integer", paramType = "query", example = "0"),
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "depcode", description = "单位编码", in = ParameterIn.QUERY, example = "00"),
            @Parameter(name = "dircode", description = "目录编码", in = ParameterIn.QUERY, example = "00"),
            @Parameter(name = "verid", description = "版本ID", in = ParameterIn.QUERY, example = "0"),
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<MetaEntity>> selectByPageAndCount(String depcode, String dircode, Integer verid, String name, Integer pageSize, Integer pageIndex) {
@@ -101,9 +106,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据GUID查询GDB")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "GUID", dataType = "String", paramType = "query", example = "d58e66d9606a4b85e7c8ab43b3db0b55")
    @Operation(summary = "根据GUID查询GDB")
    @Parameters({
            @Parameter(name = "guid", description = "GUID", in = ParameterIn.QUERY, example = "d58e66d9606a4b85e7c8ab43b3db0b55")
    })
    @GetMapping(value = "/selectGdbByGuid")
    public ResponseMsg<Object> selectGdbByGuid(String guid) {
@@ -121,12 +126,12 @@
    }
    @SysLog()
    @ApiOperation(value = "根据父ID分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "metaid", value = "父ID", dataType = "String", paramType = "query", example = "0"),
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据父ID分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "metaid", description = "父ID", in = ParameterIn.QUERY, example = "0"),
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectPageAndCountByPid")
    public ResponseMsg<List<MetaEntity>> selectPageAndCountByPid(Integer metaid, String name, Integer pageSize, Integer pageIndex) {
@@ -152,9 +157,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据目录ID查询版本列表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "dirid", value = "目录ID", dataType = "Integer", paramType = "query")
    @Operation(summary = "根据目录ID查询版本列表")
    @Parameters({
            @Parameter(name = "dirid", description = "目录ID", in = ParameterIn.QUERY)
    })
    @GetMapping(value = "/selectVerByDirid")
    public ResponseMsg<List<VerEntity>> selectVerByDirid(Integer dirid) {
@@ -175,9 +180,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<MetaEntity> selectById(int id) {
@@ -191,11 +196,11 @@
    }
    @SysLog()
    @ApiOperation(value = "查询表中数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "元数据ID", dataType = "Integer", paramType = "query", example = "115"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10")
    @Operation(summary = "查询表中数据")
    @Parameters({
            @Parameter(name = "id", description = "元数据ID", in = ParameterIn.QUERY, example = "115"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10")
    })
    @GetMapping(value = "/selectDbData")
    public ResponseMsg<Object> selectDbData(Integer id, Integer pageIndex, Integer pageSize) {
@@ -230,10 +235,10 @@
    }
    @SysLog()
    @ApiOperation(value = "查询字段信息")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ns", value = "名称空间", dataType = "String", paramType = "query", example = "bd"),
            @ApiImplicitParam(name = "tab", value = "表名", dataType = "String", paramType = "query", example = "dlg25wAanp")
    @Operation(summary = "查询字段信息")
    @Parameters({
            @Parameter(name = "ns", description = "名称空间", in = ParameterIn.QUERY, example = "bd"),
            @Parameter(name = "tab", description = "表名", in = ParameterIn.QUERY, example = "dlg25wAanp")
    })
    @GetMapping(value = "/selectTabFields")
    public ResponseMsg<List<DictEntity>> selectTabFields(String ns, String tab) {
@@ -251,10 +256,10 @@
    }
    @SysLog()
    @ApiOperation(value = "查询Dwg转换")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "元数据ID", dataType = "int", paramType = "query", example = "7715"),
            @ApiImplicitParam(name = "isAttach", value = "是否为附件", dataType = "Boolean", paramType = "query", example = "false")
    @Operation(summary = "查询Dwg转换")
    @Parameters({
            @Parameter(name = "id", description = "元数据ID", in = ParameterIn.QUERY, example = "7715"),
            @Parameter(name = "isAttach", description = "是否为附件", in = ParameterIn.QUERY, example = "false")
    })
    @GetMapping(value = "/selectConvertToDwg")
    public ResponseMsg<Object> selectConvertToDwg(int id, Boolean isAttach) {
@@ -268,9 +273,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "MetaEntity", paramType = "body")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insert(@RequestBody MetaEntity entity, HttpServletRequest req) {
@@ -290,9 +295,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "MetaEntity", paramType = "body")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> inserts(@RequestBody List<MetaEntity> list, HttpServletRequest req) {
@@ -313,9 +318,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", allowMultiple = true, example = "1")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, schema = @Schema(type = "array"), example = "1")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) {
@@ -333,9 +338,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "MetaEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
@@ -355,9 +360,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "MetaEntity", paramType = "body")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8")
@@ -379,11 +384,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询下载文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询下载文件")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectPageCountForDownload")
    public ResponseMsg<List<DownloadEntity>> selectPageCountForDownload(String name, Integer pageSize, Integer pageIndex, HttpServletRequest req) {
@@ -410,9 +415,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询元数据中溢出的单位ID")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "reqEntity", value = "请求下载实体", dataType = "DownloadReqEntity", paramType = "body")
    @Operation(summary = "查询元数据中溢出的单位ID")
    @Parameters({
            @Parameter(name = "reqEntity", description = "请求下载实体")
    })
    @ResponseBody
    @PostMapping(value = "/selectMetaOverflowDep")
@@ -436,9 +441,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据单位编码数组查询单位")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "codes", value = "单位编码数组", dataType = "String", paramType = "query", allowMultiple = true, example = "00,0001")
    @Operation(summary = "根据单位编码数组查询单位")
    @Parameters({
            @Parameter(name = "codes", description = "单位编码数组", in = ParameterIn.QUERY, schema = @Schema(type = "array"), example = "00,0001")
    })
    @GetMapping(value = "/selectDepsByCodes")
    public ResponseMsg<Object> selectDepsByCodes(String[] codes) {
@@ -456,9 +461,9 @@
    }
    @SysLog()
    @ApiOperation(value = "请求元数据下载")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "dr", value = "请求下载实体类", dataType = "DownloadReqEntity", paramType = "body")
    @Operation(summary = "请求元数据下载")
    @Parameters({
            @Parameter(name = "dr", description = "请求下载实体类")
    })
    @ResponseBody
    @PostMapping(value = "/downloadReq")
@@ -487,10 +492,10 @@
    }
    @SysLog()
    @ApiOperation(value = "查询下载文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "文件GUID", dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "pwd", value = "密码", dataType = "String", paramType = "query")
    @Operation(summary = "查询下载文件")
    @Parameters({
            @Parameter(name = "guid", description = "文件GUID", in = ParameterIn.QUERY),
            @Parameter(name = "pwd", description = "密码", in = ParameterIn.QUERY)
    })
    @GetMapping(value = "/selectDownloadFile")
    public ResponseMsg<Boolean> selectDownloadFile(String guid, String pwd) {
@@ -525,10 +530,10 @@
    }
    @SysLog()
    @ApiOperation(value = "下载文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "文件GUID", dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "pwd", value = "密码", dataType = "String", paramType = "query")
    @Operation(summary = "下载文件")
    @Parameters({
            @Parameter(name = "guid", description = "文件GUID", in = ParameterIn.QUERY),
            @Parameter(name = "pwd", description = "密码", in = ParameterIn.QUERY)
    })
    @ResponseBody
    @GetMapping(value = "/downloadFile")
@@ -566,9 +571,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查看文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "附件Guid", dataType = "String", paramType = "body")
    @Operation(summary = "查看文件")
    @Parameters({
            @Parameter(name = "guid", description = "附件Guid")
    })
    @GetMapping(value = "/downloadForView")
    public void downloadForView(String guid, HttpServletResponse res) {
se-system/src/main/java/com/terra/system/controller/data/ProjectController.java
@@ -19,12 +19,13 @@
import com.terra.system.service.data.DirService;
import com.terra.system.service.sys.DepService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;
@@ -34,7 +35,7 @@
 * é¡¹ç›®ç®¡ç†
 * @author WWW
 */
@Api(tags = "数据管理\\项目管理")
@Tag(name = "数据管理\\项目管理")
@RestController
@RequestMapping("/project")
public class ProjectController extends BaseController {
@@ -54,7 +55,7 @@
    BaseQueryService baseQueryService;
    @SysLog()
    @ApiOperation(value = "查询所有单位数据")
    @Operation(summary = "查询所有单位数据")
    @GetMapping(value = "/selectDepAll")
    public ResponseMsg<List<DepEntity>> selectDepAll() {
        try {
@@ -66,9 +67,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询项目")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "西")
    @Operation(summary = "查询项目")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "西")
    })
    @GetMapping(value = "/selectProject")
    public ResponseMsg<List<DirEntity>> selectProject(String name) {
@@ -82,11 +83,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "dirid", value = "目录ID", dataType = "String", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "dirid", description = "目录ID", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<Object> selectByPageAndCount(String dirid, Integer pageSize, Integer pageIndex) {
@@ -108,7 +109,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询字段信息")
    @Operation(summary = "查询字段信息")
    @GetMapping(value = "/selectFields")
    public ResponseMsg<List<DictEntity>> selectFields() {
        try {
@@ -127,10 +128,10 @@
    }
    @SysLog()
    @ApiOperation(value = "查询位置")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "x", value = "X", dataType = "Double", paramType = "query", example = "114.178955"),
            @ApiImplicitParam(name = "y", value = "Y", dataType = "Double", paramType = "query", example = "38.991743")
    @Operation(summary = "查询位置")
    @Parameters({
            @Parameter(name = "x", description = "X", in = ParameterIn.QUERY, example = "114.178955"),
            @Parameter(name = "y", description = "Y", in = ParameterIn.QUERY, example = "38.991743")
    })
    @GetMapping(value = "/selectLocation")
    public ResponseMsg<Object> selectLocation(double x, double y) {
@@ -145,9 +146,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "gid", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "gid", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int gid) {
@@ -161,9 +162,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "DictEntity", paramType = "body")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insert(@RequestBody BsprojectEntity entity, HttpServletRequest req) {
@@ -190,9 +191,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "DictEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
se-system/src/main/java/com/terra/system/controller/data/PublishController.java
@@ -16,11 +16,13 @@
import com.terra.system.service.data.RasterService;
import com.terra.system.service.sys.LayerService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
@@ -33,7 +35,7 @@
 * æ•°æ®å‘布
 * @author WWW
 */
@Api(tags = "数据管理\\发布管理")
@Tag(name = "数据管理\\发布管理")
@RestController
@RequestMapping("/publish")
public class PublishController extends BaseController {
@@ -55,9 +57,9 @@
    @Resource
    PathHelper pathHelper;
    @ApiOperation(value = "测试查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "seconds", value = "秒", dataType = "Integer", paramType = "query", example = "30")
    @Operation(summary = "测试查询")
    @Parameters({
            @Parameter(name = "seconds", description = "秒", in = ParameterIn.QUERY, example = "30")
    })
    @GetMapping(value = "/selectForTest")
    public ResponseMsg<Object> selectForTest(Integer seconds) {
@@ -75,15 +77,15 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询元数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "depcode", value = "单位编码", dataType = "String", paramType = "query", example = "00"),
            @ApiImplicitParam(name = "dircode", value = "目录编码", dataType = "String", paramType = "query", example = "01"),
            @ApiImplicitParam(name = "verid", value = "版本ID", dataType = "Integer", paramType = "query", example = "0"),
            @ApiImplicitParam(name = "type", value = "类别", dataType = "String", paramType = "query", example = "DOM"),
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询元数据")
    @Parameters({
            @Parameter(name = "depcode", description = "单位编码", in = ParameterIn.QUERY, example = "00"),
            @Parameter(name = "dircode", description = "目录编码", in = ParameterIn.QUERY, example = "01"),
            @Parameter(name = "verid", description = "版本ID", in = ParameterIn.QUERY, example = "0"),
            @Parameter(name = "type", description = "类别", in = ParameterIn.QUERY, example = "DOM"),
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectMetasByPage")
    public ResponseMsg<Object> selectMetasByPage(String depcode, String dircode, Integer verid, String type, String name, Integer pageSize, Integer pageIndex) {
@@ -164,13 +166,13 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "dircode", value = "目录", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "type", value = "类别", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "dircode", description = "目录", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "type", description = "类别", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<PublishEntity>> selectByPageAndCount(String name, String dircode, String type, Integer pageSize, Integer pageIndex) {
@@ -224,9 +226,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<PublishEntity> selectById(int id) {
@@ -240,9 +242,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询Las文件坐标系ID")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "元数据ID集合", dataType = "Integer[]", paramType = "query", example = "10483,10481,10456,10285")
    @Operation(summary = "查询Las文件坐标系ID")
    @Parameters({
            @Parameter(name = "ids", description = "元数据ID集合", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "10483,10481,10456,10285")
    })
    @GetMapping(value = "/selectLasCs")
    public ResponseMsg<Object> selectLasCs(Integer[] ids, HttpServletRequest req) {
@@ -265,9 +267,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询栅格数据的坐标系ID")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "元数据ID集合", dataType = "Integer[]", paramType = "query", example = "10531,10527,10526")
    @Operation(summary = "查询栅格数据的坐标系ID")
    @Parameters({
            @Parameter(name = "ids", description = "元数据ID集合", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "10531,10527,10526")
    })
    @GetMapping(value = "/selectRasterCs")
    public ResponseMsg<Object> selectRasterCs(Integer[] ids, HttpServletRequest req) {
@@ -313,11 +315,11 @@
    }
    @SysLog()
    @ApiOperation(value = "查询坐标转换")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "x", value = "X坐标", dataType = "double", paramType = "query", example = "400925.079"),
            @ApiImplicitParam(name = "y", value = "Y坐标", dataType = "double", paramType = "query", example = "2541768.173"),
            @ApiImplicitParam(name = "epsg", value = "EPSG编码", dataType = "int", paramType = "query", example = "4548")
    @Operation(summary = "查询坐标转换")
    @Parameters({
            @Parameter(name = "x", description = "X坐标", in = ParameterIn.QUERY, example = "400925.079"),
            @Parameter(name = "y", description = "Y坐标", in = ParameterIn.QUERY, example = "2541768.173"),
            @Parameter(name = "epsg", description = "EPSG编码", in = ParameterIn.QUERY, example = "4548")
    })
    @GetMapping(value = "/selectCsTransform")
    public Object selectCsTransform(double x, double y, int epsg) {
@@ -329,9 +331,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入发布数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "PubEntity", paramType = "body")
    @Operation(summary = "插入发布数据")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insertForPub", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Object> insertForPub(@RequestBody PubEntity entity, HttpServletRequest req) {
@@ -384,9 +386,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", allowMultiple = true, example = "1")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, schema = @Schema(type = "array"), example = "1")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids, HttpServletRequest req) {
@@ -414,9 +416,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "PublishEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
se-system/src/main/java/com/terra/system/controller/data/StyleController.java
@@ -14,11 +14,14 @@
import com.terra.system.service.data.StyleService;
import com.terra.system.service.sys.DownlogService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.bind.annotation.*;
@@ -31,7 +34,7 @@
 * @author sws
 * @date 2022-09.26
 */
@Api(tags = "数据管理\\样式管理")
@Tag(name = "数据管理\\样式管理")
@RestController
@RequestMapping("/style")
public class StyleController extends BaseController {
@@ -53,9 +56,9 @@
    private final static String TAB_NAME = "lf.sys_style";
    @SysLog()
    @ApiOperation(value = "查询记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", required = false, example = "a")
    @Operation(summary = "查询记录数")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, required = false, example = "a")
    })
    @GetMapping({"/selectCount"})
    public ResponseMsg<Integer> selectCount(String name) {
@@ -69,11 +72,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", required = false, example = "a"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, required = false, example = "a"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    public ResponseMsg<List<StyleEntity>> selectByPage(String name, Integer pageSize, Integer pageIndex) {
@@ -92,11 +95,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "a"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "a"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<StyleEntity>> selectByPageAndCount(String name, Integer pageSize, Integer pageIndex) {
@@ -119,9 +122,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "StyleEntity", paramType = "body", example = "")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @PostMapping(value = "/insertStyle", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertStyle(@RequestBody StyleEntity entity, HttpServletRequest req) {
@@ -140,9 +143,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "StyleEntity", paramType = "body", example = "")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合", example = "")
    })
    @PostMapping(value = "/insertStyles", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertStyles(@RequestBody List<StyleEntity> list, HttpServletRequest req) {
@@ -163,9 +166,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/deleteStyle")
    public ResponseMsg<Integer> deleteStyle(int id) {
@@ -179,9 +182,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/deleteStyles")
    public ResponseMsg<Integer> deleteStyles(@RequestParam List<Integer> ids) {
@@ -199,9 +202,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "StyleEntity", paramType = "body", example = "")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @ResponseBody
    @PostMapping(value = "/updateStyle", produces = "application/json; charset=UTF-8")
@@ -221,9 +224,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectStyle")
    public ResponseMsg<StyleEntity> selectStyle(int id) {
@@ -237,7 +240,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectStyleAll")
    public ResponseMsg<List<StyleEntity>> selectStyleAll() {
@@ -250,7 +253,7 @@
    }
    @SysLog()
    @ApiOperation(value = "上传文件")
    @Operation(summary = "上传文件")
    @ResponseBody
    @PostMapping(value = "/upload")
    public ResponseMsg<String> upload(@RequestParam("file") MultipartFile file, HttpServletRequest req) {
@@ -260,9 +263,9 @@
    }
    @SysLog()
    @ApiOperation(value = "下载文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "附件Guid", dataType = "String", paramType = "body")
    @Operation(summary = "下载文件")
    @Parameters({
            @Parameter(name = "guid", description = "附件Guid")
    })
    @GetMapping(value = "/download")
    public void download(String guid, HttpServletResponse res) {
@@ -270,9 +273,9 @@
    }
    @SysLog()
    @ApiOperation(value = "下载文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "文件GUID", dataType = "String", paramType = "query")
    @Operation(summary = "下载文件")
    @Parameters({
            @Parameter(name = "guid", description = "文件GUID", in = ParameterIn.QUERY)
    })
    @RequestMapping(value = "/downloadFile", method = RequestMethod.GET)
    public void downloadFile(String guid, HttpServletRequest req, HttpServletResponse res) {
@@ -298,9 +301,9 @@
    }
    @SysLog()
    @ApiOperation(value = "请求下载")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guids", value = "附件Guid数组", dataType = "String", paramType = "body", allowMultiple = true, example = "e5b6ae0889b88111f13a4b6e048348db,fa4f299e901a0c46e634f8fcc8185c0c")
    @Operation(summary = "请求下载")
    @Parameters({
            @Parameter(name = "guids", description = "附件Guid数组", schema = @Schema(type = "array"), example = "e5b6ae0889b88111f13a4b6e048348db,fa4f299e901a0c46e634f8fcc8185c0c")
    })
    @ResponseBody
    @PostMapping(value = "/downloadReqForGuids")
se-system/src/main/java/com/terra/system/controller/data/TaskController.java
@@ -10,11 +10,12 @@
import com.terra.system.service.data.PublishService;
import com.terra.system.service.data.TaskService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
@@ -25,7 +26,7 @@
 * ä»»åŠ¡
 * @author WWW
 */
@Api(tags = "数据管理\\任务管理")
@Tag(name = "数据管理\\任务管理")
@RestController
@RequestMapping("/task")
public class TaskController extends BaseController {
@@ -39,13 +40,13 @@
    PublishService publishService;
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "任务名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "status", value = "任务状态", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "type", value = "任务类别", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "name", description = "任务名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "status", description = "任务状态", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "type", description = "任务类别", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<TaskEntity>> selectByPageAndCount(String name, Integer status, String type, Integer pageSize, Integer pageIndex) {
@@ -68,9 +69,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<TaskEntity> selectById(int id) {
@@ -84,9 +85,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "TaskEntity", paramType = "body")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insert(@RequestBody TaskEntity entity, HttpServletRequest req) {
@@ -105,9 +106,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "TaskEntity", paramType = "body")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> inserts(@RequestBody List<TaskEntity> list, HttpServletRequest req) {
@@ -128,9 +129,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int id) {
@@ -144,9 +145,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) {
@@ -164,9 +165,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除任务")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除任务")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/deleteTask")
    public ResponseMsg<Object> deleteTask(int id, HttpServletRequest req) {
@@ -198,9 +199,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "TaskEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
@@ -220,9 +221,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "TaskEntity", paramType = "body")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8")
se-system/src/main/java/com/terra/system/controller/data/VerController.java
@@ -7,12 +7,14 @@
import com.terra.system.entity.sys.UserEntity;
import com.terra.system.service.data.VerService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -22,7 +24,7 @@
 * @author SWS
 * @date 2022-09.29
 */
@Api(tags = "数据管理\\版本管理")
@Tag(name = "数据管理\\版本管理")
@RestController
@RequestMapping("/ver")
public class VerController extends BaseController {
@@ -33,12 +35,12 @@
    TokenService tokenService;
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "dirid", value = "目录ID", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "dirid", description = "目录ID", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<VerEntity>> selectByPageAndCount(Integer dirid, String name, Integer pageSize, Integer pageIndex) {
@@ -61,9 +63,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "VersionEntity", paramType = "body", example = "")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @PostMapping(value = "/insertVersion", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertVersion(@RequestBody VerEntity entity, HttpServletRequest req) {
@@ -82,9 +84,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "List<VersionEntity>", paramType = "body", example = "")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合", schema = @Schema(type = "array"), example = "")
    })
    @PostMapping(value = "/insertVersions", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertVersions(@RequestParam List<VerEntity> list, HttpServletRequest req) {
@@ -105,9 +107,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/deleteVersion")
    public ResponseMsg<Integer> deleteVersion(int id) {
@@ -121,9 +123,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "List<Integer>", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deleteVersions")
    public ResponseMsg<Integer> deleteVersions(@RequestParam List<Integer> ids) {
@@ -139,9 +141,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "VersionEntity", paramType = "body", example = "")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @ResponseBody
    @PostMapping(value = "/updateVersion", produces = "application/json; charset=UTF-8")
@@ -161,9 +163,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectVersion")
    public ResponseMsg<VerEntity> selectVersion(int id) {
@@ -177,7 +179,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectVersionAll")
    public ResponseMsg<List<VerEntity>> selectVersionAll() {
        try {
se-system/src/main/java/com/terra/system/controller/data/WmtsController.java
@@ -4,10 +4,11 @@
import com.terra.system.config.PropertiesConfig;
import com.terra.system.helper.StringHelper;
import com.terra.system.helper.WebHelper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import javax.annotation.Resource;
@@ -36,7 +37,7 @@
 * WMTS服务
 * @author WWW
 */
@Api(tags = "数据管理\\WMTS服务")
@Tag(name = "数据管理\\WMTS服务")
@RestController
@RequestMapping("/wmts")
public class WmtsController {
@@ -46,9 +47,9 @@
    private final static Log log = LogFactory.getLog(WmtsController.class);
    @SysLog()
    @ApiOperation(value = "获取WMTS元数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌", required = true, dataType = "String", defaultValue = "token", paramType = "path")
    @Operation(summary = "获取WMTS元数据")
    @Parameters({
            @Parameter(name = "token", description = "令牌", required = true, example = "token", in = ParameterIn.PATH)
    })
    @GetMapping("select/{token}/WMTSCapabilities.xml")
    public void selectWmtsCapabilities(@PathVariable(name = "token") String token, HttpServletRequest req, HttpServletResponse res) {
@@ -78,13 +79,13 @@
        }
    }
    @ApiOperation(value = "获取WMTS瓦片")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "令牌", required = true, dataType = "String", defaultValue = "token", paramType = "path"),
            @ApiImplicitParam(name = "layer", value = "图层类型", required = true, dataType = "String", defaultValue = "img"),
            @ApiImplicitParam(name = "tilematrix", value = "层级", required = true, dataType = "Integer"),
            @ApiImplicitParam(name = "tilerow", value = "行号", required = true, dataType = "Integer"),
            @ApiImplicitParam(name = "tilecol", value = "列号", required = true, dataType = "Integer")
    @Operation(summary = "获取WMTS瓦片")
    @Parameters({
            @Parameter(name = "token", description = "令牌", required = true, example = "token", in = ParameterIn.PATH),
            @Parameter(name = "layer", description = "图层类型", required = true, example = "img"),
            @Parameter(name = "tilematrix", description = "层级", required = true),
            @Parameter(name = "tilerow", description = "行号", required = true),
            @Parameter(name = "tilecol", description = "列号", required = true)
    })
    @GetMapping("select/{token}/tile")
    public void selectWmtsTile(@PathVariable(name = "token") String token, HttpServletRequest req, HttpServletResponse res) {
se-system/src/main/java/com/terra/system/controller/data/upload/CheckController.java
@@ -10,10 +10,12 @@
import com.terra.system.helper.PathHelper;
import com.terra.system.helper.StringHelper;
import com.terra.system.service.data.FmeService;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
@@ -38,9 +40,9 @@
    protected FmeService fmeService;
    @SysLog()
    @ApiOperation(value = "查询任务状态")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "任务ID", dataType = "String", paramType = "query", example = "29db09ee-2aae-4c62-bec0-0b5c5d8084e4")
    @Operation(summary = "查询任务状态")
    @Parameters({
            @Parameter(name = "id", description = "任务ID", in = ParameterIn.QUERY, example = "29db09ee-2aae-4c62-bec0-0b5c5d8084e4")
    })
    @GetMapping(value = "/selectTaskStatus")
    public Object selectTaskStatus(String id, HttpServletRequest req) {
@@ -56,9 +58,9 @@
    }
    @SysLog()
    @ApiOperation(value = "下载质检结果")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "任务ID", dataType = "String", paramType = "query", example = "29db09ee-2aae-4c62-bec0-0b5c5d8084e4")
    @Operation(summary = "下载质检结果")
    @Parameters({
            @Parameter(name = "id", description = "任务ID", in = ParameterIn.QUERY, example = "29db09ee-2aae-4c62-bec0-0b5c5d8084e4")
    })
    @GetMapping(value = "/downloadResult")
    public void downloadResult(String id, HttpServletRequest req, HttpServletResponse res) {
@@ -76,9 +78,9 @@
    }
    @SysLog()
    @ApiOperation(value = "提交数据质检")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "FME请求实体类", dataType = "FmeReqEntity", paramType = "body")
    @Operation(summary = "提交数据质检")
    @Parameters({
            @Parameter(name = "entity", description = "FME请求实体类")
    })
    @ResponseBody
    @PostMapping(value = "/uploadChecks")
@@ -167,7 +169,7 @@
    }
    /*@SysLog()
    @ApiOperation(value = "查询OSGB检查")
    @Operation(summary = "查询OSGB检查")
    @GetMapping(value = "/selectCheckOsgb")
    public ResponseMsg<Object> selectCheckOsgb(HttpServletRequest req) {
        try {
@@ -188,7 +190,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询表格数据检查")
    @Operation(summary = "查询表格数据检查")
    @GetMapping(value = "/selectCheckXls")
    public ResponseMsg<Object> selectCheckXls(HttpServletRequest req) {
        try {
@@ -209,7 +211,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询点云检查")
    @Operation(summary = "查询点云检查")
    @GetMapping(value = "/selectCheckLaz")
    public ResponseMsg<Object> selectCheckLaz(HttpServletRequest req) {
        try {
@@ -230,7 +232,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询高程检查")
    @Operation(summary = "查询高程检查")
    @GetMapping(value = "/selectCheckDem")
    public ResponseMsg<Object> selectCheckDem(HttpServletRequest req) {
        try {
@@ -252,7 +254,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询属性检查")
    @Operation(summary = "查询属性检查")
    @GetMapping(value = "/selectCheckAttrs")
    public ResponseMsg<Object> selectCheckAttrs(HttpServletRequest req) {
        try {
@@ -273,7 +275,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询拓扑检查")
    @Operation(summary = "查询拓扑检查")
    @GetMapping(value = "/selectCheckTopology")
    public ResponseMsg<Object> selectCheckTopology(HttpServletRequest req) {
        try {
@@ -300,7 +302,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询图面整饰检查")
    @Operation(summary = "查询图面整饰检查")
    @GetMapping(value = "/selectCheckDecorate")
    public ResponseMsg<Object> selectCheckDecorate(HttpServletRequest req) {
        try {
@@ -321,7 +323,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询原点检查")
    @Operation(summary = "查询原点检查")
    @GetMapping(value = "/selectCheckOrigin")
    public ResponseMsg<Object> selectCheckOrigin(HttpServletRequest req) {
        try {
@@ -341,7 +343,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询栅格检查")
    @Operation(summary = "查询栅格检查")
    @GetMapping(value = "/selectCheckDom")
    public ResponseMsg<Object> selectCheckDom(HttpServletRequest req) {
        try {
@@ -364,7 +366,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询数学基础检查")
    @Operation(summary = "查询数学基础检查")
    @GetMapping(value = "/selectCheckMath")
    public ResponseMsg<Object> selectCheckMath(HttpServletRequest req) {
        try {
@@ -385,7 +387,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询元数据检查")
    @Operation(summary = "查询元数据检查")
    @GetMapping(value = "/selectCheckMeta")
    public ResponseMsg<Object> selectCheckMeta(HttpServletRequest req) {
        try {
@@ -406,7 +408,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询总质检")
    @Operation(summary = "查询总质检")
    @GetMapping(value = "/selectCheckMain")
    public ResponseMsg<Object> selectCheckMain(HttpServletRequest req) {
        try {
@@ -430,7 +432,7 @@
    }
    @SysLog()
    @ApiOperation(value = "逻辑一致性检查")
    @Operation(summary = "逻辑一致性检查")
    @GetMapping(value = "/checkLogical")
    public ResponseMsg<Object> checkLogical(HttpServletRequest req) {
        try {
@@ -451,7 +453,7 @@
    }
    @SysLog()
    @ApiOperation(value = "单项成果完整性检查")
    @Operation(summary = "单项成果完整性检查")
    @GetMapping(value = "/checkSingleIntegrity")
    public ResponseMsg<Object> checkSingleIntegrity(HttpServletRequest req) {
        try {
@@ -473,7 +475,7 @@
    }*/
    @SysLog()
    @ApiOperation(value = "服务注册")
    @Operation(summary = "服务注册")
    @GetMapping(value = "/selectServerRegister")
    public ResponseMsg<Object> selectServerRegister(HttpServletRequest req) {
        try {
@@ -489,10 +491,10 @@
    }
    @SysLog()
    @ApiOperation(value = "服务申请")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "服务ID", dataType = "String", paramType = "query", example = "195f77eb-19dd-4e34-afc1-fcff8f758f7b"),
            @ApiImplicitParam(name = "pubid", value = "发布ID", dataType = "Integer", paramType = "query", example = "1"),
    @Operation(summary = "服务申请")
    @Parameters({
            @Parameter(name = "id", description = "服务ID", in = ParameterIn.QUERY, example = "195f77eb-19dd-4e34-afc1-fcff8f758f7b"),
            @Parameter(name = "pubid", description = "发布ID", in = ParameterIn.QUERY, example = "1"),
    })
    @GetMapping(value = "/selectServerApply")
    public ResponseMsg<Object> selectServerApply(String id, Integer pubid, HttpServletRequest req) {
@@ -506,9 +508,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除资源")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "服务ID", dataType = "String", paramType = "query", example = "6f4b6783-4b98-4d46-a0d9-43cdb5f339dc")
    @Operation(summary = "删除资源")
    @Parameters({
            @Parameter(name = "id", description = "服务ID", in = ParameterIn.QUERY, example = "6f4b6783-4b98-4d46-a0d9-43cdb5f339dc")
    })
    @GetMapping(value = "/selectDeleteRes")
    public ResponseMsg<Object> selectDeleteRes(String id, HttpServletRequest req) {
se-system/src/main/java/com/terra/system/controller/data/upload/QueryController.java
@@ -18,10 +18,12 @@
import com.terra.system.service.data.*;
import com.terra.system.service.sys.DepService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import org.springframework.web.bind.annotation.GetMapping;
import javax.servlet.http.HttpServletRequest;
@@ -57,12 +59,12 @@
    DictService dictService;
    @SysLog()
    @ApiOperation(value = "根据父ID分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "metaid", value = "父ID", dataType = "String", paramType = "query", example = "0"),
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据父ID分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "metaid", description = "父ID", in = ParameterIn.QUERY, example = "0"),
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectPageAndCountByPid")
    public ResponseMsg<List<MetaEntity>> selectPageAndCountByPid(Integer metaid, String name, Integer pageSize, Integer pageIndex) {
@@ -88,7 +90,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有单位")
    @Operation(summary = "查询所有单位")
    @GetMapping(value = "/selectDepAll")
    public ResponseMsg<List<DepEntity>> selectDepAll() {
        try {
@@ -101,7 +103,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有目录")
    @Operation(summary = "查询所有目录")
    @GetMapping(value = "/selectDirAll")
    public ResponseMsg<List<DirEntity>> selectDirAll() {
        try {
@@ -114,9 +116,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据目录ID查询版本列表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "dirid", value = "目录ID", dataType = "Integer", paramType = "query")
    @Operation(summary = "根据目录ID查询版本列表")
    @Parameters({
            @Parameter(name = "dirid", description = "目录ID", in = ParameterIn.QUERY)
    })
    @GetMapping(value = "/selectVerByDirid")
    public ResponseMsg<List<VerEntity>> selectVerByDirid(Integer dirid) {
@@ -137,9 +139,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询坐标系")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "zoning", value = "带号", dataType = "String", paramType = "query", example = "6度有带号")
    @Operation(summary = "查询坐标系")
    @Parameters({
            @Parameter(name = "zoning", description = "带号", in = ParameterIn.QUERY, example = "6度有带号")
    })
    @GetMapping(value = "/selectCoords")
    public ResponseMsg<Object> selectCoords(String zoning) {
@@ -153,7 +155,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询项目名称")
    @Operation(summary = "查询项目名称")
    @GetMapping(value = "/selectProject")
    public ResponseMsg<Object> selectProject() {
        try {
@@ -166,10 +168,10 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "点"),
            @ApiImplicitParam(name = "hasGeom", value = "含有Geom字段", dataType = "Boolean", paramType = "query", example = "false")
    @Operation(summary = "查询所有表")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "点"),
            @Parameter(name = "hasGeom", description = "含有Geom字段", in = ParameterIn.QUERY, example = "false")
    })
    @GetMapping(value = "/selectTabs")
    public ResponseMsg<List<TabEntity>> selectTabs(String name, Boolean hasGeom) {
@@ -183,10 +185,10 @@
    }
    @SysLog()
    @ApiOperation(value = "查询字段信息")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ns", value = "名称空间", dataType = "String", paramType = "query", example = "bd"),
            @ApiImplicitParam(name = "tab", value = "表名", dataType = "String", paramType = "query", example = "dlg25wAanp")
    @Operation(summary = "查询字段信息")
    @Parameters({
            @Parameter(name = "ns", description = "名称空间", in = ParameterIn.QUERY, example = "bd"),
            @Parameter(name = "tab", description = "表名", in = ParameterIn.QUERY, example = "dlg25wAanp")
    })
    @GetMapping(value = "/selectFields")
    public ResponseMsg<List<DictEntity>> selectFields(String ns, String tab) {
@@ -204,11 +206,11 @@
    }
    @SysLog()
    @ApiOperation(value = "查询表中数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "元数据ID", dataType = "Integer", paramType = "query", example = "115"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10")
    @Operation(summary = "查询表中数据")
    @Parameters({
            @Parameter(name = "id", description = "元数据ID", in = ParameterIn.QUERY, example = "115"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10")
    })
    @GetMapping(value = "/selectDbData")
    public ResponseMsg<Object> selectDbData(Integer id, Integer pageIndex, Integer pageSize) {
@@ -243,11 +245,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询上传数据并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询上传数据并返回记录数")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageForUpload")
    public ResponseMsg<Object> selectByPageForUpload(String name, Integer pageSize, Integer pageIndex, HttpServletRequest req) {
@@ -272,9 +274,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据元数据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据元数据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectMetaById")
    public ResponseMsg<MetaEntity> selectMetaById(int id) {
se-system/src/main/java/com/terra/system/controller/data/upload/UploadController.java
@@ -11,12 +11,14 @@
import com.terra.system.helper.StringHelper;
import com.terra.system.service.all.UploadAttachService;
import com.terra.system.service.data.UploadService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -26,7 +28,7 @@
 * æ•°æ®å…¥åº“
 * @author WWW
 */
@Api(tags = "数据管理\\数据上传")
@Tag(name = "数据管理\\数据上传")
@RestController
@RequestMapping("/dataUpload")
public class UploadController extends QueryController {
@@ -37,7 +39,7 @@
    UploadAttachService uploadAttachService;
    @SysLog()
    @ApiOperation(value = "查询路径")
    @Operation(summary = "查询路径")
    @GetMapping(value = "/selectPath")
    public ResponseMsg<String> selectPath() {
        try {
@@ -51,9 +53,9 @@
    }
    @SysLog()
    @ApiOperation(value = "上传文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "path", value = "路径", dataType = "String", paramType = "query")
    @Operation(summary = "上传文件")
    @Parameters({
            @Parameter(name = "path", description = "路径", in = ParameterIn.QUERY)
    })
    @ResponseBody
    @PostMapping(value = "/uploadFiles")
@@ -79,10 +81,10 @@
     *          formData.append("ids", 1209); formData.append("ids", 1180); formData.append("ids", 1387);
     */
    @SysLog()
    @ApiOperation(value = "上传Excel附件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "path", value = "路径", dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "ids", value = "元数据集合", dataType = "Integer", allowMultiple = true, paramType = "query")
    @Operation(summary = "上传Excel附件")
    @Parameters({
            @Parameter(name = "path", description = "路径", in = ParameterIn.QUERY),
            @Parameter(name = "ids", description = "元数据集合", schema = @Schema(type = "array"), in = ParameterIn.QUERY)
    })
    @ResponseBody
    @PostMapping(value = "/uploadXlsAnnex")
@@ -118,9 +120,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "path", value = "路径", dataType = "String", paramType = "query")
    @Operation(summary = "查询文件")
    @Parameters({
            @Parameter(name = "path", description = "路径", in = ParameterIn.QUERY)
    })
    @GetMapping(value = "/selectFiles")
    public ResponseMsg<List<MetaFileEntity>> selectFiles(String path) {
@@ -134,9 +136,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "MetaEntity", paramType = "body")
    @Operation(summary = "删除文件")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/deleteFiles")
@@ -159,12 +161,12 @@
    }
    @SysLog()
    @ApiOperation(value = "查询映射")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "path", value = "路径", dataType = "String", paramType = "query", example = "20230722"),
            @ApiImplicitParam(name = "dirid", value = "目录ID", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "verid", value = "版本ID", dataType = "Integer", paramType = "query", example = "0"),
            @ApiImplicitParam(name = "epsgCode", value = "坐标编码", dataType = "String", paramType = "query", example = "EPSG:4490")
    @Operation(summary = "查询映射")
    @Parameters({
            @Parameter(name = "path", description = "路径", in = ParameterIn.QUERY, example = "20230722"),
            @Parameter(name = "dirid", description = "目录ID", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "verid", description = "版本ID", in = ParameterIn.QUERY, example = "0"),
            @Parameter(name = "epsgCode", description = "坐标编码", in = ParameterIn.QUERY, example = "EPSG:4490")
    })
    @GetMapping(value = "/selectMappers")
    public ResponseMsg<Object> selectMappers(String path, Integer dirid, Integer verid, String epsgCode, HttpServletRequest req) {
@@ -194,9 +196,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "元数据文件集合", dataType = "MetaFileEntity", paramType = "body")
    @Operation(summary = "插入文件")
    @Parameters({
            @Parameter(name = "list", description = "元数据文件集合")
    })
    @ResponseBody
    @PostMapping(value = "/insertFiles")
@@ -219,9 +221,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入KML文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "元数据文件集合", dataType = "MetaFileEntity", paramType = "body")
    @Operation(summary = "插入KML文件")
    @Parameters({
            @Parameter(name = "list", description = "元数据文件集合")
    })
    @ResponseBody
    @PostMapping(value = "/insertKml")
@@ -244,9 +246,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除元数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", allowMultiple = true, example = "1")
    @Operation(summary = "删除元数据")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, schema = @Schema(type = "array"), example = "1")
    })
    @GetMapping(value = "/deleteMetas")
    public ResponseMsg<Integer> deleteMetas(@RequestParam List<Integer> ids) {
se-system/src/main/java/com/terra/system/controller/show/ApplyController.java
@@ -19,12 +19,13 @@
import com.terra.system.service.sys.DownlogService;
import com.terra.system.service.sys.TokenService;
import com.terra.system.service.sys.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -35,7 +36,7 @@
 * æ•°æ®ç”³è¯·
 * @author WWW
 */
@Api(tags = "综合展示\\数据申请")
@Tag(name = "综合展示\\数据申请")
@RestController
@RequestMapping("/apply")
public class ApplyController extends BaseController {
@@ -58,9 +59,9 @@
    DownloadService downloadService;
    @SysLog()
    @ApiOperation(value = "插入数据申请")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "dr", value = "请求下载实体", dataType = "DownloadReqEntity", paramType = "body")
    @Operation(summary = "插入数据申请")
    @Parameters({
            @Parameter(name = "dr", description = "请求下载实体")
    })
    @ResponseBody
    @PostMapping(value = "/insertApply")
@@ -96,14 +97,14 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询申请")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "uname", value = "用户名", dataType = "String", paramType = "query", example = "员"),
            @ApiImplicitParam(name = "status", value = "状态", dataType = "Integer", paramType = "query", example = "0"),
            @ApiImplicitParam(name = "start", value = "开始时间", dataType = "Timestamp", paramType = "query", example = "2022-12-09 09:00:00"),
            @ApiImplicitParam(name = "end", value = "结束时间", dataType = "Timestamp", paramType = "query", example = "2022-12-31 23:00:00"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询申请")
    @Parameters({
            @Parameter(name = "uname", description = "用户名", in = ParameterIn.QUERY, example = "员"),
            @Parameter(name = "status", description = "状态", in = ParameterIn.QUERY, example = "0"),
            @Parameter(name = "start", description = "开始时间", in = ParameterIn.QUERY, example = "2022-12-09 09:00:00"),
            @Parameter(name = "end", description = "结束时间", in = ParameterIn.QUERY, example = "2022-12-31 23:00:00"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    public ResponseMsg<Object> selectByPage(String uname, Integer status, Timestamp start, Timestamp end, Integer pageSize, Integer pageIndex, HttpServletRequest req) {
@@ -127,7 +128,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询待审核数")
    @Operation(summary = "查询待审核数")
    @GetMapping(value = "/selectSubmits")
    public ResponseMsg<Object> selectSubmits(HttpServletRequest req) {
        try {
@@ -141,9 +142,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询流程")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "applyid", value = "数据申请ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "查询流程")
    @Parameters({
            @Parameter(name = "applyid", description = "数据申请ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectFlows")
    public ResponseMsg<Object> selectFlows(Integer applyid) {
@@ -157,9 +158,9 @@
    }
    @SysLog()
    @ApiOperation(value = "废弃申请")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "applyid", value = "数据申请ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "废弃申请")
    @Parameters({
            @Parameter(name = "applyid", description = "数据申请ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/updateForDiscard")
    public ResponseMsg<Object> updateForDiscard(Integer applyid, HttpServletRequest req) {
@@ -182,9 +183,9 @@
    }
    @SysLog()
    @ApiOperation(value = "重新提交")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "applyid", value = "数据申请ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "重新提交")
    @Parameters({
            @Parameter(name = "applyid", description = "数据申请ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/updateForResubmit")
    public ResponseMsg<Object> updateForResubmit(Integer applyid, HttpServletRequest req) {
@@ -207,9 +208,9 @@
    }
    @SysLog()
    @ApiOperation(value = "提交流程")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "flowId", value = "申请流程ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "提交流程")
    @Parameters({
            @Parameter(name = "flowId", description = "申请流程ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/updateForSubmit")
    public ResponseMsg<Object> updateForSubmit(Integer flowId, HttpServletRequest req) {
@@ -246,9 +247,9 @@
    }
    @SysLog()
    @ApiOperation(value = "打回流程")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "flowId", value = "申请流程ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "打回流程")
    @Parameters({
            @Parameter(name = "flowId", description = "申请流程ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/updateForReject")
    public ResponseMsg<Object> updateForReject(Integer flowId, HttpServletRequest req) {
@@ -279,9 +280,9 @@
    }
    @SysLog()
    @ApiOperation(value = "下载文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "文件GUID", dataType = "String", paramType = "query")
    @Operation(summary = "下载文件")
    @Parameters({
            @Parameter(name = "guid", description = "文件GUID", in = ParameterIn.QUERY)
    })
    @ResponseBody
    @GetMapping(value = "/downloadFile")
se-system/src/main/java/com/terra/system/controller/show/ComprehensiveController.java
@@ -25,11 +25,14 @@
import com.terra.system.service.sys.AttachService;
import com.terra.system.service.sys.DownlogService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.bind.annotation.*;
@@ -41,7 +44,7 @@
 * ç»¼åˆå±•示
 * @author WWW
 */
@Api(tags = "综合展示\\首页")
@Tag(name = "综合展示\\首页")
@RestController
@RequestMapping("/comprehensive")
public class ComprehensiveController extends ModelController {
@@ -79,9 +82,9 @@
    UploadAttachService uploadAttachService;
    @SysLog()
    @ApiOperation(value = "根据ID查询发布清单")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询发布清单")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectPubById")
    public ResponseMsg<PublishEntity> selectPubById(int id) {
@@ -95,9 +98,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询管线")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "西气东输"),
    @Operation(summary = "查询管线")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "西气东输"),
    })
    @GetMapping(value = "/selectPipelines")
    public ResponseMsg<Object> selectPipelines(String name) {
@@ -111,12 +114,12 @@
    }
    @SysLog()
    @ApiOperation(value = "查询路网")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "x1", value = "X1", dataType = "Double", paramType = "query", example = "116.78999"),
            @ApiImplicitParam(name = "y1", value = "Y1", dataType = "Double", paramType = "query", example = "39.9468"),
            @ApiImplicitParam(name = "x2", value = "X2", dataType = "Double", paramType = "query", example = "116.80458"),
            @ApiImplicitParam(name = "y2", value = "Y2", dataType = "Double", paramType = "query", example = "39.94758")
    @Operation(summary = "查询路网")
    @Parameters({
            @Parameter(name = "x1", description = "X1", in = ParameterIn.QUERY, example = "116.78999"),
            @Parameter(name = "y1", description = "Y1", in = ParameterIn.QUERY, example = "39.9468"),
            @Parameter(name = "x2", description = "X2", in = ParameterIn.QUERY, example = "116.80458"),
            @Parameter(name = "y2", description = "Y2", in = ParameterIn.QUERY, example = "39.94758")
    })
    @GetMapping(value = "/selectRoute")
    public ResponseMsg<Object> selectRoute(double x1, double y1, double x2, double y2) {
@@ -130,7 +133,7 @@
    }
    @SysLog()
    @ApiOperation(value = "上传ShapeFile文件")
    @Operation(summary = "上传ShapeFile文件")
    @ResponseBody
    @PostMapping(value = "/uploadShp", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Object> uploadShp(HttpServletRequest req, HttpServletResponse res) {
@@ -154,9 +157,9 @@
    }
    @SysLog()
    @ApiOperation(value = "下载ShapeFile文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "标绘JSON实体类集合", dataType = "MarkJsonEntity", paramType = "body")
    @Operation(summary = "下载ShapeFile文件")
    @Parameters({
            @Parameter(name = "list", description = "标绘JSON实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/downloadShp", produces = "application/json; charset=UTF-8")
@@ -182,11 +185,11 @@
    }
    @SysLog()
    @ApiOperation(value = "上传文件")
    @Operation(summary = "上传文件")
    @ResponseBody
    @ApiImplicitParams({
            @ApiImplicitParam(name = "tabName", value = "表名", dataType = "String", paramType = "query", example = "lf.sys_style"),
            @ApiImplicitParam(name = "eventid", value = "主键", dataType = "String", paramType = "query", example = "fa25979a5ef8b43ba82a0be35b3fb0d4")
    @Parameters({
            @Parameter(name = "tabName", description = "表名", in = ParameterIn.QUERY, example = "lf.sys_style"),
            @Parameter(name = "eventid", description = "主键", in = ParameterIn.QUERY, example = "fa25979a5ef8b43ba82a0be35b3fb0d4")
    })
    @PostMapping(value = "/uploadFiles")
    public ResponseMsg<Integer> uploadFiles(String tabName, String eventid, @RequestParam("file") MultipartFile[] files, HttpServletRequest req) {
@@ -208,9 +211,9 @@
    }
    @SysLog()
    @ApiOperation(value = "下载文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "文件GUID", dataType = "String", paramType = "query")
    @Operation(summary = "下载文件")
    @Parameters({
            @Parameter(name = "guid", description = "文件GUID", in = ParameterIn.QUERY)
    })
    @RequestMapping(value = "/downloadFile", method = RequestMethod.GET)
    public void downloadFile(String guid, HttpServletRequest req, HttpServletResponse res) {
@@ -236,9 +239,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查看文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "附件Guid", dataType = "String", paramType = "body")
    @Operation(summary = "查看文件")
    @Parameters({
            @Parameter(name = "guid", description = "附件Guid")
    })
    @GetMapping(value = "/downloadForView")
    public void downloadForView(String guid, HttpServletResponse res) {
@@ -246,9 +249,9 @@
    }
    @SysLog()
    @ApiOperation(value = "请求下载")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guids", value = "附件Guid数组", dataType = "String", paramType = "body", allowMultiple = true, example = "e5b6ae0889b88111f13a4b6e048348db,fa4f299e901a0c46e634f8fcc8185c0c")
    @Operation(summary = "请求下载")
    @Parameters({
            @Parameter(name = "guids", description = "附件Guid数组", schema = @Schema(type = "array"), example = "e5b6ae0889b88111f13a4b6e048348db,fa4f299e901a0c46e634f8fcc8185c0c")
    })
    @ResponseBody
    @PostMapping(value = "/downloadReqForGuids")
@@ -268,10 +271,10 @@
    }
    @SysLog()
    @ApiOperation(value = "请求下载")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "tab", value = "表名", dataType = "String", paramType = "body", example = "bd.b_borehole"),
            @ApiImplicitParam(name = "guids", value = "附件Guid数组", dataType = "String", paramType = "body", allowMultiple = true, example = "08e5b4ad-93b8-46f6-adaa-46a6274af4ce,6f94f4f8-6e8d-44e7-8803-3d068d34983f")
    @Operation(summary = "请求下载")
    @Parameters({
            @Parameter(name = "tab", description = "表名", example = "bd.b_borehole"),
            @Parameter(name = "guids", description = "附件Guid数组", schema = @Schema(type = "array"), example = "08e5b4ad-93b8-46f6-adaa-46a6274af4ce,6f94f4f8-6e8d-44e7-8803-3d068d34983f")
    })
    @ResponseBody
    @PostMapping(value = "/downloadReqForTabGuids")
@@ -294,10 +297,10 @@
    }
    @SysLog()
    @ApiOperation(value = "查询文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "tabName", value = "表名", dataType = "String", paramType = "query", example = "lf.sys_style"),
            @ApiImplicitParam(name = "eventid", value = "主键", dataType = "String", paramType = "query", example = "fa25979a5ef8b43ba82a0be35b3fb0d4")
    @Operation(summary = "查询文件")
    @Parameters({
            @Parameter(name = "tabName", description = "表名", in = ParameterIn.QUERY, example = "lf.sys_style"),
            @Parameter(name = "eventid", description = "主键", in = ParameterIn.QUERY, example = "fa25979a5ef8b43ba82a0be35b3fb0d4")
    })
    @GetMapping(value = "/selectFiles")
    public ResponseMsg<List<AttachEntity>> selectFiles(String tabName, String eventid) {
@@ -315,9 +318,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除文件")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deleteFiles(@RequestParam List<Integer> ids) {
se-system/src/main/java/com/terra/system/controller/show/DataLibController.java
@@ -22,12 +22,13 @@
import com.terra.system.service.data.VerService;
import com.terra.system.service.show.DataLibService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -40,7 +41,7 @@
 * èµ„料馆
 * @author WWW
 */
@Api(tags = "综合展示\\资料馆")
@Tag(name = "综合展示\\资料馆")
@RestController
@RequestMapping("/dataLib")
public class DataLibController extends BaseQueryController {
@@ -60,9 +61,9 @@
    VerService verService;
    @SysLog()
    @ApiOperation(value = "根据目录ID查询版本列表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "dirid", value = "目录ID", dataType = "Integer", paramType = "query")
    @Operation(summary = "根据目录ID查询版本列表")
    @Parameters({
            @Parameter(name = "dirid", description = "目录ID", in = ParameterIn.QUERY)
    })
    @GetMapping(value = "/selectVerByDirid")
    public ResponseMsg<List<VerEntity>> selectVerByDirid(Integer dirid) {
@@ -83,14 +84,14 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询元数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "depcode", value = "单位编码", dataType = "String", paramType = "query", example = "00"),
            @ApiImplicitParam(name = "types", value = "资料类别", dataType = "String", paramType = "query", example = "基础测绘,基础地灾,基础勘察,合规数据,管理数据,测绘(ESV),勘察(EGE),地灾(EGD),洞库(EGD)"),
            @ApiImplicitParam(name = "dirs", value = "项目编码", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询元数据")
    @Parameters({
            @Parameter(name = "depcode", description = "单位编码", in = ParameterIn.QUERY, example = "00"),
            @Parameter(name = "types", description = "资料类别", in = ParameterIn.QUERY, example = "基础测绘,基础地灾,基础勘察,合规数据,管理数据,测绘(ESV),勘察(EGE),地灾(EGD),洞库(EGD)"),
            @Parameter(name = "dirs", description = "项目编码", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectMetasForPage")
    public ResponseMsg<Object> selectMetasForPage(String depcode, String types, String dirs, String name, Integer pageSize, Integer pageIndex) {
@@ -115,11 +116,11 @@
    }
    @SysLog()
    @ApiOperation(value = "查询表中数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "元数据ID", dataType = "Integer", paramType = "query", example = "115"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10")
    @Operation(summary = "查询表中数据")
    @Parameters({
            @Parameter(name = "id", description = "元数据ID", in = ParameterIn.QUERY, example = "115"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10")
    })
    @GetMapping(value = "/selectDbData")
    public ResponseMsg<Object> selectDbData(Integer id, Integer pageIndex, Integer pageSize) {
@@ -154,9 +155,9 @@
    }
    @SysLog()
    @ApiOperation(value = "请求元数据下载")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "dr", value = "请求下载实体", dataType = "DownloadReqEntity", paramType = "body")
    @Operation(summary = "请求元数据下载")
    @Parameters({
            @Parameter(name = "dr", description = "请求下载实体")
    })
    @ResponseBody
    @PostMapping(value = "/downloadReq")
@@ -185,10 +186,10 @@
    }
    @SysLog()
    @ApiOperation(value = "查询下载文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "文件GUID", dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "pwd", value = "密码", dataType = "String", paramType = "query")
    @Operation(summary = "查询下载文件")
    @Parameters({
            @Parameter(name = "guid", description = "文件GUID", in = ParameterIn.QUERY),
            @Parameter(name = "pwd", description = "密码", in = ParameterIn.QUERY)
    })
    @GetMapping(value = "/selectDownloadFile")
    public ResponseMsg<Boolean> selectDownloadFile(String guid, String pwd) {
@@ -223,10 +224,10 @@
    }
    @SysLog()
    @ApiOperation(value = "下载文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "文件GUID", dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "pwd", value = "密码", dataType = "String", paramType = "query")
    @Operation(summary = "下载文件")
    @Parameters({
            @Parameter(name = "guid", description = "文件GUID", in = ParameterIn.QUERY),
            @Parameter(name = "pwd", description = "密码", in = ParameterIn.QUERY)
    })
    @ResponseBody
    @GetMapping(value = "/downloadFile")
se-system/src/main/java/com/terra/system/controller/show/ExportController.java
@@ -13,12 +13,13 @@
import com.terra.system.service.show.ExportService;
import com.terra.system.service.sys.DownlogService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -28,7 +29,7 @@
 * åœ¨çº¿åˆ¶å›¾
 * @author WWW
 */
@Api(tags = "综合展示\\在线制图")
@Tag(name = "综合展示\\在线制图")
@RestController
@RequestMapping("/export")
public class ExportController  extends BaseController {
@@ -45,11 +46,11 @@
    DownloadService downloadService;
    @SysLog()
    @ApiOperation(value = "分页查询下载文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询下载文件")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    public ResponseMsg<List<DownloadEntity>> selectPageCountForDownload(String name, Integer pageSize, Integer pageIndex, HttpServletRequest req) {
@@ -76,9 +77,9 @@
    }
    @SysLog()
    @ApiOperation(value = "新建出图")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "在线制图实体类", dataType = "ExportEntity", paramType = "body")
    @Operation(summary = "新建出图")
    @Parameters({
            @Parameter(name = "entity", description = "在线制图实体类")
    })
    @ResponseBody
    @PostMapping(value = "/insertMap", produces = "application/json; charset=UTF-8")
@@ -106,9 +107,9 @@
    }
    @SysLog()
    @ApiOperation(value = "下载出图")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "文件GUID", dataType = "String", paramType = "query")
    @Operation(summary = "下载出图")
    @Parameters({
            @Parameter(name = "guid", description = "文件GUID", in = ParameterIn.QUERY)
    })
    @RequestMapping(value = "/downloadFile", method = RequestMethod.GET)
    public void downloadFile(String guid, HttpServletRequest req, HttpServletResponse res) {
se-system/src/main/java/com/terra/system/controller/show/InquiryController.java
@@ -19,12 +19,13 @@
import com.terra.system.service.data.PublishService;
import com.terra.system.service.show.InquiryService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -34,7 +35,7 @@
 * æŸ¥è¯¢
 * @author WWW
 */
@Api(tags = "综合展示\\查询")
@Tag(name = "综合展示\\查询")
@RestController
@RequestMapping("/inquiry")
public class InquiryController extends BaseQueryController {
@@ -51,7 +52,7 @@
    PublishService publishService;
    @SysLog()
    @ApiOperation(value = "上传Shp文件读取第一条记录的WKT")
    @Operation(summary = "上传Shp文件读取第一条记录的WKT")
    @ResponseBody
    @PostMapping(value = "/uploadShp")
    public ResponseMsg<ShpRecordEntity> uploadShp(HttpServletRequest req, HttpServletResponse res) {
@@ -78,9 +79,9 @@
    }
    @SysLog()
    @ApiOperation(value = "下载瓦片")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "dt", value = "下载瓦片实体类", dataType = "DownloadTileEntity", paramType = "body")
    @Operation(summary = "下载瓦片")
    @Parameters({
            @Parameter(name = "dt", description = "下载瓦片实体类")
    })
    @ResponseBody
    @PostMapping(value = "/downloadTiles")
@@ -115,9 +116,9 @@
    }
    @SysLog()
    @ApiOperation(value = "下载文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "文件GUID", dataType = "String", paramType = "query")
    @Operation(summary = "下载文件")
    @Parameters({
            @Parameter(name = "guid", description = "文件GUID", in = ParameterIn.QUERY)
    })
    @ResponseBody
    @GetMapping(value = "/downloadFile")
se-system/src/main/java/com/terra/system/controller/show/MarkController.java
@@ -10,12 +10,13 @@
import com.terra.system.service.show.MarkService;
import com.terra.system.service.sys.DownlogService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -24,7 +25,7 @@
 * æ ‡ç»˜
 * @author WWW
 */
@Api(tags = "综合展示\\标绘")
@Tag(name = "综合展示\\标绘")
@RestController
@RequestMapping("/mark")
public class MarkController extends BaseController {
@@ -44,10 +45,10 @@
    DownloadService downloadService;
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<MarkEntity>> selectByPageAndCount(Integer pageSize, Integer pageIndex, HttpServletRequest req) {
@@ -74,9 +75,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<MarkEntity> selectById(int id) {
@@ -90,9 +91,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "MarkEntity", paramType = "body")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insert(@RequestBody MarkEntity entity, HttpServletRequest req) {
@@ -111,9 +112,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "MarkEntity", paramType = "body")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> inserts(@RequestBody List<MarkEntity> list, HttpServletRequest req) {
@@ -134,9 +135,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int id) {
@@ -150,9 +151,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) {
@@ -170,9 +171,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "MarkEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
@@ -192,9 +193,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "MarkEntity", paramType = "body")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8")
se-system/src/main/java/com/terra/system/controller/show/ModelController.java
@@ -8,11 +8,12 @@
import com.terra.system.helper.StringHelper;
import com.terra.system.service.show.ModelService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -29,11 +30,11 @@
    TokenService tokenService;
    @SysLog()
    @ApiOperation(value = "分页查询模型并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "layerid", value = "图层ID", dataType = "Integer", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询模型并返回记录数")
    @Parameters({
            @Parameter(name = "layerid", description = "图层ID", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectModelByPageAndCount")
    public ResponseMsg<List<ModelEntity>> selectModelByPageAndCount(Integer layerid, Integer pageSize, Integer pageIndex) {
@@ -56,9 +57,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询模型")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询模型")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectModelById")
    public ResponseMsg<ModelEntity> selectModelById(int id) {
@@ -72,10 +73,10 @@
    }
    @SysLog()
    @ApiOperation(value = "根据Guid查询模型")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "layerid", value = "图层ID", dataType = "Integer", paramType = "query", example = ""),
            @ApiImplicitParam(name = "modelid", value = "模型ID", dataType = "String", paramType = "query", example = "")
    @Operation(summary = "根据Guid查询模型")
    @Parameters({
            @Parameter(name = "layerid", description = "图层ID", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "modelid", description = "模型ID", in = ParameterIn.QUERY, example = "")
    })
    @GetMapping(value = "/selectModelByGuid")
    public ResponseMsg<ModelEntity> selectModelByGuid(Integer layerid, String modelid) {
@@ -93,9 +94,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一个模型")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "ModelEntity", paramType = "body")
    @Operation(summary = "插入一个模型")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insertModel", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertModel(@RequestBody ModelEntity entity, HttpServletRequest req) {
@@ -114,9 +115,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多个模型")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "ModelEntity", paramType = "body")
    @Operation(summary = "插入多个模型")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @PostMapping(value = "/insertModels", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertModels(@RequestBody List<ModelEntity> list, HttpServletRequest req) {
@@ -137,9 +138,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一个模型")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一个模型")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/deleteModel")
    public ResponseMsg<Integer> deleteModel(int id) {
@@ -153,9 +154,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多个模型")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除多个模型")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deleteModels")
    public ResponseMsg<Integer> deleteModels(@RequestParam List<Integer> ids) {
@@ -173,9 +174,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一个模型")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "ModelEntity", paramType = "body")
    @Operation(summary = "更新一个模型")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/updateModel", produces = "application/json; charset=UTF-8")
@@ -195,9 +196,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多个模型")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "ModelEntity", paramType = "body")
    @Operation(summary = "更新多个模型")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/updateModels", produces = "application/json; charset=UTF-8")
se-system/src/main/java/com/terra/system/controller/sys/ArgsController.java
@@ -7,12 +7,13 @@
import com.terra.system.entity.sys.UserEntity;
import com.terra.system.service.sys.ArgsService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -21,7 +22,7 @@
 * å‚数设置
 * @author WWW
 */
@Api(tags = "运维管理\\系统配置")
@Tag(name = "运维管理\\系统配置")
@RestController
@RequestMapping("/args")
public class ArgsController extends BaseController {
@@ -32,9 +33,9 @@
    TokenService tokenService;
    @SysLog()
    @ApiOperation(value = "查询记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", required = false, example = "有效期")
    @Operation(summary = "查询记录数")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, required = false, example = "有效期")
    })
    @GetMapping({"/selectCount"})
    public ResponseMsg<Integer> selectCount(String name) {
@@ -48,11 +49,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "有效期"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "有效期"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    public ResponseMsg<List<ArgsEntity>> selectByPage(String name, Integer pageSize, Integer pageIndex) {
@@ -70,11 +71,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "有效期"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "有效期"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<ArgsEntity>> selectByPageAndCount(String name, Integer pageSize, Integer pageIndex) {
@@ -95,7 +96,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectAll")
    public ResponseMsg<List<ArgsEntity>> selectAll() {
        try {
@@ -108,9 +109,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<ArgsEntity> selectById(int id) {
@@ -124,9 +125,9 @@
    }
    /*@SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "ArgsEntity", paramType = "body")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", dataType = "ArgsEntity")
    })
    @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insert(@RequestBody ArgsEntity entity, HttpServletRequest req) {
@@ -145,9 +146,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "ArgsEntity", paramType = "body")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合", dataType = "ArgsEntity")
    })
    @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> inserts(@RequestBody List<ArgsEntity> list, HttpServletRequest req) {
@@ -168,9 +169,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int id) {
@@ -184,9 +185,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) {
@@ -204,9 +205,9 @@
    }*/
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "ArgsEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
@@ -238,9 +239,9 @@
    }
    /*@SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "ArgsEntity", paramType = "body")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合", dataType = "ArgsEntity")
    })
    @ResponseBody
    @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8")
se-system/src/main/java/com/terra/system/controller/sys/AuthController.java
@@ -8,12 +8,14 @@
import com.terra.system.service.all.PermsService;
import com.terra.system.service.sys.AuthService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -23,7 +25,7 @@
 * @author SWS
 * @date 2022-09.28
 */
@Api(tags = "运维管理\\权限管理")
@Tag(name = "运维管理\\权限管理")
@RestController
@RequestMapping("/auth")
public class AuthController extends BaseController {
@@ -37,9 +39,9 @@
    PermsService permsService;
    @SysLog()
    @ApiOperation(value = "查询记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", required = false, example = "sys_auth")
    @Operation(summary = "查询记录数")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, required = false, example = "sys_auth")
    })
    @GetMapping({"/selectCount"})
    public ResponseMsg<Integer> selectCount(String name) {
@@ -53,11 +55,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "sys_auth"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "sys_auth"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    public ResponseMsg<List<AuthEntity>> selectByPage(String name, Integer pageSize, Integer pageIndex) {
@@ -73,11 +75,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<AuthEntity>> selectByPageAndCount(String name, Integer pageSize, Integer pageIndex) {
@@ -100,11 +102,11 @@
    }
    @SysLog()
    @ApiOperation(value = "根据菜单分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "menuid", value = "菜单ID", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据菜单分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "menuid", description = "菜单ID", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageForMenu")
    public ResponseMsg<List<AuthEntity>> selectByPageForMenu(Integer menuid, Integer pageSize, Integer pageIndex) {
@@ -127,9 +129,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "AuthEntity", paramType = "body", example = "")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @PostMapping(value = "/insertAuth", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertAuth(@RequestBody AuthEntity entity, HttpServletRequest req) {
@@ -151,9 +153,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "List<AuthEntity>", paramType = "body", example = "")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合", schema = @Schema(type = "array"), example = "")
    })
    @PostMapping(value = "/insertAuths", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertAuths(@RequestBody List<AuthEntity> list, HttpServletRequest req) {
@@ -177,9 +179,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/deleteAuth")
    public ResponseMsg<Integer> deleteAuth(int id) {
@@ -196,9 +198,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "List<Integer>", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deleteAuths")
    public ResponseMsg<Integer> deleteAuths(@RequestParam List<Integer> ids) {
@@ -219,9 +221,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "LoginEntity", paramType = "body", example = "")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", schema = @Schema(type = "array"), example = "")
    })
    @ResponseBody
    @PostMapping(value = "/updateAuth", produces = "application/json; charset=UTF-8")
@@ -244,9 +246,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectAuth")
    public ResponseMsg<AuthEntity> selectAuth(int id) {
@@ -260,7 +262,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectAuthAll")
    public ResponseMsg<List<AuthEntity>> selectAuthAll() {
        try {
se-system/src/main/java/com/terra/system/controller/sys/BlacklistController.java
@@ -7,12 +7,13 @@
import com.terra.system.entity.sys.UserEntity;
import com.terra.system.service.sys.BlacklistService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -21,7 +22,7 @@
 * é»‘名单
 * @author WWW
 */
@Api(tags = "运维管理\\黑名单")
@Tag(name = "运维管理\\黑名单")
@RestController
@RequestMapping("/blacklist")
public class BlacklistController extends BaseController {
@@ -32,10 +33,10 @@
    TokenService tokenService;
    @SysLog()
    @ApiOperation(value = "查询记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ip", value = "IP地址", dataType = "String", paramType = "query", required = false, example = "192."),
            @ApiImplicitParam(name = "type", value = "类别", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "查询记录数")
    @Parameters({
            @Parameter(name = "ip", description = "IP地址", in = ParameterIn.QUERY, required = false, example = "192."),
            @Parameter(name = "type", description = "类别", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping({"/selectCount"})
    public ResponseMsg<Integer> selectCount(String ip, Integer type) {
@@ -49,12 +50,12 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ip", value = "IP地址", dataType = "String", paramType = "query", example = "192."),
            @ApiImplicitParam(name = "type", value = "类别", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询")
    @Parameters({
            @Parameter(name = "ip", description = "IP地址", in = ParameterIn.QUERY, example = "192."),
            @Parameter(name = "type", description = "类别", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    public ResponseMsg<List<BlacklistEntity>> selectByPage(String ip, Integer type, Integer pageSize, Integer pageIndex) {
@@ -72,12 +73,12 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ip", value = "IP地址", dataType = "String", paramType = "query", required = false, example = "192."),
            @ApiImplicitParam(name = "type", value = "类别", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "ip", description = "IP地址", in = ParameterIn.QUERY, required = false, example = "192."),
            @Parameter(name = "type", description = "类别", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<BlacklistEntity>> selectByPageAndCount(String ip, Integer type, Integer pageSize, Integer pageIndex) {
@@ -98,7 +99,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectAll")
    public ResponseMsg<List<BlacklistEntity>> selectAll() {
        try {
@@ -111,9 +112,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<BlacklistEntity> selectById(int id) {
@@ -127,9 +128,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "BlacklistEntity", paramType = "body")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insert(@RequestBody BlacklistEntity entity, HttpServletRequest req) {
@@ -148,9 +149,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "BlacklistEntity", paramType = "body")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> inserts(@RequestBody List<BlacklistEntity> list, HttpServletRequest req) {
@@ -171,9 +172,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int id) {
@@ -187,9 +188,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) {
@@ -207,9 +208,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "BlacklistEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
@@ -229,9 +230,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "BlacklistEntity", paramType = "body")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8")
se-system/src/main/java/com/terra/system/controller/sys/CtrlController.java
@@ -6,9 +6,12 @@
import com.terra.system.entity.all.ResponseMsg;
import com.terra.system.entity.sys.ResEntity;
import com.terra.system.service.all.ScheduleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@@ -21,7 +24,7 @@
 * @author WWW
 * @date   2022-09-21
 */
@Api(tags = "运维管理\\控制台")
@Tag(name = "运维管理\\控制台")
@RestController
@RequestMapping("/ctrl")
public class CtrlController extends BaseController {
@@ -29,7 +32,7 @@
    private ScheduleService scheduleService;
    @SysLog()
    @ApiOperation(value = "查询服务器状态")
    @Operation(summary = "查询服务器状态")
    @GetMapping(value = "/selectServerStatus")
    public ResponseMsg<JSONObject> selectServerStatus() {
        try {
@@ -42,7 +45,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询Cpu信息")
    @Operation(summary = "查询Cpu信息")
    @GetMapping(value = "/selectCpuInfo")
    public ResponseMsg<JSONObject> selectCpuInfo() {
        try {
@@ -55,7 +58,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询内存信息")
    @Operation(summary = "查询内存信息")
    @GetMapping(value = "/selectMemInfo")
    public ResponseMsg<JSONObject> selectMemInfo() {
        try {
@@ -68,7 +71,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询在线用户")
    @Operation(summary = "查询在线用户")
    @GetMapping(value = "/selectOnlineUsers")
    public ResponseMsg<List<JSONObject>> selectOnlineUsers() {
        try {
@@ -81,7 +84,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询服务资源状态")
    @Operation(summary = "查询服务资源状态")
    @GetMapping(value = "/selectResStatus")
    public ResponseMsg<List<ResEntity>> selectResStatus() {
        try {
se-system/src/main/java/com/terra/system/controller/sys/DepController.java
@@ -8,12 +8,13 @@
import com.terra.system.helper.StringHelper;
import com.terra.system.service.sys.DepService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -23,7 +24,7 @@
 * @author sws
 * @date   2022-09-23
 */
@Api(tags = "运维管理\\单位管理")
@Tag(name = "运维管理\\单位管理")
@RestController
@RequestMapping("/dep")
public class DepController extends BaseController {
@@ -34,9 +35,9 @@
    TokenService tokenService;
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "DepEntity", paramType = "body", example = "")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @PostMapping(value = "/insertDep", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertDep(@RequestBody DepEntity entity, HttpServletRequest req) {
@@ -55,9 +56,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "DepEntity", paramType = "body", example = "")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合", example = "")
    })
    @PostMapping(value = "/insertDes", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertDes(@RequestBody List<DepEntity> list, HttpServletRequest req) {
@@ -78,9 +79,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/deleteDep")
    public ResponseMsg<Integer> deleteDep(int id) {
@@ -94,9 +95,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/deleteDeps")
    public ResponseMsg<Integer> deleteDeps(@RequestParam List<Integer> ids) {
@@ -114,9 +115,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "DepEntity", paramType = "body", example = "")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @ResponseBody
    @PostMapping(value = "/updateDep", produces = "application/json; charset=UTF-8")
@@ -136,9 +137,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "DepEntity", paramType = "body")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/updateDeps", produces = "application/json; charset=UTF-8")
@@ -160,9 +161,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectDep")
    public ResponseMsg<DepEntity> selectDep(int id) {
@@ -175,7 +176,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有数据")
    @Operation(summary = "查询所有数据")
    @GetMapping(value = "/selectDepAll")
    public ResponseMsg<List<DepEntity>> selectDepAll() {
        try {
@@ -187,9 +188,9 @@
    }
    @SysLog()
    @ApiOperation(value = "递归查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "单位名称", dataType = "String", paramType = "query", required = false, example = "中国xxx工程有限公司")
    @Operation(summary = "递归查询")
    @Parameters({
            @Parameter(name = "name", description = "单位名称", in = ParameterIn.QUERY, required = false, example = "中国xxx工程有限公司")
    })
    @GetMapping(value = "/selectDepRecursive")
    public ResponseMsg<List<DepEntity>> selectDepRecursive(String name) {
se-system/src/main/java/com/terra/system/controller/sys/DownlogController.java
@@ -6,12 +6,13 @@
import com.terra.system.entity.sys.DownlogEntity;
import com.terra.system.service.sys.DownlogService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import java.sql.Timestamp;
import java.util.List;
@@ -20,7 +21,7 @@
 * ä¸‹è½½æ—¥å¿—
 * @author WWW
 */
@Api(tags = "运维管理\\下载日志")
@Tag(name = "运维管理\\下载日志")
@RestController
@RequestMapping("/downlog")
public class DownlogController extends BaseController {
@@ -31,14 +32,14 @@
    TokenService tokenService;
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "uname", value = "用户名", dataType = "String", paramType = "query", example = "员"),
            @ApiImplicitParam(name = "type", value = "类型", dataType = "Integer", paramType = "query", example = "3"),
            @ApiImplicitParam(name = "start", value = "开始时间", dataType = "Timestamp", paramType = "query", example = "2022-12-09 09:00:00"),
            @ApiImplicitParam(name = "end", value = "结束时间", dataType = "Timestamp", paramType = "query", example = "2022-12-25 17:00:00"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "uname", description = "用户名", in = ParameterIn.QUERY, example = "员"),
            @Parameter(name = "type", description = "类型", in = ParameterIn.QUERY, example = "3"),
            @Parameter(name = "start", description = "开始时间", in = ParameterIn.QUERY, example = "2022-12-09 09:00:00"),
            @Parameter(name = "end", description = "结束时间", in = ParameterIn.QUERY, example = "2022-12-25 17:00:00"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<Object> selectByPageAndCount(String uname, Integer type, Timestamp start, Timestamp end, Integer pageSize, Integer pageIndex) {
se-system/src/main/java/com/terra/system/controller/sys/LayerController.java
@@ -8,17 +8,18 @@
import com.terra.system.service.all.PermsService;
import com.terra.system.service.sys.LayerService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@Api(tags = "运维管理\\图层管理")
@Tag(name = "运维管理\\图层管理")
@RestController
@SuppressWarnings("ALL")
@RequestMapping("/layer")
@@ -33,11 +34,11 @@
    PermsService permsService;
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<LayerEntity>> selectByPageAndCount(String name, Integer pageSize, Integer pageIndex) {
@@ -60,7 +61,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectAll")
    public ResponseMsg<List<LayerEntity>> selectAll(Integer flag) {
        try {
@@ -73,9 +74,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<LayerEntity> selectById(int id) {
@@ -89,9 +90,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "LayerEntity", paramType = "body")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insert(@RequestBody LayerEntity entity, HttpServletRequest req) {
@@ -111,9 +112,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "LayerEntity", paramType = "body")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> inserts(@RequestBody List<LayerEntity> list, HttpServletRequest req) {
@@ -135,9 +136,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int id) {
@@ -152,9 +153,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) {
@@ -173,9 +174,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "LayerEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
@@ -196,9 +197,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "LayerEntity", paramType = "body")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8")
se-system/src/main/java/com/terra/system/controller/sys/LoginController.java
@@ -7,12 +7,14 @@
import com.terra.system.entity.sys.UserEntity;
import com.terra.system.service.sys.LoginService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.sql.Timestamp;
@@ -23,7 +25,7 @@
 * @author SWS
 * @date 2022-09.28
 */
@Api(tags = "运维管理\\登录日志")
@Tag(name = "运维管理\\登录日志")
@RestController
@RequestMapping("/login")
public class LoginController extends BaseController {
@@ -34,12 +36,12 @@
    TokenService tokenService;
    @SysLog()
    @ApiOperation(value = "查询记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "uname", value = "用户名", dataType = "String", paramType = "query", example = "管理员"),
            @ApiImplicitParam(name = "type", value = "类型", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "start", value = "开始时间", dataType = "Timestamp", paramType = "query", example = "2022-10-09 09:00:00"),
            @ApiImplicitParam(name = "end", value = "结束时间", dataType = "Timestamp", paramType = "query", example = "2022-10-10 17:00:00")
    @Operation(summary = "查询记录数")
    @Parameters({
            @Parameter(name = "uname", description = "用户名", in = ParameterIn.QUERY, example = "管理员"),
            @Parameter(name = "type", description = "类型", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "start", description = "开始时间", in = ParameterIn.QUERY, example = "2022-10-09 09:00:00"),
            @Parameter(name = "end", description = "结束时间", in = ParameterIn.QUERY, example = "2022-10-10 17:00:00")
    })
    @GetMapping({"/selectCount"})
    public ResponseMsg<Integer> selectCount(String uname, Integer type, Timestamp start, Timestamp end) {
@@ -53,14 +55,14 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "uname", value = "用户名", dataType = "String", paramType = "query", example = "管理员"),
            @ApiImplicitParam(name = "type", value = "类型", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "start", value = "开始时间", dataType = "Timestamp", paramType = "query", example = "2022-10-09 09:00:00"),
            @ApiImplicitParam(name = "end", value = "结束时间", dataType = "Timestamp", paramType = "query", example = "2022-10-10 17:00:00"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询")
    @Parameters({
            @Parameter(name = "uname", description = "用户名", in = ParameterIn.QUERY, example = "管理员"),
            @Parameter(name = "type", description = "类型", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "start", description = "开始时间", in = ParameterIn.QUERY, example = "2022-10-09 09:00:00"),
            @Parameter(name = "end", description = "结束时间", in = ParameterIn.QUERY, example = "2022-10-10 17:00:00"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    public ResponseMsg<List<LoginEntity>> selectByPage(String uname, Integer type, Timestamp start, Timestamp end, Integer pageSize, Integer pageIndex) {
@@ -77,14 +79,14 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "uname", value = "用户名", dataType = "String", paramType = "query", example = "管理员"),
            @ApiImplicitParam(name = "type", value = "类型", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "start", value = "开始时间", dataType = "Timestamp", paramType = "query", example = "2022-10-09 09:00:00"),
            @ApiImplicitParam(name = "end", value = "结束时间", dataType = "Timestamp", paramType = "query", example = "2022-10-10 17:00:00"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "uname", description = "用户名", in = ParameterIn.QUERY, example = "管理员"),
            @Parameter(name = "type", description = "类型", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "start", description = "开始时间", in = ParameterIn.QUERY, example = "2022-10-09 09:00:00"),
            @Parameter(name = "end", description = "结束时间", in = ParameterIn.QUERY, example = "2022-10-10 17:00:00"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<LoginEntity>> selectByPageAndCount(String uname, Integer type, Timestamp start, Timestamp end, Integer pageSize, Integer pageIndex) {
@@ -107,9 +109,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "LoginEntity", paramType = "body", example = "")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @PostMapping(value = "/insertLogin", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertLogin(@RequestBody LoginEntity entity, HttpServletRequest req) {
@@ -128,9 +130,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "List<LoginEntity>", paramType = "body", example = "")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合", schema = @Schema(type = "array"), example = "")
    })
    @PostMapping(value = "/insertLogins", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertLogins(@RequestBody List<LoginEntity> list, HttpServletRequest req) {
@@ -151,9 +153,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/deleteLogin")
    public ResponseMsg<Integer> deleteLogin(int id) {
@@ -167,9 +169,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "List<Integer>", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deleteLogins")
    public ResponseMsg<Integer> deleteLogins(@RequestParam List<Integer> ids) {
@@ -185,9 +187,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "LoginEntity", paramType = "body", example = "")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @ResponseBody
    @PostMapping(value = "/updateLogin", produces = "application/json; charset=UTF-8")
@@ -207,9 +209,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectLogin")
    public ResponseMsg<LoginEntity> selectLogin(int id) {
@@ -223,7 +225,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectLoginAll")
    public ResponseMsg<List<LoginEntity>> selectLoginAll() {
        try {
se-system/src/main/java/com/terra/system/controller/sys/MenuAuthController.java
@@ -8,12 +8,13 @@
import com.terra.system.service.all.PermsService;
import com.terra.system.service.sys.MenuAuthService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -22,7 +23,7 @@
 * èœå•-权限
 * @author WWW
 */
@Api(tags = "运维管理\\菜单权限")
@Tag(name = "运维管理\\菜单权限")
@RestController
@RequestMapping("/menuAuth")
public class MenuAuthController extends BaseController {
@@ -36,9 +37,9 @@
    PermsService permsService;
    @SysLog()
    @ApiOperation(value = "查询记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "menuid", value = "菜单ID", dataType = "Integer", paramType = "query", required = false, example = "")
    @Operation(summary = "查询记录数")
    @Parameters({
            @Parameter(name = "menuid", description = "菜单ID", in = ParameterIn.QUERY, required = false, example = "")
    })
    @GetMapping({"/selectCount"})
    public ResponseMsg<Integer> selectCount(Integer menuid) {
@@ -52,11 +53,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "menuid", value = "菜单ID", dataType = "Integer", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询")
    @Parameters({
            @Parameter(name = "menuid", description = "菜单ID", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    public ResponseMsg<List<MenuAuthEntity>> selectByPage(Integer menuid, Integer pageSize, Integer pageIndex) {
@@ -74,11 +75,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "menuid", value = "菜单ID", dataType = "Integer", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "menuid", description = "菜单ID", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<MenuAuthEntity>> selectByPageAndCount(Integer menuid, Integer pageSize, Integer pageIndex) {
@@ -99,12 +100,12 @@
    }
    @SysLog()
    @ApiOperation(value = "根据角色ID+菜单ID分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "roleid", value = "角色ID", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "menuid", value = "菜单ID", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据角色ID+菜单ID分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "roleid", description = "角色ID", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "menuid", description = "菜单ID", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageForRole")
    public ResponseMsg<List<MenuAuthEntity>> selectByPageForRole(Integer roleid, Integer menuid, Integer pageSize, Integer pageIndex) {
@@ -113,12 +114,12 @@
                return fail("每页页数或分页数小于1", null);
            }
            int count = menuAuthService.selectCountForRole(roleid,  menuid);
            int count = menuAuthService.selectCountForRole(roleid, menuid);
            if (count == 0) {
                return success(0, null);
            }
            List<MenuAuthEntity> rs = menuAuthService.selectByPageForRole(roleid,  menuid, pageSize, pageSize * (pageIndex - 1));
            List<MenuAuthEntity> rs = menuAuthService.selectByPageForRole(roleid, menuid, pageSize, pageSize * (pageIndex - 1));
            return success(count, rs);
        } catch (Exception ex) {
@@ -127,7 +128,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectAll")
    public ResponseMsg<List<MenuAuthEntity>> selectAll() {
        try {
@@ -140,9 +141,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<MenuAuthEntity> selectById(int id) {
@@ -156,9 +157,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "MenuAuthEntity", paramType = "body")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insert(@RequestBody MenuAuthEntity entity, HttpServletRequest req) {
@@ -180,9 +181,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "MenuAuthEntity", paramType = "body")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> inserts(@RequestBody List<MenuAuthEntity> list, HttpServletRequest req) {
@@ -206,9 +207,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int id) {
@@ -225,9 +226,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) {
@@ -248,9 +249,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "MenuAuthEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
@@ -273,9 +274,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "MenuAuthEntity", paramType = "body")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8")
se-system/src/main/java/com/terra/system/controller/sys/MenuController.java
@@ -9,12 +9,14 @@
import com.terra.system.service.all.PermsService;
import com.terra.system.service.sys.MenuService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -24,7 +26,7 @@
 * @author sws
 * @date   2022-09-23
 */
@Api(tags= "运维管理\\菜单管理")
@Tag(name= "运维管理\\菜单管理")
@RestController
@RequestMapping("/menu")
public class MenuController extends BaseController {
@@ -38,9 +40,9 @@
    PermsService permsService;
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "MenusEntity", paramType = "body", example = "")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @PostMapping(value = "/insertMenu", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertMenu(@RequestBody MenuEntity entity, HttpServletRequest req) {
@@ -62,9 +64,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "MenusEntity", paramType = "body", example = "")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合", example = "")
    })
    @PostMapping(value = "/insertMenus", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertMenus(@RequestBody List<MenuEntity> list, HttpServletRequest req) {
@@ -88,9 +90,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/deleteMenu")
    public ResponseMsg<Integer> deleteMenu(int id) {
@@ -107,9 +109,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "List<Integer>", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deleteMenus")
    public ResponseMsg<Integer> deleteMenus(@RequestParam List<Integer> ids) {
@@ -130,9 +132,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "MenusEntity", paramType = "body", example = "")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @ResponseBody
    @PostMapping(value = "/updateMenu", produces = "application/json; charset=UTF-8")
@@ -155,9 +157,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "MenusEntity", paramType = "body", example = "")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合", example = "")
    })
    @ResponseBody
    @PostMapping(value = "/updateMenus", produces = "application/json; charset=UTF-8")
@@ -182,9 +184,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectMenu")
    public ResponseMsg<MenuEntity> selectMenu(int id) {
@@ -198,7 +200,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectMenuAll")
    public ResponseMsg<List<MenuEntity>> selectMenuAll() {
        try {
@@ -211,9 +213,9 @@
    }
    @SysLog()
    @ApiOperation(value = "递归查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "菜单名称", dataType = "String", paramType = "query", required = false, example = "管道基础大数据平台")
    @Operation(summary = "递归查询")
    @Parameters({
            @Parameter(name = "name", description = "菜单名称", in = ParameterIn.QUERY, required = false, example = "管道基础大数据平台")
    })
    @GetMapping(value = "/selectMenuRecursive")
    public ResponseMsg<Object> selectMenuRecursive(String name) {
se-system/src/main/java/com/terra/system/controller/sys/OperateController.java
@@ -7,12 +7,14 @@
import com.terra.system.entity.sys.UserEntity;
import com.terra.system.service.sys.OperateService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.sql.Timestamp;
@@ -23,7 +25,7 @@
 * @author SWS
 * @date 2022-09.28
 */
@Api(tags = "运维管理\\操作日志")
@Tag(name = "运维管理\\操作日志")
@RestController
@RequestMapping("/operate")
public class OperateController extends BaseController {
@@ -34,12 +36,12 @@
    TokenService tokenService;
    @SysLog()
    @ApiOperation(value = "查询记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "uname", value = "用户名", dataType = "String", paramType = "query", example = "管理员"),
            @ApiImplicitParam(name = "type", value = "类型", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "start", value = "开始时间", dataType = "Timestamp", paramType = "query", example = "2022-10-09 09:00:00"),
            @ApiImplicitParam(name = "end", value = "结束时间", dataType = "Timestamp", paramType = "query", example = "2022-10-10 17:00:00")
    @Operation(summary = "查询记录数")
    @Parameters({
            @Parameter(name = "uname", description = "用户名", in = ParameterIn.QUERY, example = "管理员"),
            @Parameter(name = "type", description = "类型", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "start", description = "开始时间", in = ParameterIn.QUERY, example = "2022-10-09 09:00:00"),
            @Parameter(name = "end", description = "结束时间", in = ParameterIn.QUERY, example = "2022-10-10 17:00:00")
    })
    @GetMapping({"/selectCount"})
    public ResponseMsg<Integer> selectCount(String uname, Integer type, Timestamp start, Timestamp end) {
@@ -53,14 +55,14 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "uname", value = "用户名", dataType = "String", paramType = "query", example = "管理员"),
            @ApiImplicitParam(name = "type", value = "类型", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "start", value = "开始时间", dataType = "Timestamp", paramType = "query", example = "2022-10-09 09:00:00"),
            @ApiImplicitParam(name = "end", value = "结束时间", dataType = "Timestamp", paramType = "query", example = "2022-10-10 17:00:00"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询")
    @Parameters({
            @Parameter(name = "uname", description = "用户名", in = ParameterIn.QUERY, example = "管理员"),
            @Parameter(name = "type", description = "类型", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "start", description = "开始时间", in = ParameterIn.QUERY, example = "2022-10-09 09:00:00"),
            @Parameter(name = "end", description = "结束时间", in = ParameterIn.QUERY, example = "2022-10-10 17:00:00"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    public ResponseMsg<List<OperateEntity>> selectByPage(String uname, Integer type, Timestamp start, Timestamp end, Integer pageSize, Integer pageIndex) {
@@ -76,14 +78,14 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "uname", value = "用户名", dataType = "String", paramType = "query", example = "管理员"),
            @ApiImplicitParam(name = "type", value = "类型", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "start", value = "开始时间", dataType = "Timestamp", paramType = "query", example = "2022-10-09 09:00:00"),
            @ApiImplicitParam(name = "end", value = "结束时间", dataType = "Timestamp", paramType = "query", example = "2022-10-10 17:00:00"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "uname", description = "用户名", in = ParameterIn.QUERY, example = "管理员"),
            @Parameter(name = "type", description = "类型", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "start", description = "开始时间", in = ParameterIn.QUERY, example = "2022-10-09 09:00:00"),
            @Parameter(name = "end", description = "结束时间", in = ParameterIn.QUERY, example = "2022-10-10 17:00:00"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<OperateEntity>> selectByPageAndCount(String uname, Integer type, Timestamp start, Timestamp end, Integer pageSize, Integer pageIndex) {
@@ -106,9 +108,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "OperateEntity", paramType = "body", example = "")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @PostMapping(value = "/insertOperate", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertOperate(@RequestBody OperateEntity entity, HttpServletRequest req) {
@@ -127,9 +129,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "List<OperateEntity>", paramType = "body", example = "")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合", schema = @Schema(type = "array"), example = "")
    })
    @PostMapping(value = "/insertOperates", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertOperates(@RequestBody List<OperateEntity> list, HttpServletRequest req) {
@@ -150,9 +152,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/deleteOperate")
    public ResponseMsg<Integer> deleteOperate(int id) {
@@ -166,9 +168,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "List<Integer>", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deleteOperates")
    public ResponseMsg<Integer> deleteOperates(@RequestParam List<Integer> ids) {
@@ -184,9 +186,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "OperateEntity", paramType = "body", example = "")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @ResponseBody
    @PostMapping(value = "/updateOperate", produces = "application/json; charset=UTF-8")
@@ -206,9 +208,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectOperate")
    public ResponseMsg<OperateEntity> selectOperate(int id) {
@@ -222,7 +224,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectOperateAll")
    public ResponseMsg<List<OperateEntity>> selectOperateAll() {
        try {
se-system/src/main/java/com/terra/system/controller/sys/ReportController.java
@@ -8,10 +8,11 @@
import com.terra.system.service.all.UploadAttachService;
import com.terra.system.service.sys.ReportService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.bind.annotation.*;
@@ -24,7 +25,7 @@
 * æŠ¥å‘Šæ¨¡æ¿
 * @author WWW
 */
@Api(tags = "运维管理\\模板管理")
@Tag(name = "运维管理\\模板管理")
@RestController
@RequestMapping("/report")
public class ReportController extends BaseController {
@@ -40,11 +41,11 @@
    private final static String TAB_NAME = "lf.sys_report";
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<ReportEntity>> selectByPageAndCount(String name, Integer pageSize, Integer pageIndex) {
@@ -67,9 +68,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<ReportEntity> selectById(int id) {
@@ -83,9 +84,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "ReportEntity", paramType = "body")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insert(@RequestBody ReportEntity entity, HttpServletRequest req) {
@@ -104,9 +105,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int id) {
@@ -120,9 +121,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) {
@@ -140,9 +141,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "ReportEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
@@ -162,7 +163,7 @@
    }
    @SysLog()
    @ApiOperation(value = "上传文件")
    @Operation(summary = "上传文件")
    @ResponseBody
    @PostMapping(value = "/upload")
    public ResponseMsg<String> upload(@RequestParam("file") MultipartFile file, HttpServletRequest req) {
@@ -172,9 +173,9 @@
    }
    @SysLog()
    @ApiOperation(value = "下载文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "附件Guid", dataType = "String", paramType = "body")
    @Operation(summary = "下载文件")
    @Parameters({
            @Parameter(name = "guid", description = "附件Guid")
    })
    @GetMapping(value = "/download")
    public void download(String guid, HttpServletResponse res) {
se-system/src/main/java/com/terra/system/controller/sys/ResController.java
@@ -10,11 +10,13 @@
import com.terra.system.service.all.UploadAttachService;
import com.terra.system.service.sys.ResService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.bind.annotation.*;
@@ -27,7 +29,7 @@
 * @author SWS
 * @date 2022-09.28
 */
@Api(tags = "运维管理\\资源管理")
@Tag(name = "运维管理\\资源管理")
@RestController
@RequestMapping("/res")
public class ResController extends BaseController {
@@ -46,15 +48,15 @@
    private final static String TAB_NAME = "lf.sys_res";
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "status", value = "状态", dataType = "Integer", paramType = "query", example = ""),
            @ApiImplicitParam(name = "category", value = "服务类别", dataType = "Integer", paramType = "query", example = ""),
            @ApiImplicitParam(name = "type", value = "服务类型", dataType = "Integer", paramType = "query", example = ""),
            @ApiImplicitParam(name = "data", value = "数据类型", dataType = "Integer", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "status", description = "状态", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "category", description = "服务类别", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "type", description = "服务类型", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "data", description = "数据类型", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<ResEntity>> selectByPageAndCount(String name, Integer status, Integer category, Integer type, Integer data, Integer pageSize, Integer pageIndex) {
@@ -77,11 +79,11 @@
    }
    @SysLog()
    @ApiOperation(value = "根据角色分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "roleid", value = "角色ID", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据角色分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "roleid", description = "角色ID", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageForRole")
    public ResponseMsg<List<ResEntity>> selectByPageForRole(Integer roleid, Integer pageSize, Integer pageIndex) {
@@ -104,7 +106,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectAll")
    public ResponseMsg<List<ResEntity>> selectAll() {
        try {
@@ -117,9 +119,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<ResEntity> selectById(int id) {
@@ -133,9 +135,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "ResEntity", paramType = "body")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insert(@RequestBody ResEntity entity, HttpServletRequest req) {
@@ -156,9 +158,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "ResEntity", paramType = "body")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> inserts(@RequestBody List<ResEntity> list, HttpServletRequest req) {
@@ -181,9 +183,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int id) {
@@ -198,9 +200,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) {
@@ -220,9 +222,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "ResEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
@@ -244,9 +246,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "ResEntity", paramType = "body")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8")
@@ -270,7 +272,7 @@
    }
    @SysLog()
    @ApiOperation(value = "上传文件")
    @Operation(summary = "上传文件")
    @ResponseBody
    @PostMapping(value = "/upload")
    public ResponseMsg<String> upload(@RequestParam("file") MultipartFile file, HttpServletRequest req) {
@@ -280,9 +282,9 @@
    }
    @SysLog()
    @ApiOperation(value = "下载文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "附件Guid", dataType = "String", paramType = "body")
    @Operation(summary = "下载文件")
    @Parameters({
            @Parameter(name = "guid", description = "附件Guid")
    })
    @GetMapping(value = "/download")
    public void download(String guid, HttpServletResponse res) {
@@ -290,9 +292,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查看文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guid", value = "附件Guid", dataType = "String", paramType = "body")
    @Operation(summary = "查看文件")
    @Parameters({
            @Parameter(name = "guid", description = "附件Guid")
    })
    @GetMapping(value = "/downloadForView")
    public void downloadForView(String guid, HttpServletResponse res) {
se-system/src/main/java/com/terra/system/controller/sys/ResLogController.java
@@ -7,10 +7,11 @@
import com.terra.system.entity.sys.UserEntity;
import com.terra.system.service.sys.ResLogService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -18,7 +19,7 @@
import java.util.List;
@SuppressWarnings("ALL")
@Api(tags = "运维管理\\资源日志")
@Tag(name = "运维管理\\资源日志")
@RestController
@RequestMapping("/resLog")
public class ResLogController extends BaseController {
@@ -29,9 +30,9 @@
    TokenService tokenService;
    @SysLog()
    @ApiOperation(value = "查询记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "resid", value = "资源ID", dataType = "Integer", paramType = "query", required = false, example = "")
    @Operation(summary = "查询记录数")
    @Parameters({
            @Parameter(name = "resid", description = "资源ID", in = ParameterIn.QUERY, required = false, example = "")
    })
    @GetMapping({"/selectCount"})
    public ResponseMsg<Integer> selectCount(Integer resid) {
@@ -45,11 +46,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "resid", value = "资源ID", dataType = "Integer", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询")
    @Parameters({
            @Parameter(name = "resid", description = "资源ID", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    public ResponseMsg<List<ResLogEntity>> selectByPage(Integer resid, Integer pageSize, Integer pageIndex) {
@@ -67,11 +68,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "resid", value = "资源ID", dataType = "Integer", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "resid", description = "资源ID", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<ResLogEntity>> selectByPageAndCount(Integer resid, Integer pageSize, Integer pageIndex) {
@@ -94,9 +95,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<ResLogEntity> selectById(int id) {
@@ -110,9 +111,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int id) {
@@ -126,9 +127,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) {
se-system/src/main/java/com/terra/system/controller/sys/ResOpController.java
@@ -7,12 +7,14 @@
import com.terra.system.entity.sys.UserEntity;
import com.terra.system.service.sys.ResOpService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.sql.Timestamp;
@@ -23,7 +25,7 @@
 * @author SWS
 * @date 2022-09.28
 */
@Api(tags = "运维管理\\资源操作")
@Tag(name = "运维管理\\资源操作")
@RestController
@RequestMapping("/resOp")
public class ResOpController extends BaseController {
@@ -34,12 +36,12 @@
    TokenService tokenService;
    @SysLog()
    @ApiOperation(value = "查询记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "资源名称", dataType = "String", paramType = "query", example = "天地图"),
            @ApiImplicitParam(name = "type", value = "操作类型", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "start", value = "开始时间", dataType = "Timestamp", paramType = "query", example = "2022-10-09 09:00:00"),
            @ApiImplicitParam(name = "end", value = "结束时间", dataType = "Timestamp", paramType = "query", example = "2022-10-10 18:00:00"),
    @Operation(summary = "查询记录数")
    @Parameters({
            @Parameter(name = "name", description = "资源名称", in = ParameterIn.QUERY, example = "天地图"),
            @Parameter(name = "type", description = "操作类型", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "start", description = "开始时间", in = ParameterIn.QUERY, example = "2022-10-09 09:00:00"),
            @Parameter(name = "end", description = "结束时间", in = ParameterIn.QUERY, example = "2022-10-10 18:00:00"),
    })
    @GetMapping({"/selectCount"})
    public ResponseMsg<Integer> selectCount(String name, Integer type, Timestamp start, Timestamp end) {
@@ -53,14 +55,14 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "资源名称", dataType = "String", paramType = "query", example = "天地图"),
            @ApiImplicitParam(name = "type", value = "操作类型", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "start", value = "开始时间", dataType = "Timestamp", paramType = "query", example = "2022-10-09 09:00:00"),
            @ApiImplicitParam(name = "end", value = "结束时间", dataType = "Timestamp", paramType = "query", example = "2022-10-10 18:00:00"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询")
    @Parameters({
            @Parameter(name = "name", description = "资源名称", in = ParameterIn.QUERY, example = "天地图"),
            @Parameter(name = "type", description = "操作类型", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "start", description = "开始时间", in = ParameterIn.QUERY, example = "2022-10-09 09:00:00"),
            @Parameter(name = "end", description = "结束时间", in = ParameterIn.QUERY, example = "2022-10-10 18:00:00"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    public ResponseMsg<List<ResOpEntity>> selectByPage(String name, Integer type, Timestamp start, Timestamp end, Integer pageSize, Integer pageIndex) {
@@ -76,14 +78,14 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "资源名称", dataType = "String", paramType = "query", example = "天地图"),
            @ApiImplicitParam(name = "type", value = "操作类型", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "start", value = "开始时间", dataType = "Timestamp", paramType = "query", example = "2022-10-09 09:00:00"),
            @ApiImplicitParam(name = "end", value = "结束时间", dataType = "Timestamp", paramType = "query", example = "2022-10-10 18:00:00"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "name", description = "资源名称", in = ParameterIn.QUERY, example = "天地图"),
            @Parameter(name = "type", description = "操作类型", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "start", description = "开始时间", in = ParameterIn.QUERY, example = "2022-10-09 09:00:00"),
            @Parameter(name = "end", description = "结束时间", in = ParameterIn.QUERY, example = "2022-10-10 18:00:00"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<ResOpEntity>> selectByPageAndCount(String name, Integer type, Timestamp start, Timestamp end, Integer pageSize, Integer pageIndex) {
@@ -106,9 +108,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "com.terra.system.entity.sys.ResOpEntity", paramType = "body", example = "")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @PostMapping(value = "/insertResOp", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertResOp(@RequestBody ResOpEntity entity, HttpServletRequest req) {
@@ -127,9 +129,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "List<ResOpEntity>", paramType = "body", example = "")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合", schema = @Schema(type = "array"), example = "")
    })
    @PostMapping(value = "/insertResOps", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertResOps(@RequestBody List<ResOpEntity> list, HttpServletRequest req) {
@@ -150,9 +152,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/deleteLogin")
    public ResponseMsg<Integer> deleteResOp(int id) {
@@ -166,9 +168,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "List<Integer>", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deleteResOps")
    public ResponseMsg<Integer> deleteResOps(@RequestParam List<Integer> ids) {
@@ -184,9 +186,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "ID数组", dataType = "LoginEntity", paramType = "body", example = "")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "ID数组", example = "")
    })
    @ResponseBody
    @PostMapping(value = "/updateResOp", produces = "application/json; charset=UTF-8")
@@ -206,9 +208,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectResOp")
    public ResponseMsg<ResOpEntity> selectResOp(int id) {
@@ -222,7 +224,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectResOpAll")
    public ResponseMsg<List<ResOpEntity>> selectResOpAll() {
        try {
se-system/src/main/java/com/terra/system/controller/sys/RoleController.java
@@ -8,12 +8,14 @@
import com.terra.system.service.all.PermsService;
import com.terra.system.service.sys.RoleService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -23,7 +25,7 @@
 * @author SWS
 * @date 2022-09.28
 */
@Api(tags = "运维管理\\角色管理")
@Tag(name = "运维管理\\角色管理")
@RestController
@RequestMapping("/role")
public class RoleController extends BaseController {
@@ -37,10 +39,10 @@
    PermsService permsService;
    @SysLog()
    @ApiOperation(value = "查询记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "Admin"),
            @ApiImplicitParam(name = "depid", value = "单位ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "查询记录数")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "Admin"),
            @Parameter(name = "depid", description = "单位ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping({"/selectCount"})
    public ResponseMsg<Integer> selectCount(String name, Integer depid) {
@@ -54,12 +56,12 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "Admin"),
            @ApiImplicitParam(name = "depid", value = "单位ID", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "Admin"),
            @Parameter(name = "depid", description = "单位ID", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    public ResponseMsg<List<RoleEntity>> selectByPage(String name, Integer depid, Integer pageSize, Integer pageIndex) {
@@ -77,12 +79,12 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "Admin"),
            @ApiImplicitParam(name = "depid", value = "单位ID", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = "Admin"),
            @Parameter(name = "depid", description = "单位ID", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<RoleEntity>> selectByPageAndCount(String name, Integer depid, Integer pageSize, Integer pageIndex) {
@@ -105,9 +107,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "RoleEntity", paramType = "body", example = "")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @PostMapping(value = "/insertRole", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertRole(@RequestBody RoleEntity entity, HttpServletRequest req) {
@@ -127,9 +129,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "List<RoleEntity>", paramType = "body", example = "")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合", schema = @Schema(type = "array"), example = "")
    })
    @PostMapping(value = "/insertRoles", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertRoles(@RequestBody List<RoleEntity> list, HttpServletRequest req) {
@@ -151,9 +153,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/deleteRole")
    public ResponseMsg<Integer> deleteRole(int id) {
@@ -168,9 +170,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "List<Integer>", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deleteAuths")
    public ResponseMsg<Integer> deleteRoles(@RequestParam List<Integer> ids) {
@@ -189,9 +191,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "RoleEntity", paramType = "body", example = "")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @ResponseBody
    @PostMapping(value = "/updateRole", produces = "application/json; charset=UTF-8")
@@ -212,9 +214,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectRole")
    public ResponseMsg<RoleEntity> selectRole(int id) {
@@ -228,7 +230,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectRoleAll")
    public ResponseMsg<List<RoleEntity>> selectRoleAll() {
        try {
se-system/src/main/java/com/terra/system/controller/sys/RoleLayerController.java
@@ -9,10 +9,11 @@
import com.terra.system.service.all.PermsService;
import com.terra.system.service.sys.RoleLayerService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -20,7 +21,7 @@
import java.util.List;
@SuppressWarnings("ALL")
@Api(tags = "运维管理\\角色图层")
@Tag(name = "运维管理\\角色图层")
@RestController
@RequestMapping("/roleLayer")
public class RoleLayerController extends BaseController {
@@ -34,9 +35,9 @@
    PermsService permsService;
    @SysLog()
    @ApiOperation(value = "根据角色ID查询图层")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "roleid", value = "角色ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据角色ID查询图层")
    @Parameters({
            @Parameter(name = "roleid", description = "角色ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectResByRole")
    public ResponseMsg<Object> selectLayersByRole(Integer roleid) {
@@ -50,11 +51,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "roleid", value = "角色ID", dataType = "Integer", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "roleid", description = "角色ID", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<RoleLayerEntity>> selectByPageAndCount(Integer roleid, Integer pageSize, Integer pageIndex) {
@@ -77,9 +78,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<RoleLayerEntity> selectById(int id) {
@@ -93,9 +94,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "RoleLayerEntity", paramType = "body")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insert(@RequestBody RoleLayerEntity entity, HttpServletRequest req) {
@@ -115,9 +116,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "RoleLayerEntity", paramType = "body")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> inserts(@RequestBody List<RoleLayerEntity> list, HttpServletRequest req) {
@@ -139,9 +140,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int id) {
@@ -156,9 +157,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) {
@@ -177,9 +178,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "RoleLayerEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
@@ -200,9 +201,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "RoleLayerEntity", paramType = "body")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8")
se-system/src/main/java/com/terra/system/controller/sys/RoleMenuAuthController.java
@@ -8,12 +8,13 @@
import com.terra.system.service.all.PermsService;
import com.terra.system.service.sys.RoleMenuAuthService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -22,7 +23,7 @@
 * è§’色-菜单
 * @author WWW
 */
@Api(tags = "运维管理\\角色菜单")
@Tag(name = "运维管理\\角色菜单")
@RestController
@RequestMapping("/roleMenuAuth")
public class RoleMenuAuthController extends BaseController {
@@ -36,9 +37,9 @@
    PermsService permsService;
    @SysLog()
    @ApiOperation(value = "查询记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "roleid", value = "角色ID", dataType = "Integer", paramType = "query", required = false, example = "")
    @Operation(summary = "查询记录数")
    @Parameters({
            @Parameter(name = "roleid", description = "角色ID", in = ParameterIn.QUERY, required = false, example = "")
    })
    @GetMapping({"/selectCount"})
    public ResponseMsg<Integer> selectCount(Integer roleid) {
@@ -52,11 +53,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "roleid", value = "角色ID", dataType = "Integer", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询")
    @Parameters({
            @Parameter(name = "roleid", description = "角色ID", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    public ResponseMsg<List<RoleMenuAuthEntity>> selectByPage(Integer roleid, Integer pageSize, Integer pageIndex) {
@@ -74,11 +75,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "roleid", value = "角色ID", dataType = "Integer", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "roleid", description = "角色ID", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<RoleMenuAuthEntity>> selectByPageAndCount(Integer roleid, Integer pageSize, Integer pageIndex) {
@@ -99,12 +100,12 @@
    }
    @SysLog()
    @ApiOperation(value = "根据角色ID+菜单ID分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "roleid", value = "角色ID", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "menuid", value = "菜单ID", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据角色ID+菜单ID分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "roleid", description = "角色ID", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "menuid", description = "菜单ID", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageForRole")
    public ResponseMsg<List<RoleMenuAuthEntity>> selectByPageForRole(Integer roleid, Integer menuid, Integer pageSize, Integer pageIndex) {
@@ -127,7 +128,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectAll")
    public ResponseMsg<List<RoleMenuAuthEntity>> selectAll() {
        try {
@@ -140,9 +141,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<RoleMenuAuthEntity> selectById(int id) {
@@ -156,9 +157,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "RoleMenuAuthEntity", paramType = "body")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insert(@RequestBody RoleMenuAuthEntity entity, HttpServletRequest req) {
@@ -180,9 +181,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "RoleMenuAuthEntity", paramType = "body")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> inserts(@RequestBody List<RoleMenuAuthEntity> list, HttpServletRequest req) {
@@ -206,9 +207,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int id) {
@@ -225,9 +226,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) {
@@ -248,9 +249,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "RoleMenuAuthEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
@@ -273,9 +274,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "RoleMenuAuthEntity", paramType = "body")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8")
se-system/src/main/java/com/terra/system/controller/sys/RoleResController.java
@@ -8,12 +8,13 @@
import com.terra.system.service.all.PermsService;
import com.terra.system.service.sys.RoleResService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -22,7 +23,7 @@
 * è§’色-资源
 * @author WWW
 */
@Api(tags = "运维管理\\角色资源")
@Tag(name = "运维管理\\角色资源")
@RestController
@RequestMapping("/roleRes")
public class RoleResController extends BaseController {
@@ -36,9 +37,9 @@
    PermsService permsService;
    @SysLog()
    @ApiOperation(value = "根据角色ID查询资源")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "roleid", value = "角色ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据角色ID查询资源")
    @Parameters({
            @Parameter(name = "roleid", description = "角色ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectResByRole")
    public ResponseMsg<List<RoleResEntity>> selectResByRole(Integer roleid) {
@@ -52,11 +53,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "roleid", value = "角色ID", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "roleid", description = "角色ID", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<RoleResEntity>> selectByPageAndCount(Integer roleid, Integer pageSize, Integer pageIndex) {
@@ -78,9 +79,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<RoleResEntity> selectById(int id) {
@@ -94,9 +95,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "RoleResEntity", paramType = "body")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insert(@RequestBody RoleResEntity entity, HttpServletRequest req) {
@@ -116,9 +117,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "RoleResEntity", paramType = "body")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> inserts(@RequestBody List<RoleResEntity> list, HttpServletRequest req) {
@@ -140,9 +141,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int id) {
@@ -157,9 +158,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) {
@@ -178,9 +179,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "RoleResEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
@@ -201,9 +202,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "RoleResEntity", paramType = "body")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8")
se-system/src/main/java/com/terra/system/controller/sys/RoleUserController.java
@@ -8,12 +8,13 @@
import com.terra.system.service.all.PermsService;
import com.terra.system.service.sys.RoleUserService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -22,7 +23,7 @@
 * è§’色-用户
 * @author WWW
 */
@Api(tags = "运维管理\\用户角色")
@Tag(name = "运维管理\\用户角色")
@RestController
@RequestMapping("/roleUser")
public class RoleUserController extends BaseController {
@@ -36,9 +37,9 @@
    PermsService permsService;
    @SysLog()
    @ApiOperation(value = "查询记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "roleid", value = "角色ID", dataType = "Integer", paramType = "query", required = false, example = "")
    @Operation(summary = "查询记录数")
    @Parameters({
            @Parameter(name = "roleid", description = "角色ID", in = ParameterIn.QUERY, required = false, example = "")
    })
    @GetMapping({"/selectCount"})
    public ResponseMsg<Integer> selectCount(Integer roleid) {
@@ -52,11 +53,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "roleid", value = "角色ID", dataType = "Integer", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询")
    @Parameters({
            @Parameter(name = "roleid", description = "角色ID", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPage")
    public ResponseMsg<List<RoleUserEntity>> selectByPage(Integer roleid, Integer pageSize, Integer pageIndex) {
@@ -74,11 +75,11 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "roleid", value = "角色ID", dataType = "Integer", paramType = "query", example = ""),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "roleid", description = "角色ID", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<RoleUserEntity>> selectByPageAndCount(Integer roleid, Integer pageSize, Integer pageIndex) {
@@ -99,7 +100,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectAll")
    public ResponseMsg<List<RoleUserEntity>> selectAll() {
        try {
@@ -112,9 +113,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectById")
    public ResponseMsg<RoleUserEntity> selectById(int id) {
@@ -128,9 +129,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "RoleUserEntity", paramType = "body")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insert(@RequestBody RoleUserEntity entity, HttpServletRequest req) {
@@ -152,9 +153,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "RoleUserEntity", paramType = "body")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> inserts(@RequestBody List<RoleUserEntity> list, HttpServletRequest req) {
@@ -178,9 +179,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/delete")
    public ResponseMsg<Integer> delete(int id) {
@@ -197,9 +198,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deletes")
    public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) {
@@ -220,9 +221,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "RoleUserEntity", paramType = "body")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类")
    })
    @ResponseBody
    @PostMapping(value = "/update", produces = "application/json; charset=UTF-8")
@@ -245,9 +246,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "RoleUserEntity", paramType = "body")
    @Operation(summary = "更新多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合")
    })
    @ResponseBody
    @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8")
se-system/src/main/java/com/terra/system/controller/sys/TokenController.java
@@ -9,12 +9,14 @@
import com.terra.system.entity.sys.UserEntity;
import com.terra.system.helper.StringHelper;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -24,7 +26,7 @@
 * @author WWW
 * @date 2022-09-28
 */
@Api(tags = "运维管理\\令牌管理")
@Tag(name = "运维管理\\令牌管理")
@RestController
@RequestMapping("/token")
public class TokenController extends BaseController {
@@ -32,12 +34,12 @@
    TokenService tokenService;
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "令牌", dataType = "String", paramType = "query", example = "ec101de8-1403-4d8f-ad13-edab8358399b"),
            @ApiImplicitParam(name = "type", value = "类型", dataType = "Integer", paramType = "query", example = "0"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "name", description = "令牌", in = ParameterIn.QUERY, example = "ec101de8-1403-4d8f-ad13-edab8358399b"),
            @Parameter(name = "type", description = "类型", in = ParameterIn.QUERY, example = "0"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<TokenEntity>> selectByPageAndCount(String name, Integer type, Integer pageSize, Integer pageIndex) {
@@ -57,9 +59,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "TokenEntity", paramType = "body", example = "")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @PostMapping(value = "/insertToken", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertToken(@RequestBody TokenEntity entity, HttpServletRequest req) {
@@ -78,10 +80,10 @@
    }
    @SysLog()
    @ApiOperation(value = "创建新令牌")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "type", value = "令牌类别:0-临时,1-固定", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "min", value = "分钟数:默认1个月", dataType = "Integer", paramType = "query", example = "43200")
    @Operation(summary = "创建新令牌")
    @Parameters({
            @Parameter(name = "type", description = "令牌类别:0-临时,1-固定", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "min", description = "分钟数:默认1个月", in = ParameterIn.QUERY, example = "43200")
    })
    @GetMapping(value = "/insertNewToken")
    public ResponseMsg<Object> insertNewToken(Integer type, Integer min, HttpServletRequest req) {
@@ -107,9 +109,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/deleteToken")
    public ResponseMsg<Integer> deleteToken(int id) {
@@ -123,9 +125,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "List<Integer>", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deleteTokens")
    public ResponseMsg<Integer> deleteTokens(@RequestParam List<Integer> ids) {
@@ -143,9 +145,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "TokenEntity", paramType = "body", example = "")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @ResponseBody
    @PostMapping(value = "/updateToken", produces = "application/json; charset=UTF-8")
@@ -165,9 +167,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID更新令牌为失效")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "令牌ID", dataType = "Integer", paramType = "query", example = "6563")
    @Operation(summary = "根据ID更新令牌为失效")
    @Parameters({
            @Parameter(name = "id", description = "令牌ID", in = ParameterIn.QUERY, example = "6563")
    })
    @GetMapping(value = "/updateExpireById")
    public ResponseMsg<Integer> updateExpireById(Integer id, HttpServletRequest req) {
@@ -191,9 +193,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据Token更新令牌为失效")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "tk", value = "令牌", dataType = "String", paramType = "query", example = "2edea2a2-e307-4baa-992c-b477ce0566dd")
    @Operation(summary = "根据Token更新令牌为失效")
    @Parameters({
            @Parameter(name = "tk", description = "令牌", in = ParameterIn.QUERY, example = "2edea2a2-e307-4baa-992c-b477ce0566dd")
    })
    @GetMapping(value = "/updateExpireByToken")
    public ResponseMsg<Integer> updateExpireByToken(String tk, HttpServletRequest req) {
@@ -217,9 +219,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1658")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1658")
    })
    @GetMapping(value = "/selectToken")
    public ResponseMsg<TokenEntity> selectToken(int id) {
@@ -233,9 +235,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询(有效期内的)")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "6563")
    @Operation(summary = "根据ID查询(有效期内的)")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "6563")
    })
    @GetMapping(value = "/selectOneById")
    public ResponseMsg<TokenEntity> selectOneById(Integer id) {
@@ -252,9 +254,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据token查询(有效期内的)")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "tk", value = "令牌", dataType = "String", paramType = "query", example = "2edea2a2-e307-4baa-992c-b477ce0566dd")
    @Operation(summary = "根据token查询(有效期内的)")
    @Parameters({
            @Parameter(name = "tk", description = "令牌", in = ParameterIn.QUERY, example = "2edea2a2-e307-4baa-992c-b477ce0566dd")
    })
    @GetMapping(value = "/selectOneByToken")
    public ResponseMsg<TokenEntity> selectOneByToken(String tk) {
se-system/src/main/java/com/terra/system/controller/sys/UserController.java
@@ -9,12 +9,14 @@
import com.terra.system.helper.StringHelper;
import com.terra.system.service.sys.TokenService;
import com.terra.system.service.sys.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
@@ -24,7 +26,7 @@
 * @author sws
 * @date 2022-09-27
 */
@Api(tags = "运维管理\\用户管理")
@Tag(name = "运维管理\\用户管理")
@RestController
@RequestMapping("/user")
public class UserController extends BaseController {
@@ -35,12 +37,12 @@
    TokenService tokenService;
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "uname", value = "用户名", dataType = "String", paramType = "query", example = "室"),
            @ApiImplicitParam(name = "depcode", value = "单位编码", dataType = "String", paramType = "query", example = "00"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "uname", description = "用户名", in = ParameterIn.QUERY, example = "室"),
            @Parameter(name = "depcode", description = "单位编码", in = ParameterIn.QUERY, example = "00"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<UserEntity>> selectByPageAndCount(String uname, String depcode, Integer pageSize, Integer pageIndex) {
@@ -63,13 +65,13 @@
    }
    @SysLog()
    @ApiOperation(value = "根据角色+单位分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "uname", value = "用户名", dataType = "String", paramType = "query", example = "室"),
            @ApiImplicitParam(name = "roleid", value = "角色ID", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "depcode", value = "单位编码", dataType = "String", paramType = "query", example = "00"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据角色+单位分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "uname", description = "用户名", in = ParameterIn.QUERY, example = "室"),
            @Parameter(name = "roleid", description = "角色ID", in = ParameterIn.QUERY, example = "1"),
            @Parameter(name = "depcode", description = "单位编码", in = ParameterIn.QUERY, example = "00"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageForRole")
    public ResponseMsg<List<UserEntity>> selectByPageForRole(String uname, Integer roleid, String depcode, Integer pageSize, Integer pageIndex) {
@@ -91,9 +93,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据ID查询")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectUser")
    public ResponseMsg<UserEntity> selectUser(int id) {
@@ -107,9 +109,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据用户ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "uid", value = "用户ID", dataType = "String", paramType = "query", example = "admin")
    @Operation(summary = "根据用户ID查询")
    @Parameters({
            @Parameter(name = "uid", description = "用户ID", in = ParameterIn.QUERY, example = "admin")
    })
    @GetMapping(value = "/selectByUid")
    public ResponseMsg<UserEntity> selectByUid(String uid) {
@@ -127,7 +129,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询所有")
    @Operation(summary = "查询所有")
    @GetMapping(value = "/selectUserAll")
    public ResponseMsg<List<UserEntity>> selectUserAll() {
        try {
@@ -140,7 +142,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询是/否为管理员")
    @Operation(summary = "查询是/否为管理员")
    @GetMapping(value = "/selectForIsAdmin")
    public ResponseMsg<Boolean> selectForIsAdmin(HttpServletRequest req) {
        try {
@@ -158,9 +160,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询是/否为管理员")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "用户ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "查询是/否为管理员")
    @Parameters({
            @Parameter(name = "id", description = "用户ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectIsAdmin")
    public ResponseMsg<Boolean> selectIsAdmin(Integer id) {
@@ -179,9 +181,9 @@
    }
    @SysLog()
    @ApiOperation(value = "查询管理员用户")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "type", value = "管理员类别", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "查询管理员用户")
    @Parameters({
            @Parameter(name = "type", description = "管理员类别", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectAdminUsers")
    public ResponseMsg<Object> selectAdminUsers(Integer type) {
@@ -199,9 +201,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据用户ID查询角色")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "用户ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据用户ID查询角色")
    @Parameters({
            @Parameter(name = "id", description = "用户ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectRoleByUserId")
    public ResponseMsg<Object> selectRoleByUserId(Integer id) {
@@ -219,9 +221,9 @@
    }
    @SysLog()
    @ApiOperation(value = "根据角色查询用户")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "角色ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "根据角色查询用户")
    @Parameters({
            @Parameter(name = "id", description = "角色ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectUserByRoleId")
    public ResponseMsg<Object> selectUserByRoleId(Integer id) {
@@ -239,9 +241,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "UserEntity", paramType = "body", example = "")
    @Operation(summary = "插入一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @PostMapping(value = "/insertUser", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Integer> insertUser(@RequestBody UserEntity entity, HttpServletRequest req) {
@@ -265,9 +267,9 @@
    }
    @SysLog()
    @ApiOperation(value = "插入多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "List<UserEntity>", paramType = "body", example = "")
    @Operation(summary = "插入多条")
    @Parameters({
            @Parameter(name = "list", description = "实体类集合", schema = @Schema(type = "array"), example = "")
    })
    @PostMapping(value = "/insertUsers", produces = "application/json; charset=UTF-8")
    @SuppressWarnings("AlibabaRemoveCommentedCode")
@@ -297,9 +299,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "删除一条")
    @Parameters({
            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/deleteUser")
    public ResponseMsg<Integer> deleteUser(int id) {
@@ -313,9 +315,9 @@
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "List<Integer>", paramType = "query", example = "1,2")
    @Operation(summary = "删除多条")
    @Parameters({
            @Parameter(name = "ids", description = "ID数组", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "1,2")
    })
    @GetMapping(value = "/deleteUsers")
    public ResponseMsg<Integer> deleteUsers(@RequestParam List<Integer> ids) {
@@ -333,9 +335,9 @@
    }
    @SysLog()
    @ApiOperation(value = "更新一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "UserEntity", paramType = "body", example = "")
    @Operation(summary = "更新一条")
    @Parameters({
            @Parameter(name = "entity", description = "实体类", example = "")
    })
    @ResponseBody
    @PostMapping(value = "/updateUser", produces = "application/json; charset=UTF-8")
@@ -361,11 +363,11 @@
    }
    @SysLog()
    @ApiOperation(value = "更新多个用户密码")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "adminPwd", value = "管理员密码", dataType = "String", paramType = "body", example = ""),
            @ApiImplicitParam(name = "newPwd", value = "新密码", dataType = "String", paramType = "body", example = ""),
            @ApiImplicitParam(name = "ids", value = "用户ID集合", dataType = "List<Integer>", paramType = "body", example = "")
    @Operation(summary = "更新多个用户密码")
    @Parameters({
            @Parameter(name = "adminPwd", description = "管理员密码", example = ""),
            @Parameter(name = "newPwd", description = "新密码", example = ""),
            @Parameter(name = "ids", description = "用户ID集合", schema = @Schema(type = "array"), example = "")
    })
    @PostMapping(value = "/updateUsersPwd", produces = "application/json; charset=UTF-8")
    public ResponseMsg<Boolean> updateUsersPwd(@RequestBody UserUpdateEntity uue, HttpServletRequest req) {
se-system/src/main/java/com/terra/system/entity/all/StaticData.java
@@ -14,7 +14,7 @@
    /**
     * æƒé™æŽ’除路径:/proxy,要求全部小写
     */
    public static String[] EXCLUDE_PATH = new String[]{"/sign/", "/perms/", "/fmeit/", "/crds/", "/floatserver/", "/wmts/select", "/onemap/", "/swagger", "/error"};
    public static String[] EXCLUDE_PATH = new String[]{"/sign/", "/perms/", "/wmts/select", "/swagger", "/v3/api-docs", "/error"};
    public final static int I1 = 1;
se-system/src/main/java/com/terra/system/service/data/UploadService.java
@@ -1,6 +1,6 @@
package com.terra.system.service.data;
import com.google.common.collect.Lists;
import cn.hutool.core.collection.ListUtil;
import com.terra.system.entity.all.BaseEntity;
import com.terra.system.entity.all.StaticData;
import com.terra.system.entity.data.*;
@@ -259,7 +259,7 @@
    private <T> int batchInserts(BasicMapper basicMapper, List<T> list) {
        int rows = 0;
        //int count = (int) Math.ceil(list.size() / StaticData.D100)
        List<List<T>> subLists = Lists.partition(list, StaticData.I50);
        List<List<T>> subLists = ListUtil.partition(list, StaticData.I50);
        for (List<T> sub : subLists) {
            try {
                rows += basicMapper.insertBatch(sub);
se-system/src/main/resources/application-dev.yml
ÎļþÒÑɾ³ý
se-system/src/main/resources/application-prod.yml
@@ -9,15 +9,13 @@
    context-path: /
spring:
  application:
    name: se-system
  mvc:
    static-path-pattern: /static/**
  # redis
  redis:
    database: 0
    host: 192.168.11.203
    port: 6379
    host: 127.0.0.1
    port: 6369
    password: rediS_5L#F4_Server
    # è¿žæŽ¥è¶…时时长(毫秒)
    timeout: 10000
@@ -51,9 +49,11 @@
  # datasource
  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    url: jdbc:postgresql://192.168.11.203:5432/jhs?useAffectedRows=true
    #url: jdbc:postgresql://192.168.11.205:5433/jhs?useAffectedRows=true
    url: jdbc:postgresql://127.0.0.1:5433/jhs?useAffectedRows=true
    username: postgres
    password: Postgres!_17_jHs
    #password: Postgres!_14_Lf
    password: postgres
    driver-class-name: org.postgresql.Driver
    platform: POSTGRESQL
    filters: stat,wall,log4j
@@ -85,8 +85,6 @@
mybatis-plus:
  type-aliases-package: com.terra.system.entity
  config-location: classpath:mybatis.xml
  mapper-locations: classpath:mapper/**/*.xml
# logging
logging:
se-system/src/main/resources/application-test.yml
ÎļþÒÑɾ³ý
se-system/src/main/resources/bootstrap.yml
@@ -17,6 +17,7 @@
      discovery:
        # æœåŠ¡æ³¨å†Œåœ°å€
        server-addr: 127.0.0.1:8848
        group: JHS_GROUP
      config:
        group: JHS_GROUP
        # é…ç½®ä¸­å¿ƒåœ°å€
se-system/src/main/resources/mybatis.xml
@@ -32,6 +32,7 @@
        <setting name="logImpl" value="NO_LOGGING" />
    </settings>
    <typeAliases>
        <package name="com.terra.system.entity"/>
        <!--‌类型别名配置-->
        <package name="com.terra.collect.entity"/>
    </typeAliases>
</configuration>
sm.txt
@@ -1,6 +1,13 @@
-------------------------------------------------------------------
------------------------------------------------------------------- åŠŸèƒ½æ¨¡å—ï¼Œæ”¯æŒç‹¬ç«‹éƒ¨ç½²
  se-common:      é€šç”¨æ¨¡å—
 se-gateway:8001,系统网关
@@ -9,7 +16,7 @@
se-discover:8004,知识发现
 se-publish:8005,数据发布
------------------------------------------------------------------- URL
admin:Admin@1234_lf
admin:Admin@1234_lf
nacos:nAcos_!9#_admIn
http://localhost:8848/nacos
@@ -18,6 +25,9 @@
http://localhost:8001/system/dir/selectDir?id=1
http://localhost:8002/dir/selectDir?id=1
http://localhost:8001/webjars/swagger-ui/index.html
http://localhost:8003/swagger-ui/index.html
http://192.168.11.203:8848/nacos
http://192.168.11.203:8081/api/system/swagger-ui.html
------------------------------------------------------------------- PIE-Engine Server