diff --git a/modules/plunder/model_record.go b/modules/plunder/model_record.go index 2b3b3727b..72e3988df 100644 --- a/modules/plunder/model_record.go +++ b/modules/plunder/model_record.go @@ -22,7 +22,7 @@ func (this *modelRecord) Init(service core.IService, module core.IModule, comp c func (this *modelRecord) getPlunderRecordData(id string) (info *pb.DBPlunderRecord, err error) { info = &pb.DBPlunderRecord{} - if err = this.Get(id, info); err == mgo.MongodbNil { + if err = this.GetByID(id, info); err == mgo.MongodbNil { info.Id = id err = this.Add(id, info) return @@ -31,7 +31,7 @@ func (this *modelRecord) getPlunderRecordData(id string) (info *pb.DBPlunderReco } func (this *modelRecord) changePlunderRecordData(id string, update map[string]interface{}) (err error) { - err = this.Change(id, update) + err = this.ChangeById(id, update) return }