From 0eb76e878c5717db628fa52f083d413220e2b25b Mon Sep 17 00:00:00 2001 From: liguoyang Date: Thu, 21 Mar 2024 15:48:59 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=A4=84=E7=90=86=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E7=BC=BA=E5=B0=91=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Dishes/Services/Implements/DishesMenuService.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Src/Dlhis.Basic/Dishes/Services/Implements/DishesMenuService.cs b/Src/Dlhis.Basic/Dishes/Services/Implements/DishesMenuService.cs index 08fd069f..77e9b9b0 100644 --- a/Src/Dlhis.Basic/Dishes/Services/Implements/DishesMenuService.cs +++ b/Src/Dlhis.Basic/Dishes/Services/Implements/DishesMenuService.cs @@ -147,7 +147,9 @@ public class DishesMenuService : IDishesMenuService var where = LinqExpressionExtension.False(); keys.ForEach(x => { - where = where.Or(item => SqlFunc.DateIsSame(item.Date, x.Date, DateType.Day) && item.ShiftType == x.ShiftType); + where = where.Or(item => item.BusinessPlaceCode == request.BusinessPlaceCode + && SqlFunc.DateIsSame(item.Date, x.Date, DateType.Day) + && item.ShiftType == x.ShiftType); }); await _dbContext.Client.Deleteable().Where(where).ExecuteCommandAsync();