@@ -12,6 +12,7 @@ t1.fenddate,
t2.fagentname,
t1.freadtimes,
t1.tenterprise_userid,
+ t1.tagentsid,
(select count(0) from timdialog where siteid=t1.siteid and ownertable='tsupplyanddemand' and ownerid=t1.tsupplyanddemandid) as fcommunicationtimes
from tsupplyanddemand t1
inner join tagents t2 on t1.siteid=t2.siteid and t1.tagentsid=t2.tagentsid