Răsfoiți Sursa

feat:xiugai

wangchuanjin 9 luni în urmă
părinte
comite
57cf6ef2f5
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 3 1
      api/internal/service/owner.go

+ 3 - 1
api/internal/service/owner.go

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