From 3787490053150c5ce4e209c3f43db9bd3859b734 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Mon, 10 Mar 2025 09:13:52 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=B0=9D=E8=AF=95=E6=9B=B4=E6=96=B0ignor?= =?UTF-8?q?eSource?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/Dlhis.ScheduledTask/Jobs/MealSupplementHandlerJob.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()