fix 时间判断

This commit is contained in:
cheche
2024-01-18 17:32:50 +08:00
parent a316cfcb8c
commit 25e88710b2

View File

@@ -87,7 +87,7 @@ public class OrderService : IOrderService
}
/// <summary>
/// 消费
/// 消费
/// </summary>
/// <param name="request"></param>
/// <param name="gainfo"></param>
@@ -208,7 +208,7 @@ public class OrderService : IOrderService
var businessPlace = await _dbContext.Queryable<CanteenBusinessPlaceEntity>().Where(x => x.Code == registry.BusinessPlaceCode).FirstAsync();
businessPlace.ThrowIfNull("营业点尚未设置");
// 获取当前消费餐次
// 获取当前消费 餐次
var shifts = await _dbContext.Queryable<CanteenBusinessShiftEntity>().Where(x => x.BusinessPlaceCode == businessPlace.Code).ToListAsync();
// 使用 LINQ 查询找到满足条件的餐次