From b48ad793da305402255350db0e092a03578ae0b6 Mon Sep 17 00:00:00 2001 From: hoteas <等> Date: Sat, 7 May 2022 13:55:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BC=81=E6=9C=8D=E5=95=86?= =?UTF-8?q?=E9=82=A3=E8=BE=B9=E4=B8=8D=E6=98=BE=E7=A4=BA=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/provider/matters.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) },