From 7984084a5b6a587dab194d1209c6abd410d44ec8 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 29 Oct 2024 18:54:53 +0800 Subject: [PATCH] 1 --- app/db/db_store.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/db/db_store.go b/app/db/db_store.go index b616045..bb1a0c2 100644 --- a/app/db/db_store.go +++ b/app/db/db_store.go @@ -53,9 +53,9 @@ func GetStore(eg *xorm.Engine, arg map[string]string) []map[string]string { where += " and " + str + "<=1000" } } - //if arg["city"] != "" { - // where += " and city like '%" + arg["city"] + "%'" - //} + if arg["city"] != "" { + where += " and city like '%" + arg["city"] + "%'" + } if arg["province_id"] != "" { where += " and province_id = '" + arg["province_id"] + "'" }