From ce5eb03e129f4a6fabaee2836efd229116f4e3a4 Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Mon, 31 May 2021 11:30:20 +0800 Subject: [PATCH] aa --- business/jxstore/cms/store.go | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 966ebb005..9749bb037 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -4688,12 +4688,6 @@ func QueryPageSkus(ctx *jxcontext.Context, vendorID int, vendorStoreIDs []string sql += sqlEbai } } - if sortType == 0 { - sql += ` - LIMIT ? OFFSET ? - ` - sqlParams = append(sqlParams, pageSize, offset) - } sql += ` )t1 WHERE 1 = 1 ` @@ -4726,15 +4720,11 @@ func QueryPageSkus(ctx *jxcontext.Context, vendorID int, vendorStoreIDs []string sql += " ORDER BY t1.distance" } } - sql += ` - LIMIT ? OFFSET ? - ` - sqlParams = append(sqlParams, pageSize, offset) } - //sql += ` - // LIMIT ? OFFSET ? - //` - //sqlParams = append(sqlParams, pageSize, offset) + sql += ` + LIMIT ? OFFSET ? + ` + sqlParams = append(sqlParams, pageSize, offset) txDB, _ := dao.Begin(db) defer func() { if r := recover(); r != nil {