diff --git a/README.md b/README.md index 4c4ec679770a21b041a65751f9ed761b088678dd..0fe339592719bc0859f224379325d30147582501 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ oauthserver是一个基于Spring Boot Oauth2的完整的独立的Oauth2 Server - MySQL - Oracle - PostgreSQL -- SQL Server +- Microsoft SQL Server ## 功能概览 ### api @@ -97,7 +97,7 @@ IntelliJ IDEA或Eclipse请先安装lombok插件。 连接信息在`application-oracle.yml`里。修改完数据库连接信息后,还需要设置`application-common.yml`的`spring.profiles.active=oracle`。 - PostgreSQL 连接信息在`application-pg.yml`里。修改完数据库连接信息后,还需要设置`application-common.yml`的`spring.profiles.active=pg`。 -- SQL Server +- Microsoft SQL Server 连接信息在`application-sqlserver.yml`里。修改完数据库连接信息后,还需要设置`application-common.yml`的`spring.profiles.active=sqlserver`。 ### 4. 运行 现在,一切已准备就绪。运行项目,当程序成功启动时,即表明你已配置成功。 diff --git a/common/src/main/java/com/simon/common/utils/DbUtil.java b/common/src/main/java/com/simon/common/utils/DbUtil.java index 7859e055b7dd985d5fe7eca292542198c89b5920..7e711b369a5c586fad729bcac15b0492b3e9451c 100644 --- a/common/src/main/java/com/simon/common/utils/DbUtil.java +++ b/common/src/main/java/com/simon/common/utils/DbUtil.java @@ -374,7 +374,7 @@ public class DbUtil { "\t\tAND a.colid = g.minor_id \n" + "\t) t \n" + "WHERE\n" + - "\tTABLE_NAME LIKE '%" + tableName + "%'"; + "\tTABLE_NAME = '" + tableName + "'"; } else { throw new Exception("暂不支持其他数据库"); } diff --git a/web/src/main/resources/templates/vue/table/code_generate.html b/web/src/main/resources/templates/vue/table/code_generate.html index f82f2ba049e9bf32d074d624b99efc5a134ad0fc..53780e099c96365fbbe6b211b56dfcd1c46e030d 100644 --- a/web/src/main/resources/templates/vue/table/code_generate.html +++ b/web/src/main/resources/templates/vue/table/code_generate.html @@ -208,11 +208,13 @@ this.$refs[formName].validate((valid) => { if (valid) { // 遍历ruleForm.columns,如果是uiType是Select选择器,extraInfo必须有值。 - for(let i = 0, len = this.ruleForm.columns.length; i < len; i++) { - if (this.ruleForm.columns[i].uiType === 'Select' && !this.ruleForm.columns[i].extraInfo) { - parent.closeLoading(); - this.$message.error(this.ruleForm.columns[i].name + "属性UI是选择器,但未设置选择器数据"); - return false; + if (this.ruleForm.genModules.join(",").indexOf("controllerAndPage") >= 0) { + for(let i = 0, len = this.ruleForm.columns.length; i < len; i++) { + if (this.ruleForm.columns[i].uiType === 'Select' && !this.ruleForm.columns[i].extraInfo) { + parent.closeLoading(); + this.$message.error(this.ruleForm.columns[i].name + "属性UI是选择器,但未设置选择器数据"); + return false; + } } } this.$http.post(requestUrls.url, this.ruleForm).then((response) => {