diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index 4abec09e9..895486876 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -457,12 +457,14 @@ func getGetStoresSkusBaseSQL(db *dao.DaoDB, storeIDs, skuIDs []int, isFocus bool } /*前台传入的最大值和最小值设置*/ if params["highestPrice"] != "" && params["highestPrice"] != nil { + highestPrice := utils.Interface2Float64WithDefault(params["highestPrice"], 0) * 100 sql += " AND t4.unit_price <= ? " - sqlParams = append(sqlParams, params["highestPrice"]) + sqlParams = append(sqlParams, highestPrice) } if params["minimumPrice"] != "" && params["minimumPrice"] != nil { + minimumPrice := utils.Interface2Float64WithDefault(params["minimumPrice"], 0) * 100 sql += " AND t4.unit_price >= ? " - sqlParams = append(sqlParams, params["minimumPrice"]) + sqlParams = append(sqlParams, minimumPrice) } globals.SugarLogger.Debug("params的值打印位置4") globals.SugarLogger.Debug(sql)