Răsfoiți Sursa

默认值处理

WH01243 7 luni în urmă
părinte
comite
7c07625906
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      jyBXCore/rpc/service/operator.go

+ 2 - 2
jyBXCore/rpc/service/operator.go

@@ -753,11 +753,11 @@ func SearchList(operator Operator) (int64, *[]map[string]interface{}, int64) {
 	}
 	//行业处理
 	if operator.Industry != "" {
-		filterArr = append(filterArr, fmt.Sprintf(`{"match":{"industry":["%s"]}}`, strings.ReplaceAll(operator.Industry, ",", `","`)))
+		filterArr = append(filterArr, fmt.Sprintf(`{"terms":{"industry":["%s"]}}`, strings.ReplaceAll(operator.Industry, ",", `","`)))
 	}
 	//中标人标签处理
 	if operator.WinnerTag != "" {
-		filterArr = append(filterArr, fmt.Sprintf(`{"match":{"winner_tag":["%s"]}}`, strings.ReplaceAll(operator.WinnerTag, ",", `","`)))
+		filterArr = append(filterArr, fmt.Sprintf(`{"terms":{"winner_tag":["%s"]}}`, strings.ReplaceAll(operator.WinnerTag, ",", `","`)))
 
 	}
 	//查看自己是否定制