duxin 2 anni fa
parent
commit
e7ddb7797f

+ 1 - 1
src/jfw/modules/bigmember/src/entity/marketAnalysis/commonSearch.go

@@ -52,7 +52,7 @@ func (mae *MarketAnalysisEntity) GetCommonQuerySql() string {
 		if mgo.IsObjectIdHex(mae.FormatParam.Winner) {
 			winnerId = mae.FormatParam.Winner
 		} else {
-			rData := elastic.Get("qyxy", "qyxy", fmt.Sprintf(`{"query": {"bool": {"must": [{"term": {"company_name": "%s"}}]}},"_source":["_id"]"size": 1}`, mae.FormatParam.Winner))
+			rData := elastic.Get("qyxy", "qyxy", fmt.Sprintf(`{"query": {"bool": {"must": [{"term": {"company_name": "%s"}}]}},"_source":["_id"],"size": 1}`, mae.FormatParam.Winner))
 			if rData != nil && len(*rData) > 0 {
 				winnerId = qutil.InterfaceToStr((*rData)[0]["_id"])
 			}