fix 尝试更新ignoreSource

This commit is contained in:
2025-03-10 09:13:52 +08:00
parent cd687b505a
commit 3787490053

View File

@@ -135,10 +135,12 @@ public class MealSupplementHandlerJob : BaseJob
await CommonHelper.RetryAsync(async () =>
{
var ignores = BalanceRecordSourceConstants.IgnoreSources;
var balance = await DbContext.Queryable<BalanceRecordEntity>()
.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<UserBalanceEntity>()