Sfoglia il codice sorgente

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

lihai 6 anni fa
parent
commit
0d69bf77af

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

398
                 string keywords = HttpUtility.UrlDecode(RequestString.GetQueryString("keywords"));
398
                 string keywords = HttpUtility.UrlDecode(RequestString.GetQueryString("keywords"));
399
                 var configfj = new BLL.T_Sys_SystemConfig().GetModelList(" F_ParamCode='FileUrlPath' ").FirstOrDefault();
399
                 var configfj = new BLL.T_Sys_SystemConfig().GetModelList(" F_ParamCode='FileUrlPath' ").FirstOrDefault();
400
                 DataTable FileUrl = new DataTable();
400
                 DataTable FileUrl = new DataTable();
401
-               
401
+
402
+                int topNum = 8;
402
                 string sql = " F_DeleteFlag=0";
403
                 string sql = " F_DeleteFlag=0";
403
                 if (pid.Trim() != "")
404
                 if (pid.Trim() != "")
404
                 {
405
                 {
408
                 {
409
                 {
409
                     sql += " and (F_Content like '%" + keywords.Trim() + "%' or F_Title like '%"
410
                     sql += " and (F_Content like '%" + keywords.Trim() + "%' or F_Title like '%"
410
                         + keywords.Trim() + "%' or F_KeyWords like '%" + keywords.Trim() + "%')";
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
                List <Model.T_RepositoryInformation> modellist= new BLL.T_RepositoryInformation().DataTableToList(dt);
417
                List <Model.T_RepositoryInformation> modellist= new BLL.T_RepositoryInformation().DataTableToList(dt);
415
                
418
                
416
              
419