ソースを参照

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

eganwu 1 年間 前
コミット
487eaf7bce

+ 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,