|
@@ -24,6 +24,15 @@ func GetStore(eg *xorm.Engine, arg map[string]string) []map[string]string { |
|
|
if arg["city"] != "" { |
|
|
if arg["city"] != "" { |
|
|
where += " and address like '%" + arg["city"] + "%'" |
|
|
where += " and address like '%" + arg["city"] + "%'" |
|
|
} |
|
|
} |
|
|
|
|
|
if arg["province_id"] != "" { |
|
|
|
|
|
where += " and province_id = '" + arg["province_id"] + "'" |
|
|
|
|
|
} |
|
|
|
|
|
if arg["city_id"] != "" { |
|
|
|
|
|
where += " and city_id = '" + arg["city_id"] + "'" |
|
|
|
|
|
} |
|
|
|
|
|
if arg["district_id"] != "" { |
|
|
|
|
|
where += " and district_id = '" + arg["district_id"] + "'" |
|
|
|
|
|
} |
|
|
if arg["name"] != "" { |
|
|
if arg["name"] != "" { |
|
|
where += " and name like '%" + arg["name"] + "'" |
|
|
where += " and name like '%" + arg["name"] + "'" |
|
|
} |
|
|
} |
|
|