Bladeren bron

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

hu 3 jaren geleden
bovenliggende
commit
12f815e628

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

@@ -10,15 +10,11 @@ select t1.sys_enterpriseid,
        t2.agentnum,
        t2.type,
        t1.grade,
-       t3.sa_saleareaid,
        t2.signdate,
        t2.createby,
        t2.createdate,
-       t2.status,
-       t4.areaname
+       t2.status
 from sys_enterprise t1
          inner join sa_agents t2 on t1.siteid = t2.siteid and t1.sys_enterpriseid = t2.sys_enterpriseid
-         left join sys_enterprise_tradefield t3 on t1.siteid = t3.siteid and t1.sys_enterpriseid = t3.sys_enterpriseid
-         left join sa_salearea t4 on t4.siteid = t3.siteid and t4.sa_saleareaid = t3.sa_saleareaid
 where t1.siteid = $siteid$
   and $where$ and t1.sys_enterpriseid not in (select sys_enterpriseid from sa_promotion_auth where sa_promotionid=$sa_promotionid$)