| | |
| | | [DisplayName("分页查询PLC")] |
| | | public async Task<SqlSugarPagedList<WcsPlcOutput>> Page(PageWcsPlcInput input) |
| | | { |
| | | |
| | | input.SearchKey = input.SearchKey?.Trim(); |
| | | var query = _wcsPlcRep.AsQueryable() |
| | | .WhereIF(!string.IsNullOrEmpty(input.SearchKey), u => |
| | |
| | | .WhereIF(input.Type.HasValue, u => u.Type == input.Type) |
| | | .WhereIF(input.Enable.HasValue, u => u.Enable == input.Enable) |
| | | .Select<WcsPlcOutput>(); |
| | | return await query.OrderBuilder(input).ToPagedListAsync(input.Page, input.PageSize); |
| | | return await query.OrderBuilder(input,input.Type.ToString()).ToPagedListAsync(input.Page, input.PageSize); |
| | | } |
| | | |
| | | /// <summary> |