feat: pinia替换vuex,代码优化

This commit is contained in:
meilin.huang
2023-03-15 11:41:03 +08:00
parent 0695ad9a85
commit 5f1aaa40d8
85 changed files with 3214 additions and 3456 deletions

View File

@@ -88,7 +88,11 @@ func (d *dbSqlExecAppImpl) Exec(execSqlReq *DbSqlExecReq) (*DbSqlExecRes, error)
lowerSql := strings.ToLower(execSqlReq.Sql)
isSelect := strings.HasPrefix(lowerSql, "select")
if isSelect {
biz.IsTrue(strings.Contains(lowerSql, "limit"), "请完善分页信息")
// 如果配置为0则不校验分页参数
maxCount := sysapp.GetConfigApp().GetConfig(sysentity.ConfigKeyDbQueryMaxCount).IntValue(200)
if maxCount != 0 {
biz.IsTrue(strings.Contains(lowerSql, "limit"), "请完善分页信息后执行")
}
}
var execErr error
if isSelect || strings.HasPrefix(lowerSql, "show") {