|
|
@ -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<bool> 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 |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|