|
@@ -11,4 +11,4 @@ from timdialogusers t1
|
|
|
inner join tagents t4 on t3.siteid=t4.siteid and t3.tagentsid=t4.tagentsid
|
|
|
where t1.siteid = $siteid$
|
|
|
and t1.timdialogid in $timdialogid$ and t1.fisremove=0
|
|
|
-
|
|
|
+order by case when t1.tenterprise_userid = t2.tenterprise_userid then 1 else 0 end desc,t1.createdate
|