midway-fatcms 0.0.1-beta.3 → 0.0.1-beta.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +14 -0
- package/.prettierrc.js +4 -0
- package/README.md +7 -0
- package/package.json +25 -24
- package/tsconfig.json +32 -0
- package/dist/config/config.default.d.ts +0 -3
- package/dist/config/config.default.js +0 -148
- package/dist/config/seed/aeskey.txt +0 -1
- package/dist/config/utils.d.ts +0 -1
- package/dist/config/utils.js +0 -23
- package/dist/configuration.d.ts +0 -6
- package/dist/configuration.js +0 -89
- package/dist/controller/base/BaseApiController.d.ts +0 -31
- package/dist/controller/base/BaseApiController.js +0 -138
- package/dist/controller/gateway/AnyApiGatewayController.d.ts +0 -13
- package/dist/controller/gateway/AnyApiGatewayController.js +0 -55
- package/dist/controller/gateway/CrudMtdGatewayController.d.ts +0 -21
- package/dist/controller/gateway/CrudMtdGatewayController.js +0 -116
- package/dist/controller/gateway/CrudStdGatewayController.d.ts +0 -38
- package/dist/controller/gateway/CrudStdGatewayController.js +0 -137
- package/dist/controller/gateway/DocGatewayController.d.ts +0 -27
- package/dist/controller/gateway/DocGatewayController.js +0 -174
- package/dist/controller/gateway/FileController.d.ts +0 -25
- package/dist/controller/gateway/FileController.js +0 -129
- package/dist/controller/gateway/ProxyApiGatewayController.d.ts +0 -18
- package/dist/controller/gateway/ProxyApiGatewayController.js +0 -78
- package/dist/controller/gateway/PublicApiController.d.ts +0 -27
- package/dist/controller/gateway/PublicApiController.js +0 -167
- package/dist/controller/gateway/StaticController.d.ts +0 -21
- package/dist/controller/gateway/StaticController.js +0 -265
- package/dist/controller/helpers.controller.d.ts +0 -39
- package/dist/controller/helpers.controller.js +0 -188
- package/dist/controller/home.controller.d.ts +0 -9
- package/dist/controller/home.controller.js +0 -71
- package/dist/controller/manage/AnyApiMangeApi.d.ts +0 -10
- package/dist/controller/manage/AnyApiMangeApi.js +0 -98
- package/dist/controller/manage/AppLogMangeApi.d.ts +0 -10
- package/dist/controller/manage/AppLogMangeApi.js +0 -88
- package/dist/controller/manage/AppMangeApi.d.ts +0 -10
- package/dist/controller/manage/AppMangeApi.js +0 -88
- package/dist/controller/manage/AppPageMangeApi.d.ts +0 -10
- package/dist/controller/manage/AppPageMangeApi.js +0 -87
- package/dist/controller/manage/AppSchemaHistoryApi.d.ts +0 -10
- package/dist/controller/manage/AppSchemaHistoryApi.js +0 -83
- package/dist/controller/manage/CrudMethodsMangeApi.d.ts +0 -10
- package/dist/controller/manage/CrudMethodsMangeApi.js +0 -84
- package/dist/controller/manage/CrudStandardDesignApi.d.ts +0 -38
- package/dist/controller/manage/CrudStandardDesignApi.js +0 -339
- package/dist/controller/manage/DataDictManageApi.d.ts +0 -15
- package/dist/controller/manage/DataDictManageApi.js +0 -133
- package/dist/controller/manage/DeployManageApi.d.ts +0 -19
- package/dist/controller/manage/DeployManageApi.js +0 -176
- package/dist/controller/manage/DocLibManageApi.d.ts +0 -10
- package/dist/controller/manage/DocLibManageApi.js +0 -104
- package/dist/controller/manage/DocManageApi.d.ts +0 -11
- package/dist/controller/manage/DocManageApi.js +0 -130
- package/dist/controller/manage/FileManageApi.d.ts +0 -13
- package/dist/controller/manage/FileManageApi.js +0 -77
- package/dist/controller/manage/LowCodeTplManageApi.d.ts +0 -13
- package/dist/controller/manage/LowCodeTplManageApi.js +0 -86
- package/dist/controller/manage/MenuManageApi.d.ts +0 -10
- package/dist/controller/manage/MenuManageApi.js +0 -93
- package/dist/controller/manage/ProxyApiMangeApi.d.ts +0 -10
- package/dist/controller/manage/ProxyApiMangeApi.js +0 -87
- package/dist/controller/manage/SuperAdminManageApi.d.ts +0 -24
- package/dist/controller/manage/SuperAdminManageApi.js +0 -149
- package/dist/controller/manage/SysConfigMangeApi.d.ts +0 -11
- package/dist/controller/manage/SysConfigMangeApi.js +0 -124
- package/dist/controller/manage/SystemInfoManageApi.d.ts +0 -12
- package/dist/controller/manage/SystemInfoManageApi.js +0 -66
- package/dist/controller/manage/UserAccountManageApi.d.ts +0 -14
- package/dist/controller/manage/UserAccountManageApi.js +0 -124
- package/dist/controller/manage/WorkbenchMangeApi.d.ts +0 -11
- package/dist/controller/manage/WorkbenchMangeApi.js +0 -103
- package/dist/controller/medstatistic/MedAdminController.d.ts +0 -35
- package/dist/controller/medstatistic/MedAdminController.js +0 -205
- package/dist/controller/medstatistic/MedClientController.d.ts +0 -28
- package/dist/controller/medstatistic/MedClientController.js +0 -188
- package/dist/controller/medstatistic/MedMessageService.d.ts +0 -19
- package/dist/controller/medstatistic/MedMessageService.js +0 -95
- package/dist/controller/medstatistic/MedScoreService.d.ts +0 -21
- package/dist/controller/medstatistic/MedScoreService.js +0 -107
- package/dist/controller/medstatistic/constants.d.ts +0 -32
- package/dist/controller/medstatistic/constants.js +0 -43
- package/dist/controller/myinfo/AuthController.d.ts +0 -37
- package/dist/controller/myinfo/AuthController.js +0 -189
- package/dist/controller/myinfo/MyInfoController.d.ts +0 -13
- package/dist/controller/myinfo/MyInfoController.js +0 -51
- package/dist/controller/render/AppRenderController.d.ts +0 -11
- package/dist/controller/render/AppRenderController.js +0 -85
- package/dist/controller/test.controller.d.ts +0 -8
- package/dist/controller/test.controller.js +0 -51
- package/dist/filter/default.filter.d.ts +0 -7
- package/dist/filter/default.filter.js +0 -23
- package/dist/filter/notfound.filter.d.ts +0 -5
- package/dist/filter/notfound.filter.js +0 -20
- package/dist/index.d.ts +0 -71
- package/dist/index.js +0 -89
- package/dist/interface.d.ts +0 -27
- package/dist/interface.js +0 -3
- package/dist/libs/crud-pro/CrudPro.d.ts +0 -36
- package/dist/libs/crud-pro/CrudPro.js +0 -131
- package/dist/libs/crud-pro/defaultConfigs.d.ts +0 -4
- package/dist/libs/crud-pro/defaultConfigs.js +0 -13
- package/dist/libs/crud-pro/exceptions.d.ts +0 -104
- package/dist/libs/crud-pro/exceptions.js +0 -117
- package/dist/libs/crud-pro/interfaces.d.ts +0 -157
- package/dist/libs/crud-pro/interfaces.js +0 -12
- package/dist/libs/crud-pro/models/ExecuteContext.d.ts +0 -42
- package/dist/libs/crud-pro/models/ExecuteContext.js +0 -79
- package/dist/libs/crud-pro/models/ExecuteContextFunc.d.ts +0 -31
- package/dist/libs/crud-pro/models/ExecuteContextFunc.js +0 -64
- package/dist/libs/crud-pro/models/FuncContext.d.ts +0 -18
- package/dist/libs/crud-pro/models/FuncContext.js +0 -6
- package/dist/libs/crud-pro/models/RequestCfgModel.d.ts +0 -65
- package/dist/libs/crud-pro/models/RequestCfgModel.js +0 -81
- package/dist/libs/crud-pro/models/RequestModel.d.ts +0 -25
- package/dist/libs/crud-pro/models/RequestModel.js +0 -113
- package/dist/libs/crud-pro/models/ServiceHub.d.ts +0 -20
- package/dist/libs/crud-pro/models/ServiceHub.js +0 -2
- package/dist/libs/crud-pro/models/SqlCfgModel.d.ts +0 -22
- package/dist/libs/crud-pro/models/SqlCfgModel.js +0 -40
- package/dist/libs/crud-pro/models/SqlSegArg.d.ts +0 -6
- package/dist/libs/crud-pro/models/SqlSegArg.js +0 -12
- package/dist/libs/crud-pro/models/Transaction.d.ts +0 -29
- package/dist/libs/crud-pro/models/Transaction.js +0 -67
- package/dist/libs/crud-pro/models/TransactionMySQL.d.ts +0 -28
- package/dist/libs/crud-pro/models/TransactionMySQL.js +0 -76
- package/dist/libs/crud-pro/models/TransactionPostgres.d.ts +0 -28
- package/dist/libs/crud-pro/models/TransactionPostgres.js +0 -85
- package/dist/libs/crud-pro/models/TransactionSqlServer.d.ts +0 -34
- package/dist/libs/crud-pro/models/TransactionSqlServer.js +0 -92
- package/dist/libs/crud-pro/models/keys.d.ts +0 -106
- package/dist/libs/crud-pro/models/keys.js +0 -149
- package/dist/libs/crud-pro/services/CrudProCachedCfgService.d.ts +0 -10
- package/dist/libs/crud-pro/services/CrudProCachedCfgService.js +0 -61
- package/dist/libs/crud-pro/services/CrudProExecuteFuncService.d.ts +0 -9
- package/dist/libs/crud-pro/services/CrudProExecuteFuncService.js +0 -112
- package/dist/libs/crud-pro/services/CrudProExecuteSqlService.d.ts +0 -17
- package/dist/libs/crud-pro/services/CrudProExecuteSqlService.js +0 -227
- package/dist/libs/crud-pro/services/CrudProFieldUpdateService.d.ts +0 -9
- package/dist/libs/crud-pro/services/CrudProFieldUpdateService.js +0 -51
- package/dist/libs/crud-pro/services/CrudProFieldValidateService.d.ts +0 -13
- package/dist/libs/crud-pro/services/CrudProFieldValidateService.js +0 -148
- package/dist/libs/crud-pro/services/CrudProGenSqlCondition.d.ts +0 -24
- package/dist/libs/crud-pro/services/CrudProGenSqlCondition.js +0 -342
- package/dist/libs/crud-pro/services/CrudProGenSqlService.d.ts +0 -25
- package/dist/libs/crud-pro/services/CrudProGenSqlService.js +0 -174
- package/dist/libs/crud-pro/services/CrudProOriginToExecuteSql.d.ts +0 -32
- package/dist/libs/crud-pro/services/CrudProOriginToExecuteSql.js +0 -333
- package/dist/libs/crud-pro/services/CrudProServiceBase.d.ts +0 -28
- package/dist/libs/crud-pro/services/CrudProServiceBase.js +0 -78
- package/dist/libs/crud-pro/services/CrudProTableMetaService.d.ts +0 -8
- package/dist/libs/crud-pro/services/CrudProTableMetaService.js +0 -53
- package/dist/libs/crud-pro/services/CurdProServiceHub.d.ts +0 -32
- package/dist/libs/crud-pro/services/CurdProServiceHub.js +0 -64
- package/dist/libs/crud-pro/sql.txt +0 -120
- package/dist/libs/crud-pro/utils/CompareUtils.d.ts +0 -9
- package/dist/libs/crud-pro/utils/CompareUtils.js +0 -25
- package/dist/libs/crud-pro/utils/DatabaseName.d.ts +0 -9
- package/dist/libs/crud-pro/utils/DatabaseName.js +0 -29
- package/dist/libs/crud-pro/utils/DateTimeUtils.d.ts +0 -7
- package/dist/libs/crud-pro/utils/DateTimeUtils.js +0 -21
- package/dist/libs/crud-pro/utils/MemoryRefreshCache.d.ts +0 -19
- package/dist/libs/crud-pro/utils/MemoryRefreshCache.js +0 -47
- package/dist/libs/crud-pro/utils/MessageParseUtils.d.ts +0 -5
- package/dist/libs/crud-pro/utils/MessageParseUtils.js +0 -33
- package/dist/libs/crud-pro/utils/MixinUtils.d.ts +0 -39
- package/dist/libs/crud-pro/utils/MixinUtils.js +0 -255
- package/dist/libs/crud-pro/utils/ModelUtils.d.ts +0 -11
- package/dist/libs/crud-pro/utils/ModelUtils.js +0 -49
- package/dist/libs/crud-pro/utils/MultiKeyMap.d.ts +0 -11
- package/dist/libs/crud-pro/utils/MultiKeyMap.js +0 -63
- package/dist/libs/crud-pro/utils/SqlFuncUtils.d.ts +0 -5
- package/dist/libs/crud-pro/utils/SqlFuncUtils.js +0 -29
- package/dist/libs/crud-pro/utils/TypeUtils.d.ts +0 -40
- package/dist/libs/crud-pro/utils/TypeUtils.js +0 -166
- package/dist/libs/crud-pro/utils/ValidateUtils.d.ts +0 -3
- package/dist/libs/crud-pro/utils/ValidateUtils.js +0 -165
- package/dist/libs/crud-pro/utils/pool/MySQLUtils.d.ts +0 -3
- package/dist/libs/crud-pro/utils/pool/MySQLUtils.js +0 -19
- package/dist/libs/crud-pro/utils/pool/PostgresUtils.d.ts +0 -3
- package/dist/libs/crud-pro/utils/pool/PostgresUtils.js +0 -20
- package/dist/libs/crud-pro/utils/pool/SqlServerUtils.d.ts +0 -3
- package/dist/libs/crud-pro/utils/pool/SqlServerUtils.js +0 -20
- package/dist/libs/crud-pro/utils/sqlConvert/convertColumnName.d.ts +0 -4
- package/dist/libs/crud-pro/utils/sqlConvert/convertColumnName.js +0 -21
- package/dist/libs/crud-pro/utils/sqlConvert/convertMsSql.d.ts +0 -2
- package/dist/libs/crud-pro/utils/sqlConvert/convertMsSql.js +0 -11
- package/dist/libs/crud-pro/utils/sqlConvert/convertPgSql.d.ts +0 -2
- package/dist/libs/crud-pro/utils/sqlConvert/convertPgSql.js +0 -11
- package/dist/libs/crud-pro/utils/sqlConvert/convertPgType.d.ts +0 -2
- package/dist/libs/crud-pro/utils/sqlConvert/convertPgType.js +0 -128
- package/dist/libs/utils/common-dto.d.ts +0 -18
- package/dist/libs/utils/common-dto.js +0 -40
- package/dist/libs/utils/crypto-utils.d.ts +0 -3
- package/dist/libs/utils/crypto-utils.js +0 -46
- package/dist/libs/utils/fatcms-request.d.ts +0 -30
- package/dist/libs/utils/fatcms-request.js +0 -104
- package/dist/libs/utils/functions.d.ts +0 -4
- package/dist/libs/utils/functions.js +0 -63
- package/dist/libs/utils/ordernum-utils.d.ts +0 -2
- package/dist/libs/utils/ordernum-utils.js +0 -13
- package/dist/libs/utils/parseConfig.d.ts +0 -7
- package/dist/libs/utils/parseConfig.js +0 -44
- package/dist/libs/utils/parseCreateSql.d.ts +0 -5
- package/dist/libs/utils/parseCreateSql.js +0 -86
- package/dist/libs/utils/render-utils.d.ts +0 -28
- package/dist/libs/utils/render-utils.js +0 -135
- package/dist/middleware/forbidden.middleware.d.ts +0 -10
- package/dist/middleware/forbidden.middleware.js +0 -70
- package/dist/middleware/global.middleware.d.ts +0 -10
- package/dist/middleware/global.middleware.js +0 -246
- package/dist/middleware/permission.middleware.d.ts +0 -18
- package/dist/middleware/permission.middleware.js +0 -74
- package/dist/middleware/tx.middleware.d.ts +0 -9
- package/dist/middleware/tx.middleware.js +0 -40
- package/dist/models/SystemEntities.d.ts +0 -98
- package/dist/models/SystemEntities.js +0 -2
- package/dist/models/SystemPerm.d.ts +0 -95
- package/dist/models/SystemPerm.js +0 -100
- package/dist/models/SystemTables.d.ts +0 -27
- package/dist/models/SystemTables.js +0 -30
- package/dist/models/bizmodels.d.ts +0 -69
- package/dist/models/bizmodels.js +0 -34
- package/dist/models/contextLogger.d.ts +0 -25
- package/dist/models/contextLogger.js +0 -112
- package/dist/models/devops.d.ts +0 -12
- package/dist/models/devops.js +0 -19
- package/dist/models/userSession.d.ts +0 -61
- package/dist/models/userSession.js +0 -165
- package/dist/schedule/index.d.ts +0 -3
- package/dist/schedule/index.js +0 -69
- package/dist/service/AuthService.d.ts +0 -70
- package/dist/service/AuthService.js +0 -248
- package/dist/service/EnumInfoService.d.ts +0 -30
- package/dist/service/EnumInfoService.js +0 -123
- package/dist/service/FileCenterService.d.ts +0 -43
- package/dist/service/FileCenterService.js +0 -347
- package/dist/service/SysConfigService.d.ts +0 -7
- package/dist/service/SysConfigService.js +0 -45
- package/dist/service/UserAccountService.d.ts +0 -23
- package/dist/service/UserAccountService.js +0 -103
- package/dist/service/UserSessionService.d.ts +0 -16
- package/dist/service/UserSessionService.js +0 -85
- package/dist/service/VisitStatService.d.ts +0 -14
- package/dist/service/VisitStatService.js +0 -165
- package/dist/service/WorkbenchService.d.ts +0 -20
- package/dist/service/WorkbenchService.js +0 -153
- package/dist/service/anyapi/AnyApiSandboxService.d.ts +0 -15
- package/dist/service/anyapi/AnyApiSandboxService.js +0 -122
- package/dist/service/anyapi/AnyApiService.d.ts +0 -27
- package/dist/service/anyapi/AnyApiService.js +0 -179
- package/dist/service/base/ApiBaseService.d.ts +0 -15
- package/dist/service/base/ApiBaseService.js +0 -50
- package/dist/service/base/ApiRateLimiter.d.ts +0 -10
- package/dist/service/base/ApiRateLimiter.js +0 -51
- package/dist/service/base/BaseService.d.ts +0 -29
- package/dist/service/base/BaseService.js +0 -79
- package/dist/service/base/RedisCacheService.d.ts +0 -13
- package/dist/service/base/RedisCacheService.js +0 -50
- package/dist/service/crudstd/CrudStdActionService.d.ts +0 -17
- package/dist/service/crudstd/CrudStdActionService.js +0 -32
- package/dist/service/crudstd/CrudStdConstant.d.ts +0 -58
- package/dist/service/crudstd/CrudStdConstant.js +0 -64
- package/dist/service/crudstd/CrudStdRelationService.d.ts +0 -10
- package/dist/service/crudstd/CrudStdRelationService.js +0 -85
- package/dist/service/crudstd/CrudStdService.d.ts +0 -50
- package/dist/service/crudstd/CrudStdService.js +0 -182
- package/dist/service/curd/CurdMixByAccountService.d.ts +0 -9
- package/dist/service/curd/CurdMixByAccountService.js +0 -87
- package/dist/service/curd/CurdMixByDictService.d.ts +0 -13
- package/dist/service/curd/CurdMixByDictService.js +0 -111
- package/dist/service/curd/CurdMixByLinkToCustomService.d.ts +0 -22
- package/dist/service/curd/CurdMixByLinkToCustomService.js +0 -154
- package/dist/service/curd/CurdMixBySysConfigService.d.ts +0 -9
- package/dist/service/curd/CurdMixBySysConfigService.js +0 -78
- package/dist/service/curd/CurdMixByWorkbenchService.d.ts +0 -10
- package/dist/service/curd/CurdMixByWorkbenchService.js +0 -76
- package/dist/service/curd/CurdMixService.d.ts +0 -17
- package/dist/service/curd/CurdMixService.js +0 -76
- package/dist/service/curd/CurdMixUtils.d.ts +0 -28
- package/dist/service/curd/CurdMixUtils.js +0 -201
- package/dist/service/curd/CurdProService.d.ts +0 -39
- package/dist/service/curd/CurdProService.js +0 -322
- package/dist/service/proxyapi/ProxyApiLoadService.d.ts +0 -21
- package/dist/service/proxyapi/ProxyApiLoadService.js +0 -164
- package/dist/service/proxyapi/ProxyApiService.d.ts +0 -60
- package/dist/service/proxyapi/ProxyApiService.js +0 -260
- package/dist/service/proxyapi/ProxyApiUtils.d.ts +0 -15
- package/dist/service/proxyapi/ProxyApiUtils.js +0 -34
- package/dist/service/proxyapi/RouteHandler.d.ts +0 -5
- package/dist/service/proxyapi/RouteHandler.js +0 -9
- package/dist/service/proxyapi/RouteTrie.d.ts +0 -12
- package/dist/service/proxyapi/RouteTrie.js +0 -63
- package/dist/service/proxyapi/WeightedRandom.d.ts +0 -9
- package/dist/service/proxyapi/WeightedRandom.js +0 -31
- package/dist/service/proxyapi/WeightedRoundRobin.d.ts +0 -8
- package/dist/service/proxyapi/WeightedRoundRobin.js +0 -32
- package/dist/views/404_app.html +0 -31
- package/dist/views/404_workbench.html +0 -34
- package/dist/views/static/favicon.ico +0 -0
- package/src/config/config.default.ts +0 -172
- package/src/config/seed/aeskey.txt +0 -1
- package/src/config/utils.ts +0 -23
- package/src/configuration.ts +0 -83
- package/src/controller/base/BaseApiController.ts +0 -145
- package/src/controller/gateway/AnyApiGatewayController.ts +0 -33
- package/src/controller/gateway/CrudMtdGatewayController.ts +0 -107
- package/src/controller/gateway/CrudStdGatewayController.ts +0 -101
- package/src/controller/gateway/DocGatewayController.ts +0 -165
- package/src/controller/gateway/FileController.ts +0 -110
- package/src/controller/gateway/ProxyApiGatewayController.ts +0 -47
- package/src/controller/gateway/PublicApiController.ts +0 -145
- package/src/controller/gateway/StaticController.ts +0 -303
- package/src/controller/helpers.controller.ts +0 -161
- package/src/controller/home.controller.ts +0 -71
- package/src/controller/manage/AnyApiMangeApi.ts +0 -66
- package/src/controller/manage/AppLogMangeApi.ts +0 -53
- package/src/controller/manage/AppMangeApi.ts +0 -53
- package/src/controller/manage/AppPageMangeApi.ts +0 -52
- package/src/controller/manage/AppSchemaHistoryApi.ts +0 -49
- package/src/controller/manage/CrudMethodsMangeApi.ts +0 -49
- package/src/controller/manage/CrudStandardDesignApi.ts +0 -353
- package/src/controller/manage/DataDictManageApi.ts +0 -78
- package/src/controller/manage/DeployManageApi.ts +0 -179
- package/src/controller/manage/DocLibManageApi.ts +0 -69
- package/src/controller/manage/DocManageApi.ts +0 -99
- package/src/controller/manage/FileManageApi.ts +0 -45
- package/src/controller/manage/LowCodeTplManageApi.ts +0 -52
- package/src/controller/manage/MenuManageApi.ts +0 -63
- package/src/controller/manage/ProxyApiMangeApi.ts +0 -52
- package/src/controller/manage/SuperAdminManageApi.ts +0 -138
- package/src/controller/manage/SysConfigMangeApi.ts +0 -95
- package/src/controller/manage/SystemInfoManageApi.ts +0 -48
- package/src/controller/manage/UserAccountManageApi.ts +0 -88
- package/src/controller/manage/WorkbenchMangeApi.ts +0 -72
- package/src/controller/medstatistic/MedAdminController.ts +0 -221
- package/src/controller/medstatistic/MedClientController.ts +0 -188
- package/src/controller/medstatistic/MedMessageService.ts +0 -89
- package/src/controller/medstatistic/MedScoreService.ts +0 -108
- package/src/controller/medstatistic/constants.ts +0 -63
- package/src/controller/myinfo/AuthController.ts +0 -174
- package/src/controller/myinfo/MyInfoController.ts +0 -32
- package/src/controller/render/AppRenderController.ts +0 -76
- package/src/controller/test.controller.ts +0 -37
- package/src/filter/default.filter.ts +0 -13
- package/src/filter/notfound.filter.ts +0 -10
- package/src/index.ts +0 -71
- package/src/interface.ts +0 -31
- package/src/libs/crud-pro/CrudPro.ts +0 -158
- package/src/libs/crud-pro/defaultConfigs.ts +0 -13
- package/src/libs/crud-pro/exceptions.ts +0 -124
- package/src/libs/crud-pro/interfaces.ts +0 -183
- package/src/libs/crud-pro/models/ExecuteContext.ts +0 -111
- package/src/libs/crud-pro/models/ExecuteContextFunc.ts +0 -86
- package/src/libs/crud-pro/models/FuncContext.ts +0 -21
- package/src/libs/crud-pro/models/RequestCfgModel.ts +0 -141
- package/src/libs/crud-pro/models/RequestModel.ts +0 -141
- package/src/libs/crud-pro/models/ServiceHub.ts +0 -32
- package/src/libs/crud-pro/models/SqlCfgModel.ts +0 -52
- package/src/libs/crud-pro/models/SqlSegArg.ts +0 -13
- package/src/libs/crud-pro/models/Transaction.ts +0 -74
- package/src/libs/crud-pro/models/TransactionMySQL.ts +0 -79
- package/src/libs/crud-pro/models/TransactionPostgres.ts +0 -91
- package/src/libs/crud-pro/models/TransactionSqlServer.ts +0 -107
- package/src/libs/crud-pro/models/keys.ts +0 -159
- package/src/libs/crud-pro/services/CrudProCachedCfgService.ts +0 -75
- package/src/libs/crud-pro/services/CrudProExecuteFuncService.ts +0 -128
- package/src/libs/crud-pro/services/CrudProExecuteSqlService.ts +0 -279
- package/src/libs/crud-pro/services/CrudProFieldUpdateService.ts +0 -60
- package/src/libs/crud-pro/services/CrudProFieldValidateService.ts +0 -180
- package/src/libs/crud-pro/services/CrudProGenSqlCondition.ts +0 -373
- package/src/libs/crud-pro/services/CrudProGenSqlService.ts +0 -202
- package/src/libs/crud-pro/services/CrudProOriginToExecuteSql.ts +0 -397
- package/src/libs/crud-pro/services/CrudProServiceBase.ts +0 -98
- package/src/libs/crud-pro/services/CrudProTableMetaService.ts +0 -59
- package/src/libs/crud-pro/services/CurdProServiceHub.ts +0 -92
- package/src/libs/crud-pro/sql.txt +0 -120
- package/src/libs/crud-pro/utils/CompareUtils.ts +0 -23
- package/src/libs/crud-pro/utils/DatabaseName.ts +0 -40
- package/src/libs/crud-pro/utils/DateTimeUtils.ts +0 -20
- package/src/libs/crud-pro/utils/MemoryRefreshCache.ts +0 -64
- package/src/libs/crud-pro/utils/MessageParseUtils.ts +0 -33
- package/src/libs/crud-pro/utils/MixinUtils.ts +0 -285
- package/src/libs/crud-pro/utils/ModelUtils.ts +0 -55
- package/src/libs/crud-pro/utils/MultiKeyMap.ts +0 -72
- package/src/libs/crud-pro/utils/SqlFuncUtils.ts +0 -29
- package/src/libs/crud-pro/utils/TypeUtils.ts +0 -188
- package/src/libs/crud-pro/utils/ValidateUtils.ts +0 -167
- package/src/libs/crud-pro/utils/pool/MySQLUtils.ts +0 -20
- package/src/libs/crud-pro/utils/pool/PostgresUtils.ts +0 -22
- package/src/libs/crud-pro/utils/pool/SqlServerUtils.ts +0 -22
- package/src/libs/crud-pro/utils/sqlConvert/convertColumnName.ts +0 -26
- package/src/libs/crud-pro/utils/sqlConvert/convertMsSql.ts +0 -11
- package/src/libs/crud-pro/utils/sqlConvert/convertPgSql.ts +0 -11
- package/src/libs/crud-pro/utils/sqlConvert/convertPgType.ts +0 -129
- package/src/libs/utils/common-dto.ts +0 -52
- package/src/libs/utils/crypto-utils.ts +0 -52
- package/src/libs/utils/fatcms-request.ts +0 -115
- package/src/libs/utils/functions.ts +0 -67
- package/src/libs/utils/ordernum-utils.ts +0 -18
- package/src/libs/utils/parseConfig.ts +0 -62
- package/src/libs/utils/parseCreateSql.ts +0 -91
- package/src/libs/utils/render-utils.ts +0 -184
- package/src/middleware/forbidden.middleware.ts +0 -71
- package/src/middleware/global.middleware.ts +0 -278
- package/src/middleware/permission.middleware.ts +0 -81
- package/src/middleware/tx.middleware.ts +0 -30
- package/src/models/SystemEntities.ts +0 -115
- package/src/models/SystemPerm.ts +0 -105
- package/src/models/SystemTables.ts +0 -30
- package/src/models/bizmodels.ts +0 -89
- package/src/models/contextLogger.ts +0 -132
- package/src/models/devops.ts +0 -17
- package/src/models/userSession.ts +0 -216
- package/src/schedule/index.ts +0 -73
- package/src/service/AuthService.ts +0 -270
- package/src/service/EnumInfoService.ts +0 -129
- package/src/service/FileCenterService.ts +0 -394
- package/src/service/SysConfigService.ts +0 -34
- package/src/service/UserAccountService.ts +0 -100
- package/src/service/UserSessionService.ts +0 -81
- package/src/service/VisitStatService.ts +0 -179
- package/src/service/WorkbenchService.ts +0 -160
- package/src/service/anyapi/AnyApiSandboxService.ts +0 -121
- package/src/service/anyapi/AnyApiService.ts +0 -184
- package/src/service/base/ApiBaseService.ts +0 -42
- package/src/service/base/ApiRateLimiter.ts +0 -59
- package/src/service/base/BaseService.ts +0 -74
- package/src/service/base/RedisCacheService.ts +0 -38
- package/src/service/crudstd/CrudStdActionService.ts +0 -27
- package/src/service/crudstd/CrudStdConstant.ts +0 -62
- package/src/service/crudstd/CrudStdRelationService.ts +0 -78
- package/src/service/crudstd/CrudStdService.ts +0 -188
- package/src/service/curd/CurdMixByAccountService.ts +0 -83
- package/src/service/curd/CurdMixByDictService.ts +0 -113
- package/src/service/curd/CurdMixByLinkToCustomService.ts +0 -167
- package/src/service/curd/CurdMixBySysConfigService.ts +0 -78
- package/src/service/curd/CurdMixByWorkbenchService.ts +0 -68
- package/src/service/curd/CurdMixService.ts +0 -65
- package/src/service/curd/CurdMixUtils.ts +0 -248
- package/src/service/curd/CurdProService.ts +0 -379
- package/src/service/proxyapi/ProxyApiLoadService.ts +0 -165
- package/src/service/proxyapi/ProxyApiService.ts +0 -262
- package/src/service/proxyapi/ProxyApiUtils.ts +0 -32
- package/src/service/proxyapi/RouteHandler.ts +0 -8
- package/src/service/proxyapi/RouteTrie.ts +0 -74
- package/src/service/proxyapi/WeightedRandom.ts +0 -37
- package/src/service/proxyapi/WeightedRoundRobin.ts +0 -44
- package/src/views/404_app.html +0 -31
- package/src/views/404_workbench.html +0 -34
- package/src/views/static/favicon.ico +0 -0
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { SqlSegArg } from '../models/SqlSegArg';
|
|
2
|
-
import { SqlCfgModel } from "../models/SqlCfgModel";
|
|
3
|
-
declare class CrudProGenSqlCondition {
|
|
4
|
-
private readonly sqlCfg;
|
|
5
|
-
constructor(sqlCfg: SqlCfgModel);
|
|
6
|
-
generateCondition(condition: any): SqlSegArg;
|
|
7
|
-
/**
|
|
8
|
-
* condition = {$or:[{name:'zhangsan'},{name:'lisi'},{age: {$gt:18}}],sex:1}
|
|
9
|
-
* where (name = 'zhangsan' or name = 'lisi' or age > 18) and sex = 1
|
|
10
|
-
* @param condition
|
|
11
|
-
* @private
|
|
12
|
-
*/
|
|
13
|
-
private generateByLogicalKey;
|
|
14
|
-
private generateByLogicalOR;
|
|
15
|
-
private generateByCompareKey;
|
|
16
|
-
/**
|
|
17
|
-
* 参数校验
|
|
18
|
-
* @param key
|
|
19
|
-
* @param map
|
|
20
|
-
* @private
|
|
21
|
-
*/
|
|
22
|
-
private generateByCompareKeyCheckParam;
|
|
23
|
-
}
|
|
24
|
-
export { CrudProGenSqlCondition };
|
|
@@ -1,342 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CrudProGenSqlCondition = void 0;
|
|
4
|
-
const SqlSegArg_1 = require("../models/SqlSegArg");
|
|
5
|
-
const MixinUtils_1 = require("../utils/MixinUtils");
|
|
6
|
-
const keys_1 = require("../models/keys");
|
|
7
|
-
const exceptions_1 = require("../exceptions");
|
|
8
|
-
const TypeUtils_1 = require("../utils/TypeUtils");
|
|
9
|
-
const convertColumnName_1 = require("../utils/sqlConvert/convertColumnName");
|
|
10
|
-
const { equalsIgnoreCase, isEmpty, isNotEmpty } = MixinUtils_1.MixinUtils;
|
|
11
|
-
const { isBasicType, isNumber } = TypeUtils_1.TypeUtils;
|
|
12
|
-
const createFunc = (sqlCfg) => {
|
|
13
|
-
return {
|
|
14
|
-
toSqlColumnName: (columnName) => {
|
|
15
|
-
return (0, convertColumnName_1.toSqlColumnName)(columnName, sqlCfg);
|
|
16
|
-
},
|
|
17
|
-
toMatchSqlColumnName: (columnName) => {
|
|
18
|
-
const arr = columnName.split(',');
|
|
19
|
-
return arr
|
|
20
|
-
.map(s => (0, convertColumnName_1.toSqlColumnName)(s.trim(), sqlCfg))
|
|
21
|
-
.join(',');
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
class ValueChecker {
|
|
26
|
-
checkBasicArrayAndNotEmpty(value0, message) {
|
|
27
|
-
// 不能为空
|
|
28
|
-
if (!value0 || !Array.isArray(value0) || value0.length === 0) {
|
|
29
|
-
throw new exceptions_1.CommonException(exceptions_1.Exceptions.REQUEST_PARAM_ERROR, message);
|
|
30
|
-
}
|
|
31
|
-
// 元素必须是基本数据类型
|
|
32
|
-
for (let i = 0; i < value0.length; i++) {
|
|
33
|
-
const value0Element = value0[i];
|
|
34
|
-
if (!TypeUtils_1.TypeUtils.isBasicType(value0Element)) {
|
|
35
|
-
throw new exceptions_1.CommonException(exceptions_1.Exceptions.REQUEST_PARAM_ERROR, message);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
function hasCompareKey(compare) {
|
|
41
|
-
return keys_1.KeysOfConditions.COMPARE_KEYS.has(compare);
|
|
42
|
-
}
|
|
43
|
-
const valueChecker = new ValueChecker();
|
|
44
|
-
class CrudProGenSqlCondition {
|
|
45
|
-
constructor(sqlCfg) {
|
|
46
|
-
this.sqlCfg = sqlCfg;
|
|
47
|
-
}
|
|
48
|
-
generateCondition(condition) {
|
|
49
|
-
if (isEmpty(condition)) {
|
|
50
|
-
return new SqlSegArg_1.SqlSegArg(' 1=1 ');
|
|
51
|
-
}
|
|
52
|
-
const sqlArgModel = this.generateByLogicalKey(condition);
|
|
53
|
-
const sql = ' 1=1 and ' + sqlArgModel.sql;
|
|
54
|
-
return new SqlSegArg_1.SqlSegArg(sql, sqlArgModel.args);
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* condition = {$or:[{name:'zhangsan'},{name:'lisi'},{age: {$gt:18}}],sex:1}
|
|
58
|
-
* where (name = 'zhangsan' or name = 'lisi' or age > 18) and sex = 1
|
|
59
|
-
* @param condition
|
|
60
|
-
* @private
|
|
61
|
-
*/
|
|
62
|
-
generateByLogicalKey(condition) {
|
|
63
|
-
if (isEmpty(condition)) {
|
|
64
|
-
return null;
|
|
65
|
-
}
|
|
66
|
-
const { toSqlColumnName } = createFunc(this.sqlCfg);
|
|
67
|
-
const tmpSqlList = [];
|
|
68
|
-
const tmpArgList = [];
|
|
69
|
-
const keys = Object.keys(condition);
|
|
70
|
-
for (let i = 0; i < keys.length; i++) {
|
|
71
|
-
const key = keys[i];
|
|
72
|
-
const value = condition[key];
|
|
73
|
-
if (!hasCompareKey(key)) {
|
|
74
|
-
// 第一层的key,不能是比较运算符。
|
|
75
|
-
// OR
|
|
76
|
-
if (equalsIgnoreCase(keys_1.KeysOfConditions.$OR, key)) {
|
|
77
|
-
TypeUtils_1.TypeUtils.assertJsonArray(value, exceptions_1.Exceptions.REQUEST_OR_PARAM_MUST_ARRAY);
|
|
78
|
-
const a = this.generateByLogicalOR(value);
|
|
79
|
-
if (a != null) {
|
|
80
|
-
tmpSqlList.push(a.sql);
|
|
81
|
-
if (isNotEmpty(a.args)) {
|
|
82
|
-
tmpArgList.push(...a.args);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
// AND
|
|
87
|
-
else if (TypeUtils_1.TypeUtils.isBasicType(value)) {
|
|
88
|
-
tmpSqlList.push(toSqlColumnName(key) + '= ?');
|
|
89
|
-
tmpArgList.push(value);
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
// AND
|
|
93
|
-
const a = this.generateByCompareKey(key, value);
|
|
94
|
-
if (a != null) {
|
|
95
|
-
tmpSqlList.push(a.sql);
|
|
96
|
-
if (MixinUtils_1.MixinUtils.isNotEmpty(a.args)) {
|
|
97
|
-
tmpArgList.push(...a.args);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
if (isEmpty(tmpSqlList)) {
|
|
104
|
-
return null;
|
|
105
|
-
}
|
|
106
|
-
// const sql = "(" + StringUtils.join(tmpSqlList, " AND ") + ")";
|
|
107
|
-
const sql = '(' + tmpSqlList.join(' AND ') + ')';
|
|
108
|
-
return new SqlSegArg_1.SqlSegArg(sql, tmpArgList);
|
|
109
|
-
}
|
|
110
|
-
generateByLogicalOR(jsonArray) {
|
|
111
|
-
if (MixinUtils_1.MixinUtils.isEmpty(jsonArray)) {
|
|
112
|
-
return null;
|
|
113
|
-
}
|
|
114
|
-
const tmpSqlList = [];
|
|
115
|
-
const tmpArgList = [];
|
|
116
|
-
for (let i = 0; i < jsonArray.length; i++) {
|
|
117
|
-
const jsonObject = jsonArray[i];
|
|
118
|
-
const a = this.generateByLogicalKey(jsonObject);
|
|
119
|
-
if (a != null) {
|
|
120
|
-
tmpSqlList.push(a.sql);
|
|
121
|
-
if (MixinUtils_1.MixinUtils.isNotEmpty(a.args)) {
|
|
122
|
-
tmpArgList.push(...a.args);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
const sql = '(' + tmpSqlList.join(' OR ') + ')';
|
|
127
|
-
return new SqlSegArg_1.SqlSegArg(sql, tmpArgList);
|
|
128
|
-
}
|
|
129
|
-
// 例如:
|
|
130
|
-
// {name:1, age:{"$gt":5, "$lt":10}, } ==> name = 1 and (age > 5 and age < 10)
|
|
131
|
-
// {name:1, age:{"$nin":[1,2,3],"$lt":10} } ==> name = 1 and (age not in (1,2,3) and age < 10)
|
|
132
|
-
// 比较运算符
|
|
133
|
-
generateByCompareKey(key, map) {
|
|
134
|
-
if (isEmpty(map)) {
|
|
135
|
-
return null;
|
|
136
|
-
}
|
|
137
|
-
const { toSqlColumnName, toMatchSqlColumnName } = createFunc(this.sqlCfg);
|
|
138
|
-
this.generateByCompareKeyCheckParam(key, map);
|
|
139
|
-
const tmpSqlList = [];
|
|
140
|
-
const tmpArgList = [];
|
|
141
|
-
let hasNoArgSql = false;
|
|
142
|
-
const compareSet = Object.keys(map);
|
|
143
|
-
for (let i = 0; i < compareSet.length; i++) {
|
|
144
|
-
const compare = compareSet[i];
|
|
145
|
-
if (hasCompareKey(compare)) {
|
|
146
|
-
const value0 = map[compare];
|
|
147
|
-
let tmpSql = '';
|
|
148
|
-
if (equalsIgnoreCase(keys_1.KeysOfConditions.$NULL, compare)) {
|
|
149
|
-
tmpSql = `${toSqlColumnName(key)} is null `;
|
|
150
|
-
hasNoArgSql = true;
|
|
151
|
-
}
|
|
152
|
-
else if (equalsIgnoreCase(keys_1.KeysOfConditions.$NOT_NULL, compare)) {
|
|
153
|
-
tmpSql = `${toSqlColumnName(key)} is not null `;
|
|
154
|
-
hasNoArgSql = true;
|
|
155
|
-
}
|
|
156
|
-
else if (equalsIgnoreCase(keys_1.KeysOfConditions.$GT, compare)) {
|
|
157
|
-
tmpArgList.push(value0);
|
|
158
|
-
tmpSql = `${toSqlColumnName(key)} > ?`;
|
|
159
|
-
}
|
|
160
|
-
else if (equalsIgnoreCase(keys_1.KeysOfConditions.$GTE, compare)) {
|
|
161
|
-
tmpArgList.push(value0);
|
|
162
|
-
tmpSql = `${toSqlColumnName(key)} >= ?`;
|
|
163
|
-
}
|
|
164
|
-
else if (equalsIgnoreCase(keys_1.KeysOfConditions.$LT, compare)) {
|
|
165
|
-
tmpArgList.push(value0);
|
|
166
|
-
tmpSql = `${toSqlColumnName(key)} < ?`;
|
|
167
|
-
}
|
|
168
|
-
else if (equalsIgnoreCase(keys_1.KeysOfConditions.$LTE, compare)) {
|
|
169
|
-
tmpArgList.push(value0);
|
|
170
|
-
tmpSql = `${toSqlColumnName(key)} <= ?`;
|
|
171
|
-
}
|
|
172
|
-
else if (equalsIgnoreCase(keys_1.KeysOfConditions.$NE, compare)) {
|
|
173
|
-
tmpArgList.push(value0);
|
|
174
|
-
tmpSql = `${toSqlColumnName(key)} != ?`;
|
|
175
|
-
}
|
|
176
|
-
else if (equalsIgnoreCase(keys_1.KeysOfConditions.$IN, compare)) {
|
|
177
|
-
const array = [...value0];
|
|
178
|
-
if (isNotEmpty(array)) {
|
|
179
|
-
const pm = array.map(() => '?').join(',');
|
|
180
|
-
tmpSql = `${toSqlColumnName(key)} in (${pm})`;
|
|
181
|
-
tmpArgList.push(...array);
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
else if (equalsIgnoreCase(keys_1.KeysOfConditions.$NIN, compare)) {
|
|
185
|
-
const array = [...value0];
|
|
186
|
-
if (isNotEmpty(array)) {
|
|
187
|
-
const pm = array.map(() => '?').join(',');
|
|
188
|
-
tmpSql = `${toSqlColumnName(key)} not in (${pm})`;
|
|
189
|
-
tmpArgList.push(...array);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
else if (equalsIgnoreCase(keys_1.KeysOfConditions.$LIKE, compare)) {
|
|
193
|
-
tmpArgList.push(value0);
|
|
194
|
-
tmpSql = `${toSqlColumnName(key)} COLLATE UTF8MB4_GENERAL_CI like concat(?, '%')`; // like前缀匹配
|
|
195
|
-
if (this.sqlCfg.sqlDdType === keys_1.SqlDbType.postgres) {
|
|
196
|
-
tmpSql = `${toSqlColumnName(key)} like concat(?, '%')`; // like前缀匹配
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
else if (equalsIgnoreCase(keys_1.KeysOfConditions.$NOT_LIKE, compare)) {
|
|
200
|
-
tmpArgList.push(value0);
|
|
201
|
-
tmpSql = `${toSqlColumnName(key)} COLLATE UTF8MB4_GENERAL_CI not like concat(?, '%')`;
|
|
202
|
-
if (this.sqlCfg.sqlDdType === keys_1.SqlDbType.postgres) {
|
|
203
|
-
tmpSql = `${toSqlColumnName(key)} not like concat(?, '%')`;
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
else if (equalsIgnoreCase(keys_1.KeysOfConditions.$LIKE_INCLUDE, compare)) {
|
|
207
|
-
tmpArgList.push(value0);
|
|
208
|
-
tmpSql = `${toSqlColumnName(key)} COLLATE UTF8MB4_GENERAL_CI like concat('%', ?, '%')`; // like包含
|
|
209
|
-
if (this.sqlCfg.sqlDdType === keys_1.SqlDbType.postgres) {
|
|
210
|
-
tmpSql = `${toSqlColumnName(key)} like concat('%', ?, '%')`; // like包含
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
else if (equalsIgnoreCase(keys_1.KeysOfConditions.$NOT_LIKE_INCLUDE, compare)) {
|
|
214
|
-
tmpArgList.push(value0);
|
|
215
|
-
tmpSql = `${toSqlColumnName(key)} COLLATE UTF8MB4_GENERAL_CI not like concat('%',?, '%')`; // like不包含
|
|
216
|
-
if (this.sqlCfg.sqlDdType === keys_1.SqlDbType.postgres) {
|
|
217
|
-
tmpSql = `${toSqlColumnName(key)} not like concat('%',?, '%')`; // like不包含
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
else if (equalsIgnoreCase(keys_1.KeysOfConditions.$MATCH, compare)) {
|
|
221
|
-
tmpArgList.push(value0);
|
|
222
|
-
tmpSql = `match(${toMatchSqlColumnName(key)}) against(?)`;
|
|
223
|
-
}
|
|
224
|
-
else if (equalsIgnoreCase(keys_1.KeysOfConditions.$MATCH_BOOL, compare)) {
|
|
225
|
-
tmpArgList.push(value0);
|
|
226
|
-
tmpSql = `match(${toMatchSqlColumnName(key)}) against( ? in boolean mode)`;
|
|
227
|
-
}
|
|
228
|
-
else if (equalsIgnoreCase(keys_1.KeysOfConditions.$RANGE, compare)) {
|
|
229
|
-
const array = [...value0];
|
|
230
|
-
if (isNotEmpty(array) && array.length === 2) {
|
|
231
|
-
tmpSql = `(${toSqlColumnName(key)} between ? and ? )`;
|
|
232
|
-
tmpArgList.push(...array);
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
tmpSqlList.push(tmpSql);
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
if (isEmpty(tmpArgList) && !hasNoArgSql) {
|
|
239
|
-
return null;
|
|
240
|
-
}
|
|
241
|
-
const sql = '( ' + tmpSqlList.join(' and ') + ' )';
|
|
242
|
-
return new SqlSegArg_1.SqlSegArg(sql, tmpArgList);
|
|
243
|
-
}
|
|
244
|
-
/**
|
|
245
|
-
* 参数校验
|
|
246
|
-
* @param key
|
|
247
|
-
* @param map
|
|
248
|
-
* @private
|
|
249
|
-
*/
|
|
250
|
-
generateByCompareKeyCheckParam(key, map) {
|
|
251
|
-
if (isEmpty(map)) {
|
|
252
|
-
return null;
|
|
253
|
-
}
|
|
254
|
-
const compareSet = Object.keys(map);
|
|
255
|
-
const throwCommonException = (name, type) => {
|
|
256
|
-
throw new exceptions_1.CommonException(exceptions_1.Exceptions.REQUEST_PARAM_ERROR, `${name}参数必须是${type}`);
|
|
257
|
-
};
|
|
258
|
-
for (let i = 0; i < compareSet.length; i++) {
|
|
259
|
-
const compare = compareSet[i];
|
|
260
|
-
if (hasCompareKey(compare)) {
|
|
261
|
-
const value0 = map[compare];
|
|
262
|
-
if (equalsIgnoreCase(keys_1.KeysOfConditions.$GT, compare)) {
|
|
263
|
-
if (!isBasicType(value0)) {
|
|
264
|
-
throwCommonException(keys_1.KeysOfConditions.$GT, '字符串、数字');
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
else if (equalsIgnoreCase(keys_1.KeysOfConditions.$GTE, compare)) {
|
|
268
|
-
if (!isBasicType(value0)) {
|
|
269
|
-
throwCommonException(keys_1.KeysOfConditions.$GTE, '字符串、数字');
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
else if (equalsIgnoreCase(keys_1.KeysOfConditions.$LT, compare)) {
|
|
273
|
-
if (!isBasicType(value0)) {
|
|
274
|
-
throwCommonException(keys_1.KeysOfConditions.$LT, '字符串、数字');
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
else if (equalsIgnoreCase(keys_1.KeysOfConditions.$LTE, compare)) {
|
|
278
|
-
if (!isBasicType(value0)) {
|
|
279
|
-
throwCommonException(keys_1.KeysOfConditions.$LTE, '字符串、数字');
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
else if (equalsIgnoreCase(keys_1.KeysOfConditions.$NE, compare)) {
|
|
283
|
-
if (!isBasicType(value0)) {
|
|
284
|
-
throwCommonException(keys_1.KeysOfConditions.$NE, '字符串、数字');
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
else if (equalsIgnoreCase(keys_1.KeysOfConditions.$IN, compare)) {
|
|
288
|
-
valueChecker.checkBasicArrayAndNotEmpty(value0, `操作符${compare}的参数必须是一个非空数组,且元素是基本数据类型(数字、字符串)`);
|
|
289
|
-
}
|
|
290
|
-
else if (equalsIgnoreCase(keys_1.KeysOfConditions.$NIN, compare)) {
|
|
291
|
-
valueChecker.checkBasicArrayAndNotEmpty(value0, `操作符${compare}的参数必须是一个非空数组,且元素是基本数据类型(数字、字符串)`);
|
|
292
|
-
}
|
|
293
|
-
else if (equalsIgnoreCase(keys_1.KeysOfConditions.$LIKE, compare)) {
|
|
294
|
-
if (!isBasicType(value0)) {
|
|
295
|
-
throwCommonException(keys_1.KeysOfConditions.$LIKE, '字符串');
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
else if (equalsIgnoreCase(keys_1.KeysOfConditions.$NOT_LIKE, compare)) {
|
|
299
|
-
if (!isBasicType(value0)) {
|
|
300
|
-
throwCommonException(keys_1.KeysOfConditions.$NOT_LIKE, '字符串');
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
else if (equalsIgnoreCase(keys_1.KeysOfConditions.$LIKE_INCLUDE, compare)) {
|
|
304
|
-
if (!isBasicType(value0)) {
|
|
305
|
-
throwCommonException(keys_1.KeysOfConditions.$LIKE_INCLUDE, '字符串');
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
else if (equalsIgnoreCase(keys_1.KeysOfConditions.$NOT_LIKE_INCLUDE, compare)) {
|
|
309
|
-
if (!isBasicType(value0)) {
|
|
310
|
-
throwCommonException(keys_1.KeysOfConditions.$NOT_LIKE_INCLUDE, '字符串');
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
else if (equalsIgnoreCase(keys_1.KeysOfConditions.$MATCH, compare)) {
|
|
314
|
-
if (!isBasicType(value0)) {
|
|
315
|
-
throwCommonException(keys_1.KeysOfConditions.$MATCH, '字符串');
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
else if (equalsIgnoreCase(keys_1.KeysOfConditions.$MATCH_BOOL, compare)) {
|
|
319
|
-
if (!isBasicType(value0)) {
|
|
320
|
-
throwCommonException(keys_1.KeysOfConditions.$MATCH_BOOL, '字符串');
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
else if (equalsIgnoreCase(keys_1.KeysOfConditions.$RANGE, compare)) {
|
|
324
|
-
valueChecker.checkBasicArrayAndNotEmpty(value0, `操作符${compare}的参数必须是一个非空数组,且元素是两个数字组成的数组`);
|
|
325
|
-
const array = [...value0];
|
|
326
|
-
if (isNotEmpty(array) && array.length === 2) {
|
|
327
|
-
for (let j = 0; j < array.length; j++) {
|
|
328
|
-
const arrayElement = array[j];
|
|
329
|
-
if (!isNumber(arrayElement)) {
|
|
330
|
-
throwCommonException(keys_1.KeysOfConditions.$RANGE, '数组(两个数字)');
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
else {
|
|
335
|
-
throwCommonException(keys_1.KeysOfConditions.$RANGE, '数组(两个数字)');
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
exports.CrudProGenSqlCondition = CrudProGenSqlCondition;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { CrudProServiceBase } from './CrudProServiceBase';
|
|
2
|
-
declare class CrudProGenSqlService extends CrudProServiceBase {
|
|
3
|
-
generateSQLList(): Promise<void>;
|
|
4
|
-
private generateOriginSql;
|
|
5
|
-
/**
|
|
6
|
-
* 删除语句
|
|
7
|
-
* @param cfgModel
|
|
8
|
-
* @private
|
|
9
|
-
*/
|
|
10
|
-
private generateOriginSqlForDelete;
|
|
11
|
-
/**
|
|
12
|
-
* 创建插入OR更新语句
|
|
13
|
-
* @param cfgModel
|
|
14
|
-
* @private
|
|
15
|
-
*/
|
|
16
|
-
private generateOriginSqlForDuplicateInsert;
|
|
17
|
-
/**
|
|
18
|
-
* 创建插入语句
|
|
19
|
-
* @param cfgModel
|
|
20
|
-
* @private
|
|
21
|
-
*/
|
|
22
|
-
private generateOriginSqlForInsert;
|
|
23
|
-
private generateExecuteSql;
|
|
24
|
-
}
|
|
25
|
-
export { CrudProGenSqlService };
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CrudProGenSqlService = void 0;
|
|
4
|
-
const CrudProServiceBase_1 = require("./CrudProServiceBase");
|
|
5
|
-
const exceptions_1 = require("../exceptions");
|
|
6
|
-
const MixinUtils_1 = require("../utils/MixinUtils");
|
|
7
|
-
const keys_1 = require("../models/keys");
|
|
8
|
-
const { equalsIgnoreCase, isEmpty, isNotEmpty } = MixinUtils_1.MixinUtils;
|
|
9
|
-
class CrudProGenSqlService extends CrudProServiceBase_1.CrudProServiceBase {
|
|
10
|
-
async generateSQLList() {
|
|
11
|
-
const exeCtx = this.getExecuteContext();
|
|
12
|
-
const reqCfg = exeCtx.getCfgModel();
|
|
13
|
-
const sqlSimpleName = reqCfg.sqlSimpleName;
|
|
14
|
-
// 简单模式
|
|
15
|
-
const isSimpleMode = isNotEmpty(sqlSimpleName) && sqlSimpleName.startsWith('SIMPLE_');
|
|
16
|
-
// 拼接简单模式的SQL
|
|
17
|
-
if (isSimpleMode) {
|
|
18
|
-
this.generateOriginSql();
|
|
19
|
-
}
|
|
20
|
-
await this.generateExecuteSql();
|
|
21
|
-
}
|
|
22
|
-
generateOriginSql() {
|
|
23
|
-
const exeCtx = this.getExecuteContext();
|
|
24
|
-
const cfgModel = exeCtx.getCfgModel();
|
|
25
|
-
const simpleSqlName = cfgModel.sqlSimpleName;
|
|
26
|
-
// 只有当设置了simpleSqlName时,才启用内置的SQL生成
|
|
27
|
-
if (isEmpty(simpleSqlName)) {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
cfgModel.sqlCfgList = [];
|
|
31
|
-
let sql1 = null;
|
|
32
|
-
let sql2 = null;
|
|
33
|
-
let sql3 = null;
|
|
34
|
-
if (equalsIgnoreCase(keys_1.KeysOfSimpleSQL.SIMPLE_QUERY, simpleSqlName)) {
|
|
35
|
-
sql1 = 'select @@columns from @@table where @@asWhere:condition @@orderBys @@offsetLimit';
|
|
36
|
-
cfgModel.addSqlCfgModel('rows', sql1);
|
|
37
|
-
}
|
|
38
|
-
else if (equalsIgnoreCase(keys_1.KeysOfSimpleSQL.SIMPLE_QUERY_ONE, simpleSqlName)) {
|
|
39
|
-
sql1 = 'select @@columns from @@table where @@asWhere:condition @@orderBys limit 1';
|
|
40
|
-
cfgModel.addSqlCfgModel('row', sql1, keys_1.KeysOfSqlResPicker.RESULT_FIRST_ROW);
|
|
41
|
-
}
|
|
42
|
-
else if (equalsIgnoreCase(keys_1.KeysOfSimpleSQL.SIMPLE_QUERY_COUNT, simpleSqlName)) {
|
|
43
|
-
sql1 = 'select count(0) as total_count from @@table where @@asWhere:condition';
|
|
44
|
-
cfgModel.addSqlCfgModel('total_count', sql1, keys_1.KeysOfSqlResPicker.RESULT_TOTAL_COUNT);
|
|
45
|
-
}
|
|
46
|
-
else if (equalsIgnoreCase(keys_1.KeysOfSimpleSQL.SIMPLE_QUERY_PAGE, simpleSqlName)) {
|
|
47
|
-
sql1 = 'select @@columns from @@table where @@asWhere:condition @@orderBys @@offsetLimit ';
|
|
48
|
-
sql2 = 'select count(0) as total_count from @@table where @@asWhere:condition';
|
|
49
|
-
cfgModel.addSqlCfgModel('rows', sql1);
|
|
50
|
-
cfgModel.addSqlCfgModel('total_count', sql2, keys_1.KeysOfSqlResPicker.RESULT_TOTAL_COUNT);
|
|
51
|
-
}
|
|
52
|
-
else if (equalsIgnoreCase(keys_1.KeysOfSimpleSQL.SIMPLE_DELETE, simpleSqlName)) {
|
|
53
|
-
sql1 = this.generateOriginSqlForDelete(cfgModel);
|
|
54
|
-
cfgModel.addSqlCfgModel('affected', sql1, keys_1.KeysOfSqlResPicker.UPDATE_RESULT);
|
|
55
|
-
}
|
|
56
|
-
else if (equalsIgnoreCase(keys_1.KeysOfSimpleSQL.SIMPLE_INSERT, simpleSqlName)) {
|
|
57
|
-
sql1 = this.generateOriginSqlForInsert(cfgModel);
|
|
58
|
-
cfgModel.addSqlCfgModel('affected', sql1, keys_1.KeysOfSqlResPicker.UPDATE_RESULT);
|
|
59
|
-
}
|
|
60
|
-
else if (equalsIgnoreCase(keys_1.KeysOfSimpleSQL.SIMPLE_UPDATE, simpleSqlName)) {
|
|
61
|
-
sql1 = 'update @@table set @@asUpdate:data where @@asWhere:condition ';
|
|
62
|
-
cfgModel.addSqlCfgModel('affected', sql1, keys_1.KeysOfSqlResPicker.UPDATE_RESULT);
|
|
63
|
-
}
|
|
64
|
-
else if (equalsIgnoreCase(keys_1.KeysOfSimpleSQL.SIMPLE_INSERT_ON_DUPLICATE_UPDATE, simpleSqlName)) {
|
|
65
|
-
sql1 = this.generateOriginSqlForDuplicateInsert(cfgModel);
|
|
66
|
-
cfgModel.addSqlCfgModel('affected', sql1, keys_1.KeysOfSqlResPicker.UPDATE_RESULT);
|
|
67
|
-
}
|
|
68
|
-
else if (equalsIgnoreCase(keys_1.KeysOfSimpleSQL.SIMPLE_INSERT_OR_UPDATE, simpleSqlName)) {
|
|
69
|
-
sql1 = 'select count(0) as total_count from @@table where @@asWhere:condition ';
|
|
70
|
-
sql2 = 'insert into @@table ( @@asInsertKeys:data ) values( @@asInsertValues:data )';
|
|
71
|
-
sql3 = 'update @@table set @@asUpdate:data where @@asWhere:condition ';
|
|
72
|
-
const insertWhen2 = {
|
|
73
|
-
functionName: 'eq',
|
|
74
|
-
functionParams: [{ contextAsNumber: 'res.total_count' }, { constNumber: 0 }],
|
|
75
|
-
};
|
|
76
|
-
const updateWhen3 = {
|
|
77
|
-
functionName: 'gt',
|
|
78
|
-
functionParams: [{ contextAsNumber: 'res.total_count' }, { constNumber: 0 }],
|
|
79
|
-
};
|
|
80
|
-
cfgModel.addSqlCfgModel('total_count', sql1, keys_1.KeysOfSqlResPicker.RESULT_TOTAL_COUNT);
|
|
81
|
-
cfgModel.addSqlCfgModel('insert_affected', sql2, keys_1.KeysOfSqlResPicker.UPDATE_RESULT, insertWhen2);
|
|
82
|
-
cfgModel.addSqlCfgModel('update_affected', sql3, keys_1.KeysOfSqlResPicker.UPDATE_RESULT, updateWhen3);
|
|
83
|
-
}
|
|
84
|
-
if (isEmpty(sql1)) {
|
|
85
|
-
throw new exceptions_1.CommonException(exceptions_1.Exceptions.CFG_NOT_SUPPORT_THE_SIMPLE_SQL, simpleSqlName);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* 删除语句
|
|
90
|
-
* @param cfgModel
|
|
91
|
-
* @private
|
|
92
|
-
*/
|
|
93
|
-
generateOriginSqlForDelete(cfgModel) {
|
|
94
|
-
if (cfgModel.sqlDdType === keys_1.SqlDbType.postgres) {
|
|
95
|
-
return 'delete from @@table where @@asWhere:condition ';
|
|
96
|
-
}
|
|
97
|
-
if (cfgModel.sqlDdType === keys_1.SqlDbType.sqlserver) {
|
|
98
|
-
return 'delete from @@table where @@asWhere:condition ';
|
|
99
|
-
}
|
|
100
|
-
return 'delete from @@table where @@asWhere:condition limit 100 '; // 删除操作,不能一次性删除太多
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* 创建插入OR更新语句
|
|
104
|
-
* @param cfgModel
|
|
105
|
-
* @private
|
|
106
|
-
*/
|
|
107
|
-
generateOriginSqlForDuplicateInsert(cfgModel) {
|
|
108
|
-
if (cfgModel.sqlDdType === keys_1.SqlDbType.postgres) {
|
|
109
|
-
const uniqueColumn = cfgModel.uniqueColumn; // id
|
|
110
|
-
if (!Array.isArray(uniqueColumn) || uniqueColumn.length === 0) {
|
|
111
|
-
throw new exceptions_1.CommonException(exceptions_1.Exceptions.CFG_ERROR_POSTGRES_UNIQUE_COLUMNS_NULL);
|
|
112
|
-
}
|
|
113
|
-
const unique_column = uniqueColumn.map((s) => {
|
|
114
|
-
return `"${s}"`;
|
|
115
|
-
}).join(",");
|
|
116
|
-
return `insert into @@table ( @@asInsertKeys:data ) values( @@asInsertValues:data ) ON CONFLICT (${unique_column}) DO UPDATE set @@asUpdate:data `; // 关键字的前后,必须有空格
|
|
117
|
-
}
|
|
118
|
-
if (cfgModel.sqlDdType === keys_1.SqlDbType.sqlserver) {
|
|
119
|
-
const uniqueColumn = cfgModel.uniqueColumn; // id
|
|
120
|
-
if (uniqueColumn.length !== 1) {
|
|
121
|
-
throw new exceptions_1.CommonException(exceptions_1.Exceptions.CFG_UNIQUE_COLUMN_COUNT_MUST_ONE);
|
|
122
|
-
}
|
|
123
|
-
const uniqueColumnStr = uniqueColumn[0];
|
|
124
|
-
const uniqueColumnVal = "@@data." + uniqueColumnStr;
|
|
125
|
-
const sql = "" +
|
|
126
|
-
`IF EXISTS (SELECT 1 FROM @@table WHERE [${uniqueColumnStr}] = ${uniqueColumnVal})` +
|
|
127
|
-
"BEGIN\n" +
|
|
128
|
-
" UPDATE @@table\n" +
|
|
129
|
-
" SET @@asUpdate:data\n" +
|
|
130
|
-
` WHERE [${uniqueColumnStr}] = ${uniqueColumnVal} ;\n` +
|
|
131
|
-
"END\n" +
|
|
132
|
-
"ELSE\n" +
|
|
133
|
-
"BEGIN\n" +
|
|
134
|
-
" INSERT INTO @@table ( @@asInsertKeys:data )\n" +
|
|
135
|
-
" VALUES ( @@asInsertValues:data );\n" +
|
|
136
|
-
"END";
|
|
137
|
-
return sql;
|
|
138
|
-
}
|
|
139
|
-
return 'insert into @@table ( @@asInsertKeys:data ) values( @@asInsertValues:data ) on duplicate key update @@asUpdate:data '; // 关键字的前后,必须有空格
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* 创建插入语句
|
|
143
|
-
* @param cfgModel
|
|
144
|
-
* @private
|
|
145
|
-
*/
|
|
146
|
-
generateOriginSqlForInsert(cfgModel) {
|
|
147
|
-
if (cfgModel.sqlDdType === keys_1.SqlDbType.postgres) {
|
|
148
|
-
return 'insert into @@table ( @@asInsertKeys:data ) values( @@asInsertValues:data ) RETURNING * ';
|
|
149
|
-
}
|
|
150
|
-
if (cfgModel.sqlDdType === keys_1.SqlDbType.sqlserver) {
|
|
151
|
-
return 'insert into @@table ( @@asInsertKeys:data ) OUTPUT INSERTED.* values( @@asInsertValues:data ) ';
|
|
152
|
-
}
|
|
153
|
-
return 'insert into @@table ( @@asInsertKeys:data ) values( @@asInsertValues:data )'; // 关键字的前后,必须有空格
|
|
154
|
-
}
|
|
155
|
-
async generateExecuteSql() {
|
|
156
|
-
const exeCtx = this.getExecuteContext();
|
|
157
|
-
const reqCfgModel = exeCtx.getCfgModel();
|
|
158
|
-
const sqlCfgList = reqCfgModel.sqlCfgList || [];
|
|
159
|
-
const { sqlTable, sqlSchema, sqlDatabase, sqlDdType, maxLimit, columns, columnsRelation } = reqCfgModel;
|
|
160
|
-
for (let i = 0; i < sqlCfgList.length; i++) {
|
|
161
|
-
const sqlCfgModel = sqlCfgList[i];
|
|
162
|
-
sqlCfgModel.sqlDdType = MixinUtils_1.MixinUtils.selectNotEmpty(sqlCfgModel.sqlDdType, sqlDdType);
|
|
163
|
-
sqlCfgModel.sqlDatabase = MixinUtils_1.MixinUtils.selectNotEmpty(sqlCfgModel.sqlDatabase, sqlDatabase);
|
|
164
|
-
sqlCfgModel.sqlSchema = MixinUtils_1.MixinUtils.selectNotEmpty(sqlCfgModel.sqlSchema, sqlSchema);
|
|
165
|
-
sqlCfgModel.sqlTable = MixinUtils_1.MixinUtils.selectNotEmpty(sqlCfgModel.sqlTable, sqlTable);
|
|
166
|
-
sqlCfgModel.maxLimit = MixinUtils_1.MixinUtils.selectNotEmpty(sqlCfgModel.maxLimit, maxLimit);
|
|
167
|
-
sqlCfgModel.columns = MixinUtils_1.MixinUtils.selectNotEmpty(sqlCfgModel.columns, columns);
|
|
168
|
-
sqlCfgModel.columnsRelation = MixinUtils_1.MixinUtils.selectNotEmpty(sqlCfgModel.columnsRelation, columnsRelation);
|
|
169
|
-
await this.serviceHub.convertOriginToExecuteSql(sqlCfgModel);
|
|
170
|
-
exeCtx.getSqlCfgModels().push(sqlCfgModel);
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
exports.CrudProGenSqlService = CrudProGenSqlService;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { CrudProServiceBase } from './CrudProServiceBase';
|
|
2
|
-
import { SqlCfgModel } from '../models/SqlCfgModel';
|
|
3
|
-
declare class CrudProOriginToExecuteSql extends CrudProServiceBase {
|
|
4
|
-
convertOriginToExecuteSql(sqlCfgModel: SqlCfgModel): Promise<void>;
|
|
5
|
-
private generateWordMap;
|
|
6
|
-
private generateWord;
|
|
7
|
-
private generateDataAsInsertKeys;
|
|
8
|
-
private generateTable;
|
|
9
|
-
private generateColumns;
|
|
10
|
-
/**
|
|
11
|
-
* 生成查询条件
|
|
12
|
-
* @param req
|
|
13
|
-
* @param sqlCfg
|
|
14
|
-
* @param conditionName
|
|
15
|
-
* @private
|
|
16
|
-
*/
|
|
17
|
-
private generateCondition;
|
|
18
|
-
private generateOffsetLimit;
|
|
19
|
-
private generateOrderBys;
|
|
20
|
-
private generatePickResAs;
|
|
21
|
-
private generateGetAttr;
|
|
22
|
-
private generateDataUpdate;
|
|
23
|
-
private generateDataAsInsertValues;
|
|
24
|
-
private generateSqlJavaFunction;
|
|
25
|
-
/**
|
|
26
|
-
* 不会返回空。
|
|
27
|
-
* @param sqlCfgModel
|
|
28
|
-
* @private
|
|
29
|
-
*/
|
|
30
|
-
private generateCfgColumns;
|
|
31
|
-
}
|
|
32
|
-
export { CrudProOriginToExecuteSql };
|