|
|
@@ -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);
|