xuzhiheng 1 年之前
父节点
当前提交
e6536c207b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      service/company.go

+ 1 - 1
service/company.go

@@ -87,7 +87,7 @@ func DistributeClueShow(this *biservice.DistributeClueShowReq) *biservice.Distri
 	//
 	clueArrs := []string{}
 	clueArrSync := &sync.Mutex{}
-	sql2 := `SELECT b.id,b.position_id FROM dwd_f_crm_clue_info a INNER JOIN (SELECT id,cluename,position_id FROM dwd_f_crm_clue_info WHERE position_id in (` + strings.Join(pArr, ",") + `) AND id not in (` + this.ClueIdList + `) AND company_nature = 0 AND company_verification = 1 GROUP BY cluename) AS b ON a.cluename = b.cluename WHERE a.id in (` + this.ClueIdList + `)`
+	sql2 := `SELECT a.id,b.position_id FROM dwd_f_crm_clue_info a INNER JOIN (SELECT id,cluename,position_id FROM dwd_f_crm_clue_info WHERE position_id in (` + strings.Join(pArr, ",") + `) AND id not in (` + this.ClueIdList + `) AND company_nature = 0 AND company_verification = 1 GROUP BY cluename) AS b ON a.cluename = b.cluename WHERE a.id in (` + this.ClueIdList + `)`
 	log.Println("sql2 ", sql2)
 	ldata := JyBiTidb.SelectBySql(sql2)
 	if ldata != nil && len(*ldata) > 0 {