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)