diff --git a/features/dbrest/dbrest.go b/features/dbrest/dbrest.go index b93d9054..758474e2 100644 --- a/features/dbrest/dbrest.go +++ b/features/dbrest/dbrest.go @@ -123,6 +123,15 @@ func GetUriSQLArray(r *http.Request) []string { } } + // 查询总数 + if totalSQL, ok := vars["totalSQL"]; ok { + sa = append(sa, totalSQL[0]) + } + // 查询列表 + if rowsSQL, ok := vars["rowsSQL"]; ok { + sa = append(sa, rowsSQL[0]) + } + log.Debug("SQL array:", sa) return sa }