|
@@ -138,7 +138,7 @@ func GetContacts(entName string, entType int) (list []interface{}) {
|
|
FROM
|
|
FROM
|
|
dws_f_ent_contact a
|
|
dws_f_ent_contact a
|
|
LEFT JOIN dws_f_bpmc_relation b ON (a.id = b.contact_id )
|
|
LEFT JOIN dws_f_bpmc_relation b ON (a.id = b.contact_id )
|
|
- WHERE a.name_id = ? AND a.contact_tel is not null AND a.contact_tel <> '' AND a.contact_tel REGEXP '^[0-9]+$' AND (if(a.source_type=2,true,(a.identity_type &(1 << ?)) > 0 ))) m
|
|
|
|
|
|
+ WHERE a.name_id = ? AND a.contact_tel is not null AND a.contact_tel <> '' AND a.contact_tel REGEXP '^[0-9-]+$' AND (if(a.source_type=2,true,(a.identity_type &(1 << ?)) > 0 ))) m
|
|
LEFT JOIN dws_f_bid_baseinfo n ON m.infoid = n.infoid
|
|
LEFT JOIN dws_f_bid_baseinfo n ON m.infoid = n.infoid
|
|
where (if(m.source_type=1,projectname is not null AND projectname != "",true)) order by publishtime desc;`
|
|
where (if(m.source_type=1,projectname is not null AND projectname != "",true)) order by publishtime desc;`
|
|
rsContact := db.MysqlGloabl.SelectBySql(queryContacts, nameId, entType)
|
|
rsContact := db.MysqlGloabl.SelectBySql(queryContacts, nameId, entType)
|