zhoufan il y a 4 ans
Parent
commit
5d7f146432

+ 1 - 0
CallCenterApi/CallCenterApi.BLL/T_Sys_DictionaryValue.cs

@@ -279,6 +279,7 @@ namespace CallCenterApi.BLL
279 279
         private void OutRedis()
280 280
         {
281 281
             RedisHelper1.KeyDelete("T_Sys_DictionaryValue");
282
+            RedisHelper1.KeyDelete("ztree_38");
282 283
         }
283 284
     }
284 285
 }

+ 15 - 1
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/DictionaryController.cs

@@ -12,7 +12,7 @@ using System.Web.Mvc;
12 12
 
13 13
 namespace CallCenterApi.Interface.Controllers
14 14
 {
15
-    [Authority]
15
+    //[Authority]
16 16
     public class DictionaryController : BaseController
17 17
     {
18 18
         private BLL.T_Sys_DictionaryValue dictionaryValueBLL = new BLL.T_Sys_DictionaryValue();
@@ -108,6 +108,15 @@ namespace CallCenterApi.Interface.Controllers
108 108
         {
109 109
             DataTable dt = new DataTable();
110 110
             string pid = HttpUtility.UrlDecode(RequestString.GetQueryString("pid"));
111
+            if (pid == "38")
112
+            {
113
+                string rjson = RedisHelper.StringGet("ztree_38")?.ToString()??"";
114
+                if (!string.IsNullOrEmpty(rjson))
115
+                {
116
+                    return Success("加载成功", rjson.ToObject<DataTable>());
117
+                }
118
+
119
+            }
111 120
             string sql = " and F_State=0 ";
112 121
             if (pid.Trim() != "")
113 122
             {
@@ -124,6 +133,11 @@ namespace CallCenterApi.Interface.Controllers
124 133
 
125 134
             var tab2 = DbHelperSQL.Query(sqltest).Tables[0];
126 135
 
136
+            if (pid == "38")
137
+            {
138
+                RedisHelper.StringSet("ztree_38", tab2.ToJson());
139
+            }
140
+
127 141
             if (tab2.Rows.Count > 0)
128 142
             {
129 143
                 return Success("加载成功", tab2);