Pārlūkot izejas kodu

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

DuGuYang 1 gadu atpakaļ
vecāks
revīzija
5b1f87a2e7
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  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;