From e2b4ffa21cac4c9b59080e187812e4c61fcef5c2 Mon Sep 17 00:00:00 2001 From: gazebo Date: Fri, 19 Jul 2019 15:40:32 +0800 Subject: [PATCH] =?UTF-8?q?-=20GetStoresMapList=E5=80=92=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/model/dao/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/model/dao/store.go b/business/model/dao/store.go index 58b24b545..70365d006 100644 --- a/business/model/dao/store.go +++ b/business/model/dao/store.go @@ -231,7 +231,7 @@ func GetStoresMapList(db *DaoDB, vendorIDs, storeIDs []int, status, isSync int, sql += " AND t1.price_percentage_pack = ?" sqlParams = append(sqlParams, pricePack) } - sql += " ORDER BY t1.store_id, t1.vendor_id" + sql += " ORDER BY t1.store_id DESC, t1.vendor_id" if err = GetRows(db, &storeMapList, sql, sqlParams...); err == nil { return storeMapList, nil }