fix 优化查询

This commit is contained in:
2024-03-21 16:22:47 +08:00
parent aae8fc4981
commit 7f8e4bfa01
3 changed files with 18 additions and 0 deletions

View File

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

View File

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

View File

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