1
This commit is contained in:
@@ -764,9 +764,8 @@ func getGetStoresSkusBaseSQL(db *dao.DaoDB, storeIDs, skuIDs []int, upcs []strin
|
|||||||
}
|
}
|
||||||
if params["locationCode"] != "" && params["locationCode"] != nil {
|
if params["locationCode"] != "" && params["locationCode"] != nil {
|
||||||
sql += " AND t4.location_code LIKE ? "
|
sql += " AND t4.location_code LIKE ? "
|
||||||
sqlParams = append(sqlParams, "%"+params["minStock"].(string)+"%")
|
sqlParams = append(sqlParams, "%"+params["locationCode"].(string)+"%")
|
||||||
}
|
} else if params["isLocationCode"] != "" && params["isLocationCode"] != nil {
|
||||||
if params["isLocationCode"] != "" && params["isLocationCode"] != nil {
|
|
||||||
sql += " AND (t4.location_code = '' OR t4.location_code = 'EMPTY_VALUE') "
|
sql += " AND (t4.location_code = '' OR t4.location_code = 'EMPTY_VALUE') "
|
||||||
}
|
}
|
||||||
return sql, sqlParams, err
|
return sql, sqlParams, err
|
||||||
|
|||||||
Reference in New Issue
Block a user