xuzhiheng 1 ano atrás
pai
commit
d49c49a458
1 arquivos alterados com 3 adições e 2 exclusões
  1. 3 2
      service/company.go

+ 3 - 2
service/company.go

@@ -199,6 +199,7 @@ func DistributeClueShow(this *biservice.DistributeClueShowReq) *biservice.Distri
 							}
 						}
 					}
+					log.Println("RDATA2 ", rdata[sindex].CompanyCount, rdata[sindex].MinCount, rdata[sindex].CompanyCounts, rdata[sindex].ClueCount, len(v))
 				}
 			}
 		} else {
@@ -207,7 +208,7 @@ func DistributeClueShow(this *biservice.DistributeClueShowReq) *biservice.Distri
 	}
 	log.Println("clueArrs1 ", clueArrs1)
 	if len(clueArrs1) > 0 {
-		sql3 := `SELECT cluename,COUNT(*) AS count FROM dwd_f_crm_clue_info WHERE id in (` + strings.Join(clueArrs, ",") + `) GROUP BY cluename ORDER BY count desc`
+		sql3 := `SELECT cluename,COUNT(*) AS count FROM dwd_f_crm_clue_info WHERE id in (` + strings.Join(clueArrs1, ",") + `) GROUP BY cluename ORDER BY count desc`
 		log.Println("sql3 ", sql3) //从大到小排列这一列线索名称分组及数量情况
 		cdata := JyBiTidb.SelectBySql(sql3)
 		if cdata != nil && len(*cdata) > 0 {
@@ -261,7 +262,7 @@ func DistributeClueShow(this *biservice.DistributeClueShowReq) *biservice.Distri
 					}
 				}
 				if this.DataType == 3 {
-					iddata := JyBiTidb.SelectBySql(`SELECT id FROM dwd_f_crm_clue_info WHERE cluename = "` + cluename + `" and id in (` + strings.Join(clueArrs, ",") + `)`)
+					iddata := JyBiTidb.SelectBySql(`SELECT id FROM dwd_f_crm_clue_info WHERE cluename = "` + cluename + `" and id in (` + strings.Join(clueArrs1, ",") + `)`)
 					if iddata != nil { //分线索
 						wg := new(sync.WaitGroup)
 						ch := make(chan bool, 10)