权限管理优化

This commit is contained in:
hoteas
2022-08-01 16:45:24 +08:00
parent 3da135e3cb
commit ffa32105f2
3 changed files with 14 additions and 10 deletions
-2
View File
@@ -6,7 +6,6 @@ import (
"database/sql"
"encoding/json"
"errors"
"fmt"
_ "github.com/go-sql-driver/mysql"
_ "github.com/mattn/go-sqlite3"
"github.com/sirupsen/logrus"
@@ -619,7 +618,6 @@ func (that *HoTimeDB) where(data Map) (string, []interface{}) {
if v != nil && reflect.ValueOf(v).Type().String() == "common.Slice" && len(v.(Slice)) == 0 {
continue
}
fmt.Println(reflect.ValueOf(v).Type().String())
if v != nil && strings.Contains(reflect.ValueOf(v).Type().String(), "[]") && len(ObjToSlice(v)) == 0 {
continue
}