From a5f86b42bcec89bda2872e95b1791d1d3c95699c Mon Sep 17 00:00:00 2001 From: zhangxin Date: Wed, 17 Mar 2021 10:25:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8B=A5=E5=89=8D=E7=AB=AF=E6=9C=AA=E4=BC=A0?= =?UTF-8?q?=E5=85=A5propertyid=E5=AD=97=E6=AE=B5=20=E7=94=B1=E5=90=8E?= =?UTF-8?q?=E7=AB=AF=E6=8B=BC=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/controllers/accesscardtab_controller.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/controllers/accesscardtab_controller.go b/web/controllers/accesscardtab_controller.go index aa445fe..b75b1c7 100644 --- a/web/controllers/accesscardtab_controller.go +++ b/web/controllers/accesscardtab_controller.go @@ -196,6 +196,9 @@ func SearchAccesscardtab(ctx iris.Context) { buildingid := ctx.URLParam("buildingid") unit := ctx.URLParam("unit") room := ctx.URLParam("room") + if me.Propertyid == "" { + me.Propertyid = buildingid + "-" + unit + "-" + room + } data, err := me.Search(buildingid, unit, room) if err != nil { glog.InfoExt("缴费","查询电梯费:%v",err)