fix 分类控制菜品获取
This commit is contained in:
@@ -82,9 +82,9 @@ public class DishesMenusController : ControllerBase
|
||||
public async Task<List<DishesDetailResponse>> GetDishesUnderCurrentMenuAsync(Guid businessPlaceCode,
|
||||
DateTime date,
|
||||
ShiftEnumType? shiftType,
|
||||
[FromQuery] List<Guid> categoryCodes)
|
||||
Guid categoryCode)
|
||||
{
|
||||
return await _dishesMenuService.GetDishesUnderCurrentMenuAsync(businessPlaceCode, date, shiftType, categoryCodes);
|
||||
return await _dishesMenuService.GetDishesUnderCurrentMenuAsync(businessPlaceCode, date, shiftType, categoryCode);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -14,7 +14,7 @@ public interface IDishesMenuService : IScopeDependency
|
||||
|
||||
Task<List<DishesDetailResponse>> GetDishesUnderCurrentMenuAsync(Guid businessPlaceCode, DateTime date, ShiftEnumType? shiftType, Guid categoryCode);
|
||||
|
||||
Task<List<DishesDetailResponse>> GetDishesUnderCurrentMenuAsync(Guid businessPlaceCode, DateTime date, ShiftEnumType? shiftType, List<Guid> categoryCodes);
|
||||
Task<List<DishesDetailResponse>> GetDishesUnderCurrentMenuAsync(Guid businessPlaceCode, DateTime date, ShiftEnumType? shiftType, Guid categoryCode);
|
||||
|
||||
Task SaveDishesMenuAsync(DishesMenuSaveRequest request);
|
||||
|
||||
|
||||
@@ -33,10 +33,6 @@ public abstract class BaseOrderService
|
||||
_logger = logger;
|
||||
}
|
||||
|
||||
protected BaseOrderService(ICanteenSettingService canteenSettingService)
|
||||
{
|
||||
_canteenSettingService = canteenSettingService;
|
||||
}
|
||||
|
||||
protected IDbContext DbContext => _dbContext;
|
||||
|
||||
|
||||
@@ -19,8 +19,6 @@ namespace Dlhis.Canteen.Order.Services.Implements;
|
||||
|
||||
public class BookingOrderService : BaseOrderService, IBookingOrderService
|
||||
{
|
||||
private readonly IDbContext _dbContext;
|
||||
private readonly ICurrentUser _currentUser;
|
||||
private readonly IDisheMenuApi _disheMenuApi;
|
||||
private readonly IBusinessPlacePermissionsApi _businessPlacePermissionsApi;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user