diff --git a/EOM.TSHotelManager.Application/Business/Customer/CustoService.cs b/EOM.TSHotelManager.Application/Business/Customer/CustoService.cs index f905c9eb1dca54ca4c54fda3072354f6444092c0..df842c6e3d0814f7de012919cf166c63cfd88191 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 => {