zhoufan 4 anni fa
parent
commit
5d7f146432

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

279
         private void OutRedis()
279
         private void OutRedis()
280
         {
280
         {
281
             RedisHelper1.KeyDelete("T_Sys_DictionaryValue");
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
 
12
 
13
 namespace CallCenterApi.Interface.Controllers
13
 namespace CallCenterApi.Interface.Controllers
14
 {
14
 {
15
-    [Authority]
15
+    //[Authority]
16
     public class DictionaryController : BaseController
16
     public class DictionaryController : BaseController
17
     {
17
     {
18
         private BLL.T_Sys_DictionaryValue dictionaryValueBLL = new BLL.T_Sys_DictionaryValue();
18
         private BLL.T_Sys_DictionaryValue dictionaryValueBLL = new BLL.T_Sys_DictionaryValue();
108
         {
108
         {
109
             DataTable dt = new DataTable();
109
             DataTable dt = new DataTable();
110
             string pid = HttpUtility.UrlDecode(RequestString.GetQueryString("pid"));
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
             string sql = " and F_State=0 ";
120
             string sql = " and F_State=0 ";
112
             if (pid.Trim() != "")
121
             if (pid.Trim() != "")
113
             {
122
             {
124
 
133
 
125
             var tab2 = DbHelperSQL.Query(sqltest).Tables[0];
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
             if (tab2.Rows.Count > 0)
141
             if (tab2.Rows.Count > 0)
128
             {
142
             {
129
                 return Success("加载成功", tab2);
143
                 return Success("加载成功", tab2);