|
@@ -38,6 +38,8 @@ namespace BPA.SAAS.Manage.Application.Device.Services |
|
|
Id=a.Id.SelectAll(), |
|
|
Id=a.Id.SelectAll(), |
|
|
ProductName=b.Name, |
|
|
ProductName=b.Name, |
|
|
ProductCode=b.Code, |
|
|
ProductCode=b.Code, |
|
|
|
|
|
ProductNumber=a.ProductNumber, |
|
|
|
|
|
ProductUrl=a.ProductUrl, |
|
|
}) |
|
|
}) |
|
|
.ToPageListAsync(inputDto.Current, inputDto.PageSize, total); |
|
|
.ToPageListAsync(inputDto.Current, inputDto.PageSize, total); |
|
|
|
|
|
|
|
@@ -64,6 +66,8 @@ namespace BPA.SAAS.Manage.Application.Device.Services |
|
|
Vesion = inputDto.Vesion, |
|
|
Vesion = inputDto.Vesion, |
|
|
ProductId = inputDto.ProductId, |
|
|
ProductId = inputDto.ProductId, |
|
|
TemplatePath = inputDto.TemplatePath, |
|
|
TemplatePath = inputDto.TemplatePath, |
|
|
|
|
|
ProductNumber = inputDto.ProductNumber, |
|
|
|
|
|
ProductUrl = inputDto.ProductUrl, |
|
|
Status = CommonStatus.ENABLE |
|
|
Status = CommonStatus.ENABLE |
|
|
}).CallEntityMethod(m => m.Create()).ExecuteReturnEntityAsync(); |
|
|
}).CallEntityMethod(m => m.Create()).ExecuteReturnEntityAsync(); |
|
|
var Product = _db.Queryable<BPA_Product>().Where(x => x.Id == inputDto.ProductId).First(); |
|
|
var Product = _db.Queryable<BPA_Product>().Where(x => x.Id == inputDto.ProductId).First(); |
|
@@ -227,6 +231,8 @@ namespace BPA.SAAS.Manage.Application.Device.Services |
|
|
{ |
|
|
{ |
|
|
var res = _db.Updateable<BPA_ProductVesion>().SetColumns(t => t.Vesion == inputDto.Vesion) |
|
|
var res = _db.Updateable<BPA_ProductVesion>().SetColumns(t => t.Vesion == inputDto.Vesion) |
|
|
.SetColumns(t => t.TemplatePath == inputDto.TemplatePath) |
|
|
.SetColumns(t => t.TemplatePath == inputDto.TemplatePath) |
|
|
|
|
|
.SetColumns(t => t.ProductNumber == inputDto.ProductNumber) |
|
|
|
|
|
.SetColumns(t => t.ProductUrl == inputDto.ProductUrl) |
|
|
.SetColumns(t => t.ProductId == inputDto.ProductId) |
|
|
.SetColumns(t => t.ProductId == inputDto.ProductId) |
|
|
.SetColumns(t => t.Status == (CommonStatus)inputDto.Status).Where(t => t.Id == inputDto.Id) |
|
|
.SetColumns(t => t.Status == (CommonStatus)inputDto.Status).Where(t => t.Id == inputDto.Id) |
|
|
.ExecuteCommandHasChange(); |
|
|
.ExecuteCommandHasChange(); |
|
@@ -272,7 +278,9 @@ namespace BPA.SAAS.Manage.Application.Device.Services |
|
|
/// <returns></returns> |
|
|
/// <returns></returns> |
|
|
public async Task<List<BPA_ProductVesion>> GetDeviceVesionList() |
|
|
public async Task<List<BPA_ProductVesion>> GetDeviceVesionList() |
|
|
{ |
|
|
{ |
|
|
var resEntity =await _db.Queryable<BPA_ProductVesion>().Select(a => new BPA_ProductVesion() { Id = a.Id.SelectAll() }).ToListAsync(); |
|
|
|
|
|
|
|
|
var resEntity =await _db.Queryable<BPA_ProductVesion>() |
|
|
|
|
|
.Select(a => new BPA_ProductVesion() { Id = a.Id.SelectAll() }) |
|
|
|
|
|
.ToListAsync(); |
|
|
return resEntity; |
|
|
return resEntity; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|