|
|
@@ -48,6 +48,24 @@ namespace BPA.SAAS.KitChenManage.Application.Store.Services |
|
|
|
}; |
|
|
|
return util; |
|
|
|
} |
|
|
|
public async Task<List<StoreDtoOutput>> GetStoreList() |
|
|
|
{ |
|
|
|
RefAsync<int> total = 0; |
|
|
|
var res = await _db.Queryable<BPA_Store>() |
|
|
|
.Select(t => new StoreDtoOutput |
|
|
|
{ |
|
|
|
CreateAt = t.CreateAt, |
|
|
|
Id = t.Id, |
|
|
|
Name = t.Name, |
|
|
|
Phone = t.Phone, |
|
|
|
Description = t.Description, |
|
|
|
OrgName = t.OrgName, |
|
|
|
OrgId = t.OrgId, |
|
|
|
Sort = t.Sort, |
|
|
|
}).OrderBy(t => t.Sort).OrderBy(x => x.CreateAt, OrderByType.Desc).ToListAsync(); |
|
|
|
|
|
|
|
return res; |
|
|
|
} |
|
|
|
/// <summary> |
|
|
|
/// 添加 |
|
|
|
/// </summary> |
|
|
|