瀏覽代碼

供需列表查询添加浏览次数和沟通次数

吴志根 4 年之前
父節點
當前提交
ca2ae66410
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/dsb/com/cnd3b/restcontroller/publicmethod/homepage/SQL/供需列表查询.sql

+ 3 - 1
src/dsb/com/cnd3b/restcontroller/publicmethod/homepage/SQL/供需列表查询.sql

@@ -11,7 +11,9 @@ t1.checkdate,
 t1.fenddate,
 t1.fenddate,
 t2.fagentname,
 t2.fagentname,
 t1.tagentsid,
 t1.tagentsid,
-t1.tenterprise_userid
+t1.tenterprise_userid,
+t1.freadtimes,
+(select count(0) from timdialog where siteid=t1.siteid and ownertable='tsupplyanddemand' and ownerid=t1.tsupplyanddemandid) as fcommunicationtimes
 from tsupplyanddemand t1
 from tsupplyanddemand t1
 inner join tagents t2 on t1.siteid=t2.siteid and t1.tagentsid=t2.tagentsid
 inner join tagents t2 on t1.siteid=t2.siteid and t1.tagentsid=t2.tagentsid
 where t1.siteid=$siteid$ and t1.fstatus not in ('н¨') and $where$
 where t1.siteid=$siteid$ and t1.fstatus not in ('н¨') and $where$