-where fphonenumber is not null and siteid=$siteid$ and tenterprise_userid = $tenterprise_userid$
+where fphonenumber is not null and siteid=$siteid$ and
+(($ftype$!='ÉÌ»§' and tenterprise_userid = $tenterprise_userid$)or
+ ($ftype$='ÉÌ»§' and exists(select *from tenterprise_users t1 where t1.tenterprise_userid=$tenterprise_userid$ and tenterprise_users.tagentsid=t1.tagentsid) ))