Compare commits

..

1 Commits

Author SHA1 Message Date
hoteas 30edb4d9fa 增加mongodb驱动,简单版本 2022-08-30 04:05:17 +08:00
+4
View File
@@ -86,7 +86,11 @@ func (that *mongoDb) Get(table string, where Map) Map {
that.LastErr = err that.LastErr = err
return nil return nil
} }
if len(results) > 0 {
return results[0] return results[0]
}
return nil
} }
func (that mongoDb) Select(table string, where Map, page, pageRow int64) []Map { func (that mongoDb) Select(table string, where Map, page, pageRow int64) []Map {