This commit is contained in:
苏尹岚
2020-01-19 17:20:11 +08:00
parent 63cecd7c4c
commit 647dd71480

View File

@@ -573,13 +573,13 @@ func GetStorePriceScore(db *DaoDB, storeIDs, vendorIDs []int, fromScore, toScore
} else if sort == -1 {
sql += " ORDER BY a.score DESC"
} else if sort == 2 {
sql += " ORDER BY t1.direct_down_count"
sql += " ORDER BY t2.direct_down_count"
} else if sort == -2 {
sql += " ORDER BY t1.direct_down_count DESC"
sql += " ORDER BY t2.direct_down_count DESC"
} else if sort == 3 {
sql += " ORDER BY t1.sec_kill_count"
sql += " ORDER BY t2.sec_kill_count"
} else if sort == -3 {
sql += " ORDER BY t1.sec_kill_count DESC"
sql += " ORDER BY t2.sec_kill_count DESC"
}
sql += " LIMIT ? OFFSET ?"
sqlParams = append(sqlParams, pageSize, offset)