|
|
@@ -20,7 +20,9 @@ namespace BPA.SAAS.Manage.Application.AExternalPlatform.Service.WeighingService. |
|
|
|
public async Task<List<GoodsTypeDto>> GetGoodsInfo() |
|
|
|
{ |
|
|
|
//获取商品类型 |
|
|
|
var goodsType = await SqlSugarDb.Db.Queryable<BPA_GoodsType>().OrderBy(x => x.Sort) |
|
|
|
var goodsType = await SqlSugarDb.Db.Queryable<BPA_GoodsType>() |
|
|
|
.OrderBy(x => x.Sort) |
|
|
|
.Where(x=>x.IsDeleted==0) |
|
|
|
.Select(x => new GoodsTypeDto() |
|
|
|
{ |
|
|
|
Id = x.Id, |
|
|
@@ -30,6 +32,7 @@ namespace BPA.SAAS.Manage.Application.AExternalPlatform.Service.WeighingService. |
|
|
|
|
|
|
|
//获取商品 |
|
|
|
var goodsList = await SqlSugarDb.Db.Queryable<BPA_GoodsInfo>().OrderBy(x => x.Sort) |
|
|
|
.Where(x => x.IsDeleted == 0) |
|
|
|
.Select(x => new GoodsDto() |
|
|
|
{ |
|
|
|
Id = x.Id, |
|
|
|