using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Volo.Abp.Domain.Services; namespace Win_in.Sfs.Wms.DataExchange.Domain.Fawtyg.Mes; public class BackfluManager : DomainService, IBackfluManager { private readonly IBackfluRepository _repository; public BackfluManager(IBackfluRepository repository) { _repository = repository; } public async Task> GetToBeProcessedListAsync() { var Backflu = await _repository.GetListAsync(p=>p.scmout_stat=="Y").ConfigureAwait(false); return Backflu.ToList(); } public virtual async Task UpdateProcessedListAsync(List entities) { foreach (var entitie in entities) { entitie.scmout_stat = "N"; await _repository.UpdateAsync(entitie).ConfigureAwait(false); } } }