Commit 21c875c0 by mushishixian

fix

parent c7409d2c
......@@ -28,7 +28,7 @@ func GetStandardAttrs(bomItems []model.BomItem) []model.BomItem {
}
params := req.BodyJSON(attrParams)
resp, err := req.Post(configs.ApiSetting.Attrs, params)
//fmt.Println(resp)
fmt.Println(resp)
if err != nil {
fmt.Println(err)
}
......
......@@ -122,7 +122,7 @@ func getTermQuery(bomItem model.BomItem, sort int, flag bool) (query *es.BoolQue
if strings.Contains(attr, "ZLNZ€") || strings.Contains(attr, "OM€") {
query.Should(es.NewTermQuery("attr_bom", attr))
} else {
query.Should(es.NewTermQuery("attr_bom", attr))
query.Must(es.NewTermQuery("attr_bom", attr))
}
}
} else {
......
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