|
|
@@ -80,7 +80,7 @@ namespace BPA.MES.Base.Application.Services |
|
|
|
{ |
|
|
|
var entity = await _dbContext.Queryable<ProductLineEntity>() |
|
|
|
.WhereIF(!string.IsNullOrEmpty(input.Name), x => x.Name.Contains(input.Name)) |
|
|
|
.WhereIF(!string.IsNullOrEmpty(input.Code), x => x.Name.Contains(input.Code)) |
|
|
|
.WhereIF(!string.IsNullOrEmpty(input.Code), x => x.Code.Contains(input.Code)) |
|
|
|
.ToPagedListAsync(input.PageIndex, input.PageSize); |
|
|
|
SqlSugarPagedList<ProductLineOutput> output = entity.Adapt<SqlSugarPagedList<ProductLineOutput>>(); |
|
|
|
return output; |
|
|
|