From 647dd7148062aa7013d5fa3b4d42955ee6b48e9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Sun, 19 Jan 2020 17:20:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/model/dao/store.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/business/model/dao/store.go b/business/model/dao/store.go index 35d230973..28cf4cd52 100644 --- a/business/model/dao/store.go +++ b/business/model/dao/store.go @@ -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)