diff --git a/example/provider/matters.go b/example/provider/matters.go index 735cdd3..d6df3d4 100644 --- a/example/provider/matters.go +++ b/example/provider/matters.go @@ -30,9 +30,9 @@ var MattersCtr = Ctr{ return } - res["user"] = that.Db.Get("user", "id,name,nickname,company_id", Map{"user_id": res.GetCeilInt64("user_id")}) + res["user"] = that.Db.Get("user", "id,name,nickname,company_id", Map{"id": res.GetCeilInt64("user_id")}) if res.GetMap("user") != nil && res.GetMap("user").GetCeilInt64("company_id") != 0 { - res["company"] = that.Db.Get("company", "id,name", Map{"company_id": res.GetMap("user").GetCeilInt64("company_id")}) + res["company"] = that.Db.Get("company", "id,name", Map{"id": res.GetMap("user").GetCeilInt64("company_id")}) } that.Display(0, res) },