Преглед изворни кода

Merge branch 'dev4.7.8' of http://192.168.3.207:8080/qmx/jy into dev4.7.8

zhangyuhan пре 3 година
родитељ
комит
4abf60fb17
1 измењених фајлова са 3 додато и 4 уклоњено
  1. 3 4
      src/jfw/modules/common/src/qfw/util/bidsearch/search.go

+ 3 - 4
src/jfw/modules/common/src/qfw/util/bidsearch/search.go

@@ -251,11 +251,10 @@ func GetSearchQuery(keyword, industry, minprice, maxprice, hasBuyerTel, hasWinne
 		musts = append(musts, mustquery)
 	}
 
-	var isFileSearch bool = false //搜索范围是否有附件选择
+	//搜索范围是否只有附件
+	//搜索范围只选择附件,是否有附件条件无效;
+	var isFileSearch bool = findfields == "filetext"
 	if keyword != "" {
-		if strings.Contains(findfields, "filetext") { //搜索范围选择附件,是否有附件条件无效;
-			isFileSearch = true
-		}
 		keyword_multi_match := fmt.Sprintf(multi_match, "%s", findfields)
 		shoulds := []string{}
 		for _, v := range strings.Split(keyword, "+") {