Commit deb44092 by mushishixian

修改价格排序为起订量排序

parent d2b0b80d
Showing with 2 additions and 2 deletions
......@@ -89,12 +89,12 @@ func getSearchParams(index string, bomItem model.BomItem, sort int, flag bool) (
source := es.NewSearchSource().Query(query)
if sort == 1 {
source.Sort("_score", false)
source.Sort("single_price", true)
source.Sort("moq", true)
}
//要去判断sort,sort=2是按照价格排序
if sort == 2 {
source.Sort("_score", false)
source.Sort("single_price", true)
source.Sort("moq", true)
//sort=3是按照库存排序
} else if sort == 3 {
source.Sort("_score", false)
......
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