Преглед изворни кода

促销管理授权范围数据重复修复

hu пре 3 година
родитељ
комит
6b753742ad

+ 1 - 1
src/custom/restcontroller/webmanage/sale/promotion/SQL/经销商合作企业查询.sql

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