fix 时间范围逻辑

This commit is contained in:
2024-03-21 21:32:55 +08:00
parent 35660b1d0c
commit 83f8906f12

View File

@@ -192,7 +192,7 @@ public class DishesMenuService : IDishesMenuService
{ {
var detail = await _dbContext.Queryable<DishesMenuEntity>() var detail = await _dbContext.Queryable<DishesMenuEntity>()
.LeftJoin<DishesEntity>((x, d) => x.DishesCode == d.CustomCode) .LeftJoin<DishesEntity>((x, d) => x.DishesCode == d.CustomCode)
.Where(x => x.StartDate >= date && x.EndDate <= date) .Where(x => x.StartDate <= date && date <= x.EndDate)
.Where(x => x.BusinessPlaceCode == businessPlaceCode) .Where(x => x.BusinessPlaceCode == businessPlaceCode)
.Where(x => x.ShiftType == shiftType) .Where(x => x.ShiftType == shiftType)
.Where(x => x.DishesCode == dishesCode) .Where(x => x.DishesCode == dishesCode)