zhaoy 8 mesi fa
parent
commit
cf7c40febd
4 ha cambiato i file con 44 aggiunte e 0 eliminazioni
  1. +12
    -0
      BPA.SAAS.KitChenManage.Application/BPA.SAAS.KitChenManage.Application.xml
  2. +5
    -0
      BPA.SAAS.KitChenManage.Application/Store/Services/IStoreService.cs
  3. +18
    -0
      BPA.SAAS.KitChenManage.Application/Store/Services/StoreService.cs
  4. +9
    -0
      BPA.SAAS.KitChenManage.Application/Store/StoreServices.cs

+ 12
- 0
BPA.SAAS.KitChenManage.Application/BPA.SAAS.KitChenManage.Application.xml Vedi File

@@ -254,6 +254,12 @@
<param name="input"></param>
<returns></returns>
</member>
<member name="M:BPA.SAAS.KitChenManage.Application.Store.Services.IStoreService.GetStoreList">
<summary>
查询所有店铺
</summary>
<returns></returns>
</member>
<member name="M:BPA.SAAS.KitChenManage.Application.Store.Services.IStoreService.Add(BPA.SAAS.KitChenManage.Application.Store.Dtos.StoreDtoInput)">
<summary>
添加
@@ -310,6 +316,12 @@
<param name="input"></param>
<returns></returns>
</member>
<member name="M:BPA.SAAS.KitChenManage.Application.Store.StoreServices.GetStoreList">
<summary>
查询所有店铺
</summary>
<returns></returns>
</member>
<member name="M:BPA.SAAS.KitChenManage.Application.Store.StoreServices.Add(BPA.SAAS.KitChenManage.Application.Store.Dtos.StoreDtoInput)">
<summary>
添加


+ 5
- 0
BPA.SAAS.KitChenManage.Application/Store/Services/IStoreService.cs Vedi File

@@ -17,6 +17,11 @@ namespace BPA.SAAS.KitChenManage.Application.Store.Services
/// <returns></returns>
Task<PageUtil> Page(StoreDtoPageInput input);
/// <summary>
/// 查询所有店铺
/// </summary>
/// <returns></returns>
Task<List<StoreDtoOutput>> GetStoreList();
/// <summary>
/// 添加
/// </summary>
/// <param name="input"></param>


+ 18
- 0
BPA.SAAS.KitChenManage.Application/Store/Services/StoreService.cs Vedi File

@@ -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>


+ 9
- 0
BPA.SAAS.KitChenManage.Application/Store/StoreServices.cs Vedi File

@@ -29,6 +29,15 @@ namespace BPA.SAAS.KitChenManage.Application.Store
return await _storeService.Page(input);
}
/// <summary>
/// 查询所有店铺
/// </summary>
/// <returns></returns>
[HttpGet("/api/store/getstorelist")]
public async Task<List<StoreDtoOutput>> GetStoreList()
{
return await _storeService.GetStoreList();
}
/// <summary>
/// 添加
/// </summary>
/// <param name="input"></param>


Caricamento…
Annulla
Salva