|
|
@@ -213,15 +213,17 @@ namespace CallCenterApi.Interface.Controllers
|
|
213
|
213
|
}
|
|
214
|
214
|
|
|
215
|
215
|
//获取字典值列表
|
|
216
|
|
- public ActionResult GetDicValueListByFlag(string flag)
|
|
|
216
|
+ public ActionResult GetDicValueListByFlag(string flag,string key)
|
|
217
|
217
|
{
|
|
218
|
218
|
ActionResult res = NoToken("未知错误,请重新登录");
|
|
219
|
219
|
if (Request.IsAuthenticated)
|
|
220
|
220
|
{
|
|
221
|
221
|
|
|
222
|
222
|
DataTable dt = new DataTable();
|
|
223
|
|
-
|
|
224
|
|
- dt = new BLL.T_Sys_DictionaryValue().GetList(" F_DictionaryFlag='" + flag + "' and F_State=1 ").Tables[0];
|
|
|
223
|
+ var sql = "";
|
|
|
224
|
+ if (!string.IsNullOrWhiteSpace(key))
|
|
|
225
|
+ sql += " and F_Name like '%" + key + "%' ";
|
|
|
226
|
+ dt = new BLL.T_Sys_DictionaryValue().GetList(" F_DictionaryFlag='" + flag + "' and F_State=1 "+ sql).Tables[0];
|
|
225
|
227
|
|
|
226
|
228
|
res = Success("列表加载成功", dt);
|
|
227
|
229
|
}
|