增加表关联新建功能,同时修复数据库bug

This commit is contained in:
2021-07-07 04:08:40 +08:00
parent 4ad401bafc
commit ada4a926c0
5 changed files with 19 additions and 11 deletions
+2 -2
View File
@@ -582,11 +582,11 @@ func (that *HoTimeDB) where(data Map) (string, []interface{}) {
}
if x == len(condition) && y == len(vcond) {
if reflect.ValueOf(v).Type().String() == "common.Slice" && len(v.(Slice)) == 0 {
if v != nil && reflect.ValueOf(v).Type().String() == "common.Slice" && len(v.(Slice)) == 0 {
continue
}
if reflect.ValueOf(v).Type().String() == "[]interface {}" && len(v.([]interface{})) == 0 {
if v != nil && reflect.ValueOf(v).Type().String() == "[]interface {}" && len(v.([]interface{})) == 0 {
continue
}