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.
50 lines
1.3 KiB
50 lines
1.3 KiB
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Volo.Abp.Domain.Repositories;
|
|
using Volo.Abp.Domain.Services;
|
|
|
|
namespace Win_in.Sfs.Wms.DataExchange.Domain.Iac.Mes.MesProductL7PartsNotes;
|
|
|
|
public class MesProductL7PartsNoteManager : DomainService, IMesProductL7PartsNoteManager
|
|
{
|
|
|
|
private readonly IMesProductL7PartsNoteRepository _repository;
|
|
|
|
public MesProductL7PartsNoteManager(
|
|
IMesProductL7PartsNoteRepository repository)
|
|
{
|
|
|
|
_repository = repository;
|
|
|
|
}
|
|
|
|
///// <summary>
|
|
///// 创建审查
|
|
///// </summary>
|
|
///// <param name="ProductL7PartsNote"></param>
|
|
///// <returns></returns>
|
|
//public virtual async Task CreateAsync(List<MesProductL7PartsNote> mesNotes)
|
|
//{
|
|
// //保存相关L7级零件单据
|
|
// await _repository.InsertManyAsync(mesNotes);
|
|
//}
|
|
|
|
/// <summary>
|
|
/// 获取最大的RowID信息
|
|
/// </summary>
|
|
|
|
/// <returns></returns>
|
|
public async Task<int> GetMaxRowIdAsync()
|
|
{
|
|
//保存相关L7级零件单据
|
|
return await _repository.MaxAsync(p => p.RowID).ConfigureAwait(false);
|
|
;
|
|
}
|
|
|
|
public virtual async Task<List<MesProductL7PartsNote>> AddManyAsync(List<MesProductL7PartsNote> transactions)
|
|
{
|
|
await _repository.InsertManyAsync(transactions).ConfigureAwait(false);
|
|
|
|
return transactions;
|
|
}
|
|
}
|
|
|