- sku almost ok.

This commit is contained in:
gazebo
2018-09-12 19:04:19 +08:00
parent 95c52ba9dd
commit ecd19c55b3
7 changed files with 221 additions and 25 deletions

View File

@@ -95,9 +95,9 @@ func GetStores(keyword string, params map[string]interface{}, offset, pageSize i
sqlWhere += " 1 = 1"
}
if params["id"] != nil {
if params["storeID"] != nil {
sqlWhere += " AND t1.id = ?"
sqlParams = append(sqlParams, params["id"].(int))
sqlParams = append(sqlParams, params["storeID"].(int))
}
if params["name"] != nil {
sqlWhere += " AND t1.name LIKE ?"