Commit ba34a4f6 by mushishixian

处理单价问题

parent 2950ea44
Showing with 1 additions and 0 deletions
......@@ -265,6 +265,7 @@ func getTermQuery(goodsName, brandName string, number int, flag bool) (query *es
query = query.Must(es.NewTermQuery(field, goodsName))
}
query = query.Filter(es.NewTermQuery("status", 1))
query = query.Filter(es.NewRangeQuery("single_price").Gt(0))
//src, err := query.Source()
//if err != nil {
// panic(err)
......
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