fix 尝试更新ignoreSource
This commit is contained in:
@@ -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>()
|
||||
|
||||
Reference in New Issue
Block a user