diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/CAN_SA_MNG.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/CAN_SA_MNG.cs index 4378dc89..891e8607 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/CAN_SA_MNG.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/CAN_SA_MNG.cs @@ -51,8 +51,8 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers { var ls = _repository.Where(p => p.InvGroupNum == p_billNum).ToList(); - - foreach(TEntity p_entiy in ls) + + foreach (TEntity p_entiy in ls) { switch (p_entiy.State) @@ -102,7 +102,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers } - + return true; } @@ -117,19 +117,20 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers public virtual async Task SetNewState(string billNUm) { - var ls=_repository.Where(p => p.InvGroupNum == billNUm).ToList(); + var ls = _repository.Where(p => p.InvGroupNum == billNUm).ToList(); foreach (var l in ls) { l.State = SettleBillState.未结状态; } - + await _repository.DbContext.BulkReadAsync(ls); return true; } - public virtual + } + }