|
|
@@ -29,7 +29,8 @@ namespace BPA.SAAS.Manage.Application.Device.Services |
|
|
|
{ |
|
|
|
var total = new RefAsync<int>(); |
|
|
|
var data = await _db.Queryable<BPA_ProductVesion,BPA_Product>((a, b) => new JoinQueryInfos(JoinType.Left, b.Id == a.ProductId)) |
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(inputDto.ProductId), x => x.ProductId.Contains(inputDto.ProductId)) |
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(inputDto.ProductName), (a, b) => b.Name.Contains(inputDto.ProductName)) |
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(inputDto.Vesion), (a, b) => a.Vesion.Contains(inputDto.Vesion)) |
|
|
|
.OrderBy(a => a.CreateAt, OrderByType.Desc) |
|
|
|
.Select((a,b)=>new DeviceVesionModel() |
|
|
|
{ |
|
|
|