Ver Fonte

开户行查询接口增加地区和银行名称两个参数

lcl há 1 ano atrás
pai
commit
1e0f83bf6e

+ 2 - 2
Areas/Api/Controllers/v1/MainServer/OpenBankTableController.cs

@@ -40,7 +40,7 @@ namespace MySystem.Areas.Api.Controllers.v1
             int PageNum = int.Parse(function.CheckInt(data["PageNum"].ToString()));
             List<Dictionary<string, object>> dataList = new List<Dictionary<string, object>>();
             IQueryable<OpenBankTable> query = maindb.OpenBankTable;
-            if(!value.Contains("\"Areas\""))
+            if(value.Contains("\"Areas\""))
             {
                 if(!string.IsNullOrEmpty(data["Areas"].ToString()))
                 {
@@ -48,7 +48,7 @@ namespace MySystem.Areas.Api.Controllers.v1
                     query = query.Where(m => m.BankName.Contains(Areas));
                 }
             }
-            if(!value.Contains("\"BankName\""))
+            if(value.Contains("\"BankName\""))
             {
                 if(!string.IsNullOrEmpty(data["BankName"].ToString()))
                 {