From 3b18a48485f7207438d9d0eb3038d979e069431d Mon Sep 17 00:00:00 2001
From: yzh <snbbt@21cn.com>
Date: 星期四, 26 五月 2022 17:58:18 +0800
Subject: [PATCH] 优化产品及产品分类,订单,对称加密,IP转地区名称

---
 web/web/GwStatisV3.ashx |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/web/web/GwStatisV3.ashx b/web/web/GwStatisV3.ashx
index 557e27a..752c2e1 100644
--- a/web/web/GwStatisV3.ashx
+++ b/web/web/GwStatisV3.ashx
@@ -10,10 +10,16 @@
 public class GwStatisV3 : PageHandler<SysUser> 
 {
     private GwStatisV3Dao _Dao = new GwStatisV3Dao();
+    private int _userId = -1;
+    private int _userType = -1;
+    private string _account = "";
     
     public override JsonPageResult ProcessRequestInternal(PageContext<Model.SysUser> context)
     {
         string action = context.GetString("action");
+        _userId = context.SessionObject.UserID;
+        _userType = context.SessionObject.UserType;
+        _account = context.SessionObject.Account;
 
         switch (action)
         {
@@ -75,6 +81,8 @@
         string opID = context.GetString("opid");
         string statistype = context.GetString("statistype");
         StatisOption statisoption = (StatisOption)context.GetInt("statisoption");
+            
+        string permissionsSQL = new GwClientDao().GetClientPermissions(_userId, _userType, null);
 
         List<GwOp> opList;
         
@@ -87,7 +95,7 @@
         
         using (GwClientDao dao = new GwClientDao())
         {
-             clientList = dao.LoadInfoList("", "", "", "");
+             clientList = dao.LoadInfoList("", "", "", "", permissionsSQL);
         }
         
         List<GwAp> apList;
@@ -98,9 +106,11 @@
 
              apList = dao.LoadInfoList("", "", "", out recordCount, 99999, 1);
         }
+
+        //var list = _Dao.Query(beginTime, endTime, clientID, spID, apID, opID, statistype, (StatisOption)statisoption);
         
-        
-        var list = _Dao.Query(beginTime, endTime, clientID, spID, apID, opID, statistype, (StatisOption)statisoption);
+        //鏍规嵁绯荤粺鐢ㄦ埛鑾峰彇鏈夋潈闄愬鎴�
+        var list = _Dao.Query(beginTime, endTime, clientID, spID, apID, opID, statistype, permissionsSQL, (StatisOption)statisoption);
 
         System.Text.StringBuilder sb = new System.Text.StringBuilder();
 

--
Gitblit v1.9.1