Quellcode durchsuchen

群列表和主界面新增群主账号ID
群成员列表新增是否群主字段

沈静伟 vor 3 Jahren
Ursprung
Commit
58a5f185ce

+ 1 - 1
src/dsb/com/cnd3b/restcontroller/system/im/imdialog/SQL/即时通讯普通群列表查询.sql

@@ -1,5 +1,5 @@
 select t1.timdialogid,t1.ownerid,t1.ownertable,t1.fimdialogtype,t1.fimdialogname,t2.fimdialognotes,
-t2.createdate as fjoindate,t2.fname,t2.timdialogusersid,t2.funreadmsgcount from timdialog t1
+t2.createdate as fjoindate,t2.fname,t2.funreadmsgcount,t1.tenterprise_userid as fimuserid from timdialog t1
 inner join timdialogusers t2 on t1.siteid=t2.siteid and t1.timdialogid=t2.timdialogid
 where t1.siteid=$siteid$ and t1.fimdialogtype='ÆÕͨ' and t2.tenterprise_userid=$tenterprise_userid$ and t2.fisremove=0
 and $where$

+ 1 - 1
src/dsb/com/cnd3b/restcontroller/system/im/imdialog/SQL/即时通讯群主界面查询.sql

@@ -1,3 +1,3 @@
-select t1.timdialogid,t1.ownerid,t1.ownertable,t1.fimdialogtype,t1.fimdialogname,t2.fimdialognotes,t2.createdate as fjoindate,t2.fname,t2.timdialogusersid from timdialog t1
+select t1.timdialogid,t1.ownerid,t1.ownertable,t1.fimdialogtype,t1.fimdialogname,t2.fimdialognotes,t2.createdate as fjoindate,t2.fname,t1.tenterprise_userid as fimuserid from timdialog t1
 inner join timdialogusers t2 on t1.siteid=t2.siteid and t1.timdialogid=t2.timdialogid
 where t1.siteid=$siteid$ and t1.timdialogid=$timdialogid$ and t2.tenterprise_userid=$tenterprise_userid$

+ 2 - 1
src/dsb/com/cnd3b/restcontroller/system/im/imdialog/SQL/即时通讯群成员列表查询.sql

@@ -1,3 +1,4 @@
-select timdialogusersid,tenterprise_userid,fname from timdialogusers t1
+select timdialogusersid,tenterprise_userid,fname,case when t1.tenterprise_userid=t2.tenterprise_userid then 1 else 0 end as fisadministrator from timdialogusers t1
+inner join timdialog t2 on t1.siteid=t2.siteid and t1.timdialogid=t2.timdialogid
 where t1.siteid=$siteid$ and t1.timdialogid=$timdialogid$ and t1.fisremove=0