Explorar o código

9694 【普瑞】数据团队参与人,查询逻辑增加规则

wu hai 2 meses
pai
achega
97cb73fb61
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      src/custom/restcontroller/system/datateam/datateam.java

+ 4 - 1
src/custom/restcontroller/system/datateam/datateam.java

@@ -329,7 +329,10 @@ public class datateam extends Controller {
             }
             }
 
 
         }
         }
-        where.append(" and exists(select * from sa_salearea_hr where t1.siteid=sa_salearea_hr.siteid and t1.hrid=sa_salearea_hr.hrid)");
+        if (userInfo.isSaler()) {
+            where.append(" and exists(select * from sa_salearea_hr where t1.siteid=sa_salearea_hr.siteid and t1.hrid=sa_salearea_hr.hrid)");
+        }
+
         SQLFactory sqlFactory = new SQLFactory(this, "数据团队人员选择_企业", pageSize, pageNumber, pageSorting);
         SQLFactory sqlFactory = new SQLFactory(this, "数据团队人员选择_企业", pageSize, pageNumber, pageSorting);
         sqlFactory.addParameter("siteid", siteid);
         sqlFactory.addParameter("siteid", siteid);
         sqlFactory.addParameter("ownertable", ownertable);
         sqlFactory.addParameter("ownertable", ownertable);