From ee21dcd688014213aba436d745136b3ae1449855 Mon Sep 17 00:00:00 2001 From: Chunkit Yeung Date: Sun, 25 Feb 2024 02:22:11 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84=E5=AF=BC=E5=87=BA=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Business/Customer/CustoService.cs | 24 +------------------ 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/EOM.TSHotelManager.Application/Business/Customer/CustoService.cs b/EOM.TSHotelManager.Application/Business/Customer/CustoService.cs index f905c9e..df842c6 100644 --- a/EOM.TSHotelManager.Application/Business/Customer/CustoService.cs +++ b/EOM.TSHotelManager.Application/Business/Customer/CustoService.cs @@ -191,26 +191,9 @@ namespace EOM.TSHotelManager.Application //查询出所有客户信息 List custos = new List(); - //var where = Expressionable.Create(); - - //where = where.And(a => a.delete_mk != 1); - - //if (!selectCustoAll.CustoNo.IsNullOrEmpty()) - //{ - // where = where.And(a => a.CustoNo.Contains(selectCustoAll.CustoNo)); - //} - //if (!selectCustoAll.CustoName.IsNullOrEmpty()) - //{ - // where = where.And(a => a.CustoName.Contains(selectCustoAll.CustoName)); - //} - //if (!selectCustoAll.delete_mk.IsNullOrEmpty()) - //{ - // where = where.And(a => a.delete_mk == selectCustoAll.delete_mk); - //} - var count = 0; - if (!pageIndex.IsNullOrEmpty() && !pageSize.IsNullOrEmpty()) + if (pageIndex != 0 && pageSize != 0) { custos = custoRepository.AsQueryable().ToPageList((int)pageIndex, (int)pageSize, ref count); } @@ -218,11 +201,6 @@ namespace EOM.TSHotelManager.Application { custos = custoRepository.AsQueryable().ToList(); } - //else - //{ - // custos = custoRepository.GetList(where.ToExpression()); - // count = custos.Count(); - //} custos.ForEach(source => { -- Gitee