| | |
| | | } |
| | | |
| | | |
| | | public List<CustomerDto> GetCustomerList(string name, int? type, string linkMan, string phone, int page, int limit, out int count) |
| | | public List<CustomerDto> GetCustomerList(string no,string name, int? type, string linkMan, string phone, int page, int limit, out int count) |
| | | { |
| | | try |
| | | { |
| | | Expression<Func<SysCustomer, bool>> item = Expressionable.Create<SysCustomer>() |
| | | .AndIF(!string.IsNullOrWhiteSpace(no), it => it.CustomerNo.Contains(no.Trim())) |
| | | .AndIF(!string.IsNullOrWhiteSpace(name), it => it.CustomerName.Contains(name.Trim())) |
| | | .AndIF(type >= 0, it => it.Type == type) |
| | | .AndIF(!string.IsNullOrWhiteSpace(linkMan), it => it.LinkMan.Contains(linkMan.Trim())) |