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)