This commit is contained in:
邹宗楠
2024-12-13 13:52:29 +08:00
parent 9d38690534
commit 5b84cd293a

View File

@@ -764,9 +764,8 @@ func getGetStoresSkusBaseSQL(db *dao.DaoDB, storeIDs, skuIDs []int, upcs []strin
}
if params["locationCode"] != "" && params["locationCode"] != nil {
sql += " AND t4.location_code LIKE ? "
sqlParams = append(sqlParams, "%"+params["minStock"].(string)+"%")
}
if params["isLocationCode"] != "" && params["isLocationCode"] != nil {
sqlParams = append(sqlParams, "%"+params["locationCode"].(string)+"%")
} else if params["isLocationCode"] != "" && params["isLocationCode"] != nil {
sql += " AND (t4.location_code = '' OR t4.location_code = 'EMPTY_VALUE') "
}
return sql, sqlParams, err