diff --git a/Src/Dlhis.ScheduledTask/Jobs/MealSupplementHandlerJob.cs b/Src/Dlhis.ScheduledTask/Jobs/MealSupplementHandlerJob.cs index 11be103c..6126a5f4 100644 --- a/Src/Dlhis.ScheduledTask/Jobs/MealSupplementHandlerJob.cs +++ b/Src/Dlhis.ScheduledTask/Jobs/MealSupplementHandlerJob.cs @@ -135,10 +135,12 @@ public class MealSupplementHandlerJob : BaseJob await CommonHelper.RetryAsync(async () => { + var ignores = BalanceRecordSourceConstants.IgnoreSources; + var balance = await DbContext.Queryable() .Where(x => x.UserCode == gainfo.Code) .Where(x => x.Status == BalanceRecordStatusEnumType.Valid) - .Where(x => !BalanceRecordSourceConstants.IgnoreSources.Contains(x.Source)) + .Where(x => !ignores.Contains(x.Source)) .SumAsync(x => x.Amount); var version = await DbContext.Queryable()