This commit is contained in:
苏尹岚
2020-01-19 17:20:11 +08:00
parent 1e984a39a7
commit cc6f201690

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)