|
@@ -1,4 +1,5 @@
|
|
|
select t1.timdialogid from timdialogusers t1
|
|
|
inner join timdialog t2 on t1.siteid=t2.siteid and t1.timdialogid=t2.timdialogid
|
|
|
-where t1.siteid=$siteid$ and t2.fimdialogtype='ÆÕͨ' and exists(select *from timdialogusers where siteid=t1.siteid and timdialogid=t1.timdialogid and tenterprise_userid in $tenterprise_userid$ )
|
|
|
+where t1.siteid=$siteid$ and t2.fimdialogtype='ÆÕͨ'
|
|
|
+and exists(select timdialogid from timdialogusers where siteid=t1.siteid and timdialogid=t1.timdialogid and tenterprise_userid in $tenterprise_userid$ group by timdialogid having count(timdialogid)=2)
|
|
|
group by t1.timdialogid having count(0)=2
|