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