修改最大值和最小值的判断,要关注了才去查询
This commit is contained in:
@@ -455,6 +455,7 @@ func getGetStoresSkusBaseSQL(db *dao.DaoDB, storeIDs, skuIDs []int, isFocus bool
|
||||
sql += ")"
|
||||
}
|
||||
}
|
||||
if isFocus {
|
||||
/*前台传入的最大值和最小值设置*/
|
||||
if params["highestPrice"] != "" && params["highestPrice"] != nil {
|
||||
//highestPrice := utils.Interface2Float64WithDefault(params["highestPrice"], 0) * 100
|
||||
@@ -466,6 +467,7 @@ func getGetStoresSkusBaseSQL(db *dao.DaoDB, storeIDs, skuIDs []int, isFocus bool
|
||||
sql += " AND t4.unit_price >= ? "
|
||||
sqlParams = append(sqlParams, params["minimumPrice"])
|
||||
}
|
||||
}
|
||||
return sql, sqlParams, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user