Преглед на файлове

业绩目标显示优化

hu преди 1 година
родител
ревизия
c14b999ba3
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/custom/restcontroller/webmanage/sale/salestarget/SQL/通用-人员范围查询.sql

+ 1 - 1
src/custom/restcontroller/webmanage/sale/salestarget/SQL/通用-人员范围查询.sql

@@ -2,7 +2,7 @@ SELECT distinct
 			 t1.sa_saleareaid,
 			 t1.areaname
 FROM sa_salearea t1
-WHERE t1.siteid = $siteid$ and ifnull(t1.sa_saleareaid,0)!=0 and t1.areaname not in('销售部','来斯奥')
+WHERE t1.siteid = $siteid$ and ifnull(t1.sa_saleareaid,0)!=0 and t1.areaname not in('销售部','来斯奥') and t1.parentid!=0
   AND $where$
   AND t1.sa_saleareaid $isIn$
       (SELECT sa_saleareaid FROM sa_salestargethr WHERE sa_salestargetbillid = $sa_salestargetbillid$ AND siteid = $siteid$)