Commit 2950ea44 by mushishixian

修复“”

parent 2b937f1c
Showing with 1 additions and 1 deletions
......@@ -223,9 +223,9 @@ func getUpdateGoodsData(bomId int, bomItems []model.BomItem, deliveryType, sort
func getSearchParams(goodsName, brandName string, sort, number int, flag bool) (searchRequest *es.SearchRequest) {
query := getTermQuery(goodsName, brandName, number, flag)
source := es.NewSearchSource().IndexBoost("liexin_ziying", 2).Query(query)
source.Sort("_score", false)
if sort == 1 {
source.Sort("sort", false)
source.Sort("_score", false)
source.Sort("stock", false)
source.Sort("single_price", true)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment