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.
29 lines
862 B
29 lines
862 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 IBackfluLinq2DbRepository _repository;
|
|
public BackfluManager(IBackfluLinq2DbRepository repository)
|
|
{
|
|
_repository = repository;
|
|
}
|
|
|
|
public async Task<List<scmout>> GetToBeProcessedListAsync()
|
|
{
|
|
var Backflu = await _repository.GetListAsync().ConfigureAwait(false);
|
|
|
|
return Backflu.ToList();
|
|
}
|
|
public virtual async Task UpdateProcessedListAsync(List<scmout> entities)
|
|
{
|
|
foreach (var entitie in entities)
|
|
{
|
|
entitie.scmout_stat = "N";
|
|
await _repository.UpdateAsync(entitie).ConfigureAwait(false);
|
|
}
|
|
}
|
|
}
|
|
|