Browse Source

Merge branch 'feature-dgy-二期功能' into feature-dgy-后台测试

DuGuYang 1 năm trước cách đây
mục cha
commit
5b1f87a2e7
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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;