|
|
@@ -38,6 +38,8 @@ namespace BPA.SAAS.Manage.Application.Device.Services |
|
|
|
Id=a.Id.SelectAll(), |
|
|
|
ProductName=b.Name, |
|
|
|
ProductCode=b.Code, |
|
|
|
ProductNumber=a.ProductNumber, |
|
|
|
ProductUrl=a.ProductUrl, |
|
|
|
}) |
|
|
|
.ToPageListAsync(inputDto.Current, inputDto.PageSize, total); |
|
|
|
|
|
|
@@ -64,6 +66,8 @@ namespace BPA.SAAS.Manage.Application.Device.Services |
|
|
|
Vesion = inputDto.Vesion, |
|
|
|
ProductId = inputDto.ProductId, |
|
|
|
TemplatePath = inputDto.TemplatePath, |
|
|
|
ProductNumber = inputDto.ProductNumber, |
|
|
|
ProductUrl = inputDto.ProductUrl, |
|
|
|
Status = CommonStatus.ENABLE |
|
|
|
}).CallEntityMethod(m => m.Create()).ExecuteReturnEntityAsync(); |
|
|
|
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) |
|
|
|
.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.Status == (CommonStatus)inputDto.Status).Where(t => t.Id == inputDto.Id) |
|
|
|
.ExecuteCommandHasChange(); |
|
|
@@ -272,7 +278,9 @@ namespace BPA.SAAS.Manage.Application.Device.Services |
|
|
|
/// <returns></returns> |
|
|
|
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; |
|
|
|
} |
|
|
|
} |
|
|
|