|
@@ -127,7 +127,7 @@ func BuyerPortraitSearch(screen *PortraitScreen) (map[string]interface{}, error)
|
|
|
tBegin := time.Now()
|
|
|
doSearchSql := fmt.Sprintf(buyerPortraitSearchSql, strings.Join(mustQueryArr, ","), bidamountTimeRange, getMoneyRange(), comminTimeRange, comminTimeRange)
|
|
|
res, count := util.GetAggsWithCount("projectset", "projectset", doSearchSql)
|
|
|
- log.Println("buyerSearchSql", doSearchSql)
|
|
|
+ //log.Println("buyerSearchSql", doSearchSql)
|
|
|
if res == nil {
|
|
|
return nil, errors.New(fmt.Sprintf("%s采购单位画像查询异常\n", screen.Ent))
|
|
|
}
|
|
@@ -579,8 +579,6 @@ func GetWithEntPortraitData(listDataItf interface{}, province string, bidamountO
|
|
|
|
|
|
tBegin := time.Now()
|
|
|
doSearchSql := fmt.Sprintf(queryTermByIdSql, `"`+strings.Join(winnerIdList, `","`)+`"`)
|
|
|
- aa := fmt.Sprintf(queryMustSql, doSearchSql)
|
|
|
- fmt.Println(aa)
|
|
|
|
|
|
searchNum := elastic.Count("qyxy", "qyxy", fmt.Sprintf(queryMustSql, doSearchSql))
|
|
|
if searchNum == 0 {
|