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"] + "'" }