From 988972d98b7d38a66d474d63141bdf461a29cd5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B9=B3=E5=87=A1=E6=A2=A6?= Date: Wed, 8 Jul 2020 17:33:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3minimumPrice\highestPrice?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/store_sku.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index 895486876..528341157 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -466,8 +466,6 @@ func getGetStoresSkusBaseSQL(db *dao.DaoDB, storeIDs, skuIDs []int, isFocus bool sql += " AND t4.unit_price >= ? " sqlParams = append(sqlParams, minimumPrice) } - globals.SugarLogger.Debug("params的值打印位置4") - globals.SugarLogger.Debug(sql) return sql, sqlParams, err } @@ -486,8 +484,6 @@ func GetStoresSkusNew(ctx *jxcontext.Context, storeIDs, skuIDs []int, isFocus, i if params["actVendorID"] != nil { actVendorID = int(utils.Interface2Int64WithDefault(params["actVendorID"], -1)) } - globals.SugarLogger.Debug("params的值打印位置") - globals.SugarLogger.Debug(params) var highestPrice, minimumPrice float64 if params["highestPrice"] != nil { if highestPrice, err = strconv.ParseFloat(params["highestPrice"].(string), 64); err != nil { @@ -499,16 +495,12 @@ func GetStoresSkusNew(ctx *jxcontext.Context, storeIDs, skuIDs []int, isFocus, i delete(params, "minimumPrice") } } - globals.SugarLogger.Debug("params的值打印位置2") - globals.SugarLogger.Debug(params) if !(highestPrice > 0 && highestPrice > minimumPrice) || !(highestPrice > 0) { delete(params, "highestPrice") } if !(minimumPrice >= 0 && highestPrice > 0 && highestPrice > minimumPrice) || !(minimumPrice >= 0) { delete(params, "minimumPrice") } - globals.SugarLogger.Debug("params的值打印位置3") - globals.SugarLogger.Debug(params) db := dao.GetDB() sql, sqlParams, err := getGetStoresSkusBaseSQL(db, storeIDs, skuIDs, isFocus, keyword, isBySku, isAct, isHighPrice, priceType, actVendorID, params) if err != nil {