You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
870 B

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<List<Backflu>> GetToBeProcessedListAsync()
{
var Backflu = await _repository.GetListAsync(p=>p.scmout_stat=="Y").ConfigureAwait(false);
return Backflu.ToList();
}
public virtual async Task UpdateProcessedListAsync(List<Backflu> entities)
{
foreach (var entitie in entities)
{
entitie.scmout_stat = "N";
await _repository.UpdateAsync(entitie).ConfigureAwait(false);
}
}
}