瀏覽代碼

协议管理添加标题查询

DuGuYang 1 年之前
父節點
當前提交
43875cc17c
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Areas/Api/Controllers/v1/Bs/PageInfoController.cs

+ 4 - 0
Areas/Api/Controllers/v1/Bs/PageInfoController.cs

@@ -40,6 +40,10 @@ namespace MySystem.Areas.Api.Controllers.v1.Bs
             int pageSize = int.Parse(function.CheckInt(data["page_size"].ToString()));
             int pageNum = int.Parse(function.CheckInt(data["page_num"].ToString()));
             string condition = "";
+            if (!string.IsNullOrEmpty(data["Title"].ToString()))
+            {
+                condition += " and Title like '%" + Title + "%'";
+            }
             List<RelationData> relationData = new List<RelationData>();
             Other = new Dictionary<string, object>();
             int count = 0;