|
@@ -679,7 +679,7 @@ func BuyerList(partyA, supplier, heterotophy, intermediary, agency string, posit
|
|
|
}
|
|
|
//中间人
|
|
|
if intermediary != "" {
|
|
|
- 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)
|
|
|
+ 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(a.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"])
|