Explorar o código

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

eganwu hai 1 ano
pai
achega
487eaf7bce
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,