门店价格修改

This commit is contained in:
苏尹岚
2019-12-13 10:49:29 +08:00
parent 9717defad6
commit 147a683177
7 changed files with 21 additions and 22 deletions

View File

@@ -493,7 +493,7 @@ func GetStorePriceScore(db *DaoDB, storeIDs []int, fromScore, toScore, sort int,
WHERE 1=1
`
sqlParams := []interface{}{}
if fromScore != 0 && toScore != 0 {
if fromScore != 0 || toScore != 0 {
sql += " AND a.score BETWEEN ? AND ?"
sqlParams = append(sqlParams, fromScore, toScore)
}