diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/InvoiceSyncQadInvocable.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/InvoiceSyncQadInvocable.cs index 91a6e71c..1121fc6f 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/InvoiceSyncQadInvocable.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/InvoiceSyncQadInvocable.cs @@ -43,7 +43,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs return; } - var invoiceSyncQads = _settleAccountDbContext.Set().Where(t => t.TaskState == 0 || t.TaskState == 1 || t.TaskState == 2).OrderBy(t => t.CreationTime).Take(1000).ToList(); + var invoiceSyncQads = _settleAccountDbContext.Set().Where(t => t.TaskState != 2).OrderBy(t => t.CreationTime).Take(1000).ToList(); if (!invoiceSyncQads.Any()) {