|
|
@@ -2,9 +2,6 @@ select t1.tenterprise_userid
|
|
|
t1.fphonenumber,
|
|
|
t1.siteid,
|
|
|
t1.tagentsid,
|
|
|
- t3.fagentname,
|
|
|
- t3.fagentnum,
|
|
|
- t3.fagentname,
|
|
|
t1.fusertype,
|
|
|
t1.frole,
|
|
|
t1.fname,
|
|
|
@@ -15,10 +12,8 @@ select t1.tenterprise_userid
|
|
|
0 as fpayamount,
|
|
|
t5.fagentoldamount,
|
|
|
t2.floginmode,
|
|
|
- t2.tenterpriseid,
|
|
|
- t3.ftype as fagenttype
|
|
|
+ t2.tenterpriseid
|
|
|
from tenterprise_users t1
|
|
|
inner join tenterprise t2 on t1.siteid = t2.siteid
|
|
|
- left join tagents t3 on t1.siteid = t3.siteid and t1.tagentsid = t3.tagentsid
|
|
|
inner join tappmodelauth t5 on t1.siteid = t5.siteid and t5.fisdefault = 1
|
|
|
where t1.fphonenumber =$fphonenumber$ and t2.floginmode in (1, 3) and t1.fisused=1 and t1.fusertype = 'ÆóÒµ'
|