fix 优化查询
This commit is contained in:
@@ -46,6 +46,19 @@ public class DishesCategoriesController : ControllerBase
|
||||
return await _dishesCategoryService.TreeAllAsync(businessPlaceCode);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="businessPlaceCode"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("tree-all")]
|
||||
[IgnoreTenant]
|
||||
public async Task<List<DishesCategoryTreeResponse>> TreeAllAsync(Guid businessPlaceCode)
|
||||
{
|
||||
return await _dishesCategoryService.TreeAllAsync(businessPlaceCode);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 保存分类
|
||||
/// </summary>
|
||||
|
||||
@@ -79,6 +79,7 @@ public class DishesMenusController : ControllerBase
|
||||
/// <param name="categoryCode"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("dishes-selections")]
|
||||
[IgnoreTenant]
|
||||
public async Task<List<DishesDetailResponse>> GetDishesUnderCurrentMenuAsync(Guid businessPlaceCode,
|
||||
DateTime date,
|
||||
ShiftEnumType? shiftType,
|
||||
|
||||
@@ -8,6 +8,10 @@ public interface IDishesCategoryService : IScopeDependency
|
||||
Task<List<DishesCategoryTreeResponse>> TreeAsync(Guid businessPlaceCode);
|
||||
|
||||
|
||||
Task<List<DishesCategoryTreeResponse>> TreeAllAsync(Guid businessPlaceCode);
|
||||
|
||||
|
||||
|
||||
Task<List<DishesCategoryTreeResponse>> TreeAllAsync(Guid businessPlaceCode);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user