|
|
@ -2,6 +2,7 @@ using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Linq; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using EFCore.BulkExtensions; |
|
|
|
using Microsoft.EntityFrameworkCore; |
|
|
|
using SettleAccount.Domain.BQ; |
|
|
|
using Volo.Abp; |
|
|
@ -48,7 +49,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers |
|
|
|
/// <exception cref="BusinessException"></exception>
|
|
|
|
public virtual async Task<bool> SetForwardState(string p_billNum, SettleBillState state) |
|
|
|
{ |
|
|
|
|
|
|
|
var ls = _repository.Where(p => p.InvGroupNum == p_billNum).ToList(); |
|
|
|
if (ls == null && ls.Count == 0) |
|
|
|
{ |
|
|
@ -109,7 +109,8 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers |
|
|
|
} |
|
|
|
break; |
|
|
|
} |
|
|
|
await _repository.UpdateAsync(p_entiy).ConfigureAwait(false); |
|
|
|
await _repository.DbContext.BulkUpdateAsync(new List<PUB_CAN_SA> { p_entiy }).ConfigureAwait(false); |
|
|
|
// await _repository.UpdateAsync(p_entiy).ConfigureAwait(false);
|
|
|
|
return true; |
|
|
|
} |
|
|
|
return false; |
|
|
|