Kaynağa Gözat

来电弹屏知识库默认8条,搜索显示所有

lihai 6 yıl önce
ebeveyn
işleme
0d69bf77af

+ 5 - 2
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/CallInScreenController.cs

@@ -398,7 +398,8 @@ namespace CallCenterApi.Interface.Controllers.tel
398 398
                 string keywords = HttpUtility.UrlDecode(RequestString.GetQueryString("keywords"));
399 399
                 var configfj = new BLL.T_Sys_SystemConfig().GetModelList(" F_ParamCode='FileUrlPath' ").FirstOrDefault();
400 400
                 DataTable FileUrl = new DataTable();
401
-               
401
+
402
+                int topNum = 8;
402 403
                 string sql = " F_DeleteFlag=0";
403 404
                 if (pid.Trim() != "")
404 405
                 {
@@ -408,9 +409,11 @@ namespace CallCenterApi.Interface.Controllers.tel
408 409
                 {
409 410
                     sql += " and (F_Content like '%" + keywords.Trim() + "%' or F_Title like '%"
410 411
                         + keywords.Trim() + "%' or F_KeyWords like '%" + keywords.Trim() + "%')";
412
+                    topNum = 0; //为零时不限制条数
413
+
411 414
                 }
412 415
 
413
-                dt = new BLL.T_RepositoryInformation().GetList(8, sql, " F_RepositoryId desc").Tables[0];
416
+                dt = new BLL.T_RepositoryInformation().GetList(topNum, sql, " F_RepositoryId desc").Tables[0];
414 417
                List <Model.T_RepositoryInformation> modellist= new BLL.T_RepositoryInformation().DataTableToList(dt);
415 418
                
416 419