|
|
@@ -1,4 +1,10 @@
|
|
|
-select timdialogusersid,t1.tenterprise_userid,fname,case when t1.tenterprise_userid=t2.tenterprise_userid then 1 else 0 end as fisadministrator from timdialogusers t1
|
|
|
-inner join timdialog t2 on t1.siteid=t2.siteid and t1.timdialogid=t2.timdialogid
|
|
|
-where t1.siteid=$siteid$ and t1.timdialogid in $timdialogid$ and t1.fisremove=0
|
|
|
+select timdialogusersid,
|
|
|
+ t1.timdialogid,
|
|
|
+ t1.tenterprise_userid,
|
|
|
+ fname,
|
|
|
+ case when t1.tenterprise_userid = t2.tenterprise_userid then 1 else 0 end as fisadministrator
|
|
|
+from timdialogusers t1
|
|
|
+ inner join timdialog t2 on t1.siteid = t2.siteid and t1.timdialogid = t2.timdialogid
|
|
|
+where t1.siteid = $siteid$
|
|
|
+ and t1.timdialogid in $timdialogid$ and t1.fisremove=0
|
|
|
|