|
@@ -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
|
|
|
}
|