wangkaiyue пре 3 година
родитељ
комит
9c608b99fe

+ 4 - 5
src/jfw/modules/bigmember/src/entity/portraitBuyerSearch.go

@@ -428,7 +428,7 @@ func BuyerPortraitSearch(screen *PortraitScreen) (map[string]interface{}, error)
 		returnData[k] = v
 	}
 	go func() {
-		fmt.Printf("BuyerPortraitSearch: %s spend time %fs\n	doSearchSql: %s\n", screen.Ent, time.Since(tBegin).Seconds(), doSearchSql)
+		log.Printf("BuyerPortraitSearch: %s spend time %fs\n", screen.Ent, time.Since(tBegin).Seconds())
 	}()
 	return returnData, nil
 }
@@ -479,7 +479,6 @@ func GetWithEntPortraitData(listDataItf interface{}, province string) (map[strin
 			}()
 			res := elastic.Get("qyxy", "qyxy", fmt.Sprintf(buyerWithEntPortraitSqlPage, doSearchSql, i*buyerWithEntThreadSearchNum, buyerWithEntThreadSearchNum))
 			if res != nil && len(*res) > 0 {
-				//log.Println("第", i*buyerWithEntThreadSearchNum, len(*res), "条数据")
 				lock.Lock()
 				entMsgList = append(entMsgList, *res...)
 				lock.Unlock()
@@ -487,7 +486,7 @@ func GetWithEntPortraitData(listDataItf interface{}, province string) (map[strin
 		}(index)
 	}
 	swg.Wait()
-	log.Printf("共%d条记录 查询批次%d 合并结果后数量%d\n", searchNum, goThreadNum, len(entMsgList))
+	//log.Printf("共%d条记录 查询批次%d 合并结果后数量%d\n", searchNum, goThreadNum, len(entMsgList))
 
 	if entMsgList == nil || len(entMsgList) == 0 {
 		return nil, 0, errors.New("中标企业查询结果为空")
@@ -597,7 +596,7 @@ func GetWithEntPortraitData(listDataItf interface{}, province string) (map[strin
 		returnData["withEstablishData"] = establishData
 	}
 	go func() {
-		fmt.Printf("GetWithEntPortraitData: spend time %fs\n	doSearchSql: %s\n", time.Since(tBegin).Seconds(), doSearchSql)
+		log.Printf("GetWithEntPortraitData: spend time %fs\n", time.Since(tBegin).Seconds())
 	}()
 	return returnData, thisProvinceWinnerCount, nil
 }
@@ -728,7 +727,7 @@ func GetWinnerNamesByIds(ids []string) (returnMap map[string]string) {
 		}
 	}
 	go func() {
-		fmt.Printf("GetWinnerNamesByIds: spend time %fs\n	queryLen: %d\n queryArrIds:%v\n", time.Since(tBegin).Seconds(), len(ids), ids)
+		log.Printf("GetWinnerNamesByIds: spend time %fs\n queryLen: %d\n queryArrIds:%v\n", time.Since(tBegin).Seconds(), len(ids), ids)
 	}()
 	return
 }

+ 2 - 2
src/jfw/modules/bigmember/src/entity/portraitWinnerSearch.go

@@ -4,6 +4,7 @@ import (
 	"encoding/json"
 	"errors"
 	"fmt"
+	"log"
 	qutil "qfw/util"
 	"qfw/util/elastic"
 	"sort"
@@ -45,7 +46,6 @@ func GetProjectContactsMsg(buyerName, entId string) (list []map[string]interface
 		return list
 	}
 	searchSql := fmt.Sprintf(`{"query":{"bool":{"must":[%s]}},"_source":["_id","zbtime","projectname","list"],"sort":[{"zbtime":"desc"}]}`, strings.Join(musts, ","))
-	//fmt.Println("searchSql", searchSql)
 	projectList := elastic.Get("projectset", "projectset", searchSql)
 	if projectList == nil || len(*projectList) == 0 {
 		return list
@@ -420,7 +420,7 @@ func GetWinnerPortraitSearch(screen *PortraitScreen) (map[string]interface{}, er
 		returnData["rate"] = rataMap
 	}
 	go func() {
-		fmt.Printf("WinnerPortraitSearch: %s spend time %fs\n	doSearchSql: %s\n", screen.Ent, time.Since(tBegin).Seconds(), doSearchSql)
+		log.Printf("WinnerPortraitSearch: %s spend time %fs\n", screen.Ent, time.Since(tBegin).Seconds())
 	}()
 	return returnData, nil
 }