|
@@ -680,8 +680,7 @@ func BuyerList(partyA, supplier, heterotophy, intermediary, agency string, posit
|
|
|
}
|
|
|
//中间人
|
|
|
if intermediary != "" {
|
|
|
- intermediarySql := fmt.Sprintf(`select b.relate_id as relate_id,b.relate_name as relate_name from crm.connection a inner join crm.connection_introduce b on (a.position_id=%s and find_in_set(company_id,"")and a.id=b.connection_id and b.itype=1)`, gconv.String(positionId), intermediary)
|
|
|
- intermediaryArr := CrmMysql.SelectBySql(intermediarySql)
|
|
|
+ intermediaryArr := CrmMysql.SelectBySql(`select b.relate_id as relate_id,b.relate_name as relate_name from crm.connection a inner join crm.connection_introduce b on (a.position_id=? and find_in_set(company_id,?) and a.id=b.connection_id and b.itype=1)`, positionId, intermediary)
|
|
|
if intermediaryArr != nil && len(*intermediaryArr) > 0 {
|
|
|
for _, m := range *intermediaryArr {
|
|
|
buyerId := gconv.String(m["relate_id"])
|