增加mongodb驱动,简单版本
This commit is contained in:
parent
a32c3a1589
commit
30edb4d9fa
@ -86,7 +86,11 @@ func (that *mongoDb) Get(table string, where Map) Map {
|
||||
that.LastErr = err
|
||||
return nil
|
||||
}
|
||||
if len(results) > 0 {
|
||||
|
||||
return results[0]
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (that mongoDb) Select(table string, where Map, page, pageRow int64) []Map {
|
||||
|
Loading…
Reference in New Issue
Block a user