小改
This commit is contained in:
@@ -573,13 +573,13 @@ func GetStorePriceScore(db *DaoDB, storeIDs, vendorIDs []int, fromScore, toScore
|
|||||||
} else if sort == -1 {
|
} else if sort == -1 {
|
||||||
sql += " ORDER BY a.score DESC"
|
sql += " ORDER BY a.score DESC"
|
||||||
} else if sort == 2 {
|
} else if sort == 2 {
|
||||||
sql += " ORDER BY t1.direct_down_count"
|
sql += " ORDER BY t2.direct_down_count"
|
||||||
} else if sort == -2 {
|
} else if sort == -2 {
|
||||||
sql += " ORDER BY t1.direct_down_count DESC"
|
sql += " ORDER BY t2.direct_down_count DESC"
|
||||||
} else if sort == 3 {
|
} else if sort == 3 {
|
||||||
sql += " ORDER BY t1.sec_kill_count"
|
sql += " ORDER BY t2.sec_kill_count"
|
||||||
} else if sort == -3 {
|
} else if sort == -3 {
|
||||||
sql += " ORDER BY t1.sec_kill_count DESC"
|
sql += " ORDER BY t2.sec_kill_count DESC"
|
||||||
}
|
}
|
||||||
sql += " LIMIT ? OFFSET ?"
|
sql += " LIMIT ? OFFSET ?"
|
||||||
sqlParams = append(sqlParams, pageSize, offset)
|
sqlParams = append(sqlParams, pageSize, offset)
|
||||||
|
|||||||
Reference in New Issue
Block a user