|
|
@@ -1,4 +1,4 @@
|
|
|
-select t1.timdialogid, t1.createdate, t4.fagentname, t2.fname, t2.funreadmsgcount, fdatastatus
|
|
|
+select t1.timdialogid, t1.createdate, t4.fagentname, t2.fname, t2.funreadmsgcount, fdatastatus,t3.tagentsid
|
|
|
from timdialog t1
|
|
|
inner join timdialogusers t2 on t1.siteid = t2.siteid and t1.timdialogid = t2.timdialogid
|
|
|
inner join tenterprise_users t3 on t2.siteid = t3.siteid and t2.tenterprise_userid = t3.tenterprise_userid
|
|
|
@@ -6,6 +6,6 @@ from timdialog t1
|
|
|
where t1.siteid = $siteid$
|
|
|
and t1.ownertable = 'tsupplyanddemand'
|
|
|
and t1.ownerid = $tsupplyanddemandid$
|
|
|
- and t1.timdialog = '2'
|
|
|
+ and t1.fdatastatus = '2'
|
|
|
and t4.tagentsid != $tagentsid$
|
|
|
order by (select MAX (timdialogmessageid) timdialogmessageid from timdialogmessage where siteid=$siteid$ and timdialogid=t1.timdialogid group by timdialogid) desc
|