From ee9066e17c386e6366cef388f7166326c02a4662 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Tue, 18 Jun 2024 09:34:28 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=9A=82=E6=97=B6=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E6=B5=B7=E5=AE=81=E9=A4=90=E8=A1=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/Dlhis.ScheduledTask/Jobs/MealSupplementHandlerJob.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Src/Dlhis.ScheduledTask/Jobs/MealSupplementHandlerJob.cs b/Src/Dlhis.ScheduledTask/Jobs/MealSupplementHandlerJob.cs index 35e1b33c..0f288bd5 100644 --- a/Src/Dlhis.ScheduledTask/Jobs/MealSupplementHandlerJob.cs +++ b/Src/Dlhis.ScheduledTask/Jobs/MealSupplementHandlerJob.cs @@ -36,6 +36,7 @@ public class MealSupplementHandlerJob : BaseJob //查询待处理餐补 var mealSupplements = await DbContext.Queryable() .Where(x => x.Status == MealSupplementStatusEnumtype.Wait || x.Status == MealSupplementStatusEnumtype.Error) + .Where(x => x.Workplace != "5") .Where(x => !x.Sync) .ToListAsync(); @@ -165,7 +166,7 @@ public class MealSupplementHandlerJob : BaseJob IsDeleted = false, }); - + var r = await _jinkoJIPService.SyncMealSupplementRecordsAsync(new List { new() @@ -175,7 +176,7 @@ public class MealSupplementHandlerJob : BaseJob Msg = "操作成功" } }); - + //更新餐补信息为成功(同步成功) await DbContext.Updateable() .SetColumns(x => x.Result == r)