|
|
@@ -15,6 +15,6 @@ select t1.sys_enterpriseid,
|
|
|
t2.createdate,
|
|
|
t2.status
|
|
|
from sys_enterprise t1
|
|
|
- inner join sa_agents t2 on t1.siteid = t2.siteid and t1.sys_enterpriseid = t2.sys_enterpriseid
|
|
|
+ inner join sa_agents t2 on t1.siteid = t2.siteid and t1.sys_enterpriseid = t2.sys_enterpriseid and t2.status='启用'
|
|
|
where t1.siteid = $siteid$
|
|
|
and $where$ and t1.sys_enterpriseid not in (select sys_enterpriseid from sa_promotion_auth where sa_promotionid=$sa_promotionid$)
|