Quellcode durchsuchen

供需列表查询调整

吴志根 vor 3 Jahren
Ursprung
Commit
dde1377c89

+ 2 - 2
src/dsb/com/cnd3b/restcontroller/customer/supplyanddemand/SQL/供需详情查询_对话框列表.sql

@@ -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