From 06f86e3cd45398e99a405f8ca3cf5d3fbdae6c6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Tue, 27 Jun 2023 16:36:10 +0800 Subject: [PATCH] =?UTF-8?q?fix(tenement):=E4=BF=AE=E6=AD=A3=E5=95=86?= =?UTF-8?q?=E6=88=B7=E4=B8=8B=E6=8B=89=E5=88=97=E8=A1=A8=E6=A3=80=E7=B4=A2?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- repository/tenement.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repository/tenement.go b/repository/tenement.go index 1d09ff3..beaffa7 100644 --- a/repository/tenement.go +++ b/repository/tenement.go @@ -359,7 +359,7 @@ func (tr _TenementRepository) ListForSelect(uid string, pid, keyword *string, li tenementQuery := tr.ds. From(goqu.T("tenement").As("t")). LeftJoin(goqu.T("park_building").As("b"), goqu.On(goqu.I("b.id").Eq(goqu.I("t.building")))). - Join(goqu.T("park").As("p"), goqu.On(goqu.I("p.id").Eq(goqu.I("b.park_id")))). + Join(goqu.T("park").As("p"), goqu.On(goqu.I("p.id").Eq(goqu.I("t.park_id")))). Select( "t.*", goqu.I("b.name").As("building_name"), ).