get zone by mid
This commit is contained in:
parent
2a84d99b65
commit
4da4ca70d1
|
@ -3975,7 +3975,7 @@ func (m *Mongo) GetZoneByMid(ctx *gin.Context, mid int64) (*dbstruct.Zone, error
|
|||
zone := &dbstruct.Zone{}
|
||||
col := m.getColZone()
|
||||
query := qmgo.M{
|
||||
"id": mid,
|
||||
"mid": mid,
|
||||
"del_flag": 0,
|
||||
}
|
||||
err := col.Find(ctx, query).One(&zone)
|
||||
|
|
Loading…
Reference in New Issue