select tagentsid,fprovince,fcity,fcounty,fagentnum,fagentshortname,fagentname,fphonenumber,fbirthdate,fbegdate from DSBCRM..tagents t1
where t1.siteid=$siteid$ and t1.fsaleruserid in $tenterprise_userid$