فهرست منبع

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

eganwu 1 سال پیش
والد
کامیت
487eaf7bce
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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,