Browse Source

修复营销区域调整后对应的业务员区域未更新的bug

eganwu 1 year ago
parent
commit
487eaf7bce
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/custom/beans/salearea/SQL/区域层级信息创建.sql

+ 1 - 1
src/custom/beans/salearea/SQL/区域层级信息创建.sql

@@ -1,7 +1,7 @@
 with recursive salearea as (
     select sa_saleareaid, areaname, 1 as level
     from sa_salearea
-    where parentid is null
+    where  (parentid is null or parentid=0)
       and siteid = $siteid$
     union all
     select t2.sa_saleareaid,