fuwencai il y a 1 an
Parent
commit
961f527708
1 fichiers modifiés avec 2 ajouts et 3 suppressions
  1. 2 3
      entniche_new/src/service/customer/customer.go

+ 2 - 3
entniche_new/src/service/customer/customer.go

@@ -1042,8 +1042,8 @@ type Bucket struct {
 
 
 // 聚合查询
 // 聚合查询
 func GetAggs(index, itype, query string, countQuery string) (aggs esV7.Aggregations, res []map[string]interface{}, count int64, msg string) {
 func GetAggs(index, itype, query string, countQuery string) (aggs esV7.Aggregations, res []map[string]interface{}, count int64, msg string) {
-	log.Println("GetAggs query:",query)
-	log.Println("GetAggs countQuery",countQuery)
+	log.Println("GetAggs query:", query)
+	log.Println("GetAggs countQuery", countQuery)
 	count = elastic.Count(index, itype, countQuery)
 	count = elastic.Count(index, itype, countQuery)
 	if count > config.Config.ItemsNumber {
 	if count > config.Config.ItemsNumber {
 		msg = "搜索目标过于宽泛,请缩小搜索范围。"
 		msg = "搜索目标过于宽泛,请缩小搜索范围。"
@@ -1241,7 +1241,6 @@ func (this *CustomerAction) CstList() {
 		userInfo := jy.GetBigVipUserBaseMsg(this.Session(), *config.Middleground)
 		userInfo := jy.GetBigVipUserBaseMsg(this.Session(), *config.Middleground)
 		cotion.UserId = qutil.If(userInfo.Pid != "", userInfo.Pid, userId).(string)
 		cotion.UserId = qutil.If(userInfo.Pid != "", userInfo.Pid, userId).(string)
 		cotion.Session = this.Session()
 		cotion.Session = this.Session()
-		cotion.UserId = userId
 		cotion.EntUserId = entUserId
 		cotion.EntUserId = entUserId
 		searchCode := this.GetString("searchCode")
 		searchCode := this.GetString("searchCode")
 		isCliam, _ := this.GetInt("isCliam")
 		isCliam, _ := this.GetInt("isCliam")