|
@@ -4,6 +4,7 @@ import (
|
|
|
"context"
|
|
|
"encoding/json"
|
|
|
"fmt"
|
|
|
+ "log"
|
|
|
"sort"
|
|
|
"strings"
|
|
|
"time"
|
|
@@ -708,7 +709,7 @@ func ProjectHandle(buyerArr []string, area, businessStr string, dataMap *map[str
|
|
|
areaStr, areaArgs := ConditionHandle(strings.Split(area, ","))
|
|
|
sqlStr += fmt.Sprintf(fmt.Sprintf(" area in (%s)", areaStr), areaArgs...)
|
|
|
}
|
|
|
- sqlStr += " and project_bidstatus>1 GROUP by buyer,buyer_id "
|
|
|
+ sqlStr += " GROUP by buyer,buyer_id "
|
|
|
if sourceType == "1" {
|
|
|
sqlStr += " HAVING ocount>2 "
|
|
|
}
|
|
@@ -716,6 +717,7 @@ func ProjectHandle(buyerArr []string, area, businessStr string, dataMap *map[str
|
|
|
countSql := fmt.Sprintf("select count(1) as count from (%s) b ", sqlStr)
|
|
|
sqlStr += " limit ?,?"
|
|
|
//总数查询
|
|
|
+ log.Println(sqlStr)
|
|
|
rows, err1 := ClickhouseConn.Query(context.TODO(), sqlStr, startIndex, PageSize)
|
|
|
count = T.NetworkCom.Count(countSql)
|
|
|
if err1 != nil {
|