浏览代码

修改字典

zhoufan 4 年之前
父节点
当前提交
761b263b93

+ 5 - 5
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/DictionaryController.cs

@@ -71,7 +71,7 @@ namespace CallCenterApi.Interface.Controllers
71 71
             }
72 72
             if (pid=="38")
73 73
             {
74
-                string rjson = RedisHelper.StringGet("ztree_38new")?.ToString() ?? "";
74
+                string rjson = RedisHelper1.StringGet("ztree_38new")?.ToString() ?? "";
75 75
                 if (!string.IsNullOrEmpty(rjson))
76 76
                 {
77 77
                     return Success("加载成功", rjson);
@@ -88,7 +88,7 @@ namespace CallCenterApi.Interface.Controllers
88 88
             List<TreeModelNew> modelList = BindTreeNew(dt, "0", tab2);
89 89
             if (pid == "38")
90 90
             {
91
-                RedisHelper.StringSet("ztree_38new", modelList.ToJson());
91
+                RedisHelper1.StringSet("ztree_38new", modelList.ToJson());
92 92
             }
93 93
             if (modelList.Count > 0)
94 94
             {
@@ -218,7 +218,7 @@ namespace CallCenterApi.Interface.Controllers
218 218
             string pid = HttpUtility.UrlDecode(RequestString.GetQueryString("pid"));
219 219
             if (pid == "38")
220 220
             {
221
-                string rjson = RedisHelper.StringGet("ztree_38")?.ToString()??"";
221
+                string rjson = RedisHelper1.StringGet("ztree_38")?.ToString()??"";
222 222
                 if (!string.IsNullOrEmpty(rjson))
223 223
                 {
224 224
                     return Success("加载成功", rjson.ToObject<DataTable>());
@@ -243,7 +243,7 @@ namespace CallCenterApi.Interface.Controllers
243 243
 
244 244
             if (pid == "38")
245 245
             {
246
-                RedisHelper.StringSet("ztree_38", tab2.ToJson());
246
+                RedisHelper1.StringSet("ztree_38", tab2.ToJson());
247 247
             }
248 248
 
249 249
             return Success("加载成功", tab2);
@@ -274,7 +274,7 @@ namespace CallCenterApi.Interface.Controllers
274 274
             }
275 275
 
276 276
             var tab2 = DbHelperSQL.Query("select * from View_Keys").Tables[0];
277
-            RedisHelper.StringSet("key_38", tab2.ToJson());
277
+            RedisHelper1.StringSet("key_38", tab2.ToJson());
278 278
 
279 279
             string sql = "";
280 280
             if (string.IsNullOrEmpty(key))