using JiepeiWMS.IRepository;
|
using JiepeiWMS.IRepository.UnitOfWork;
|
using JiepeiWMS.Model.Models;
|
using JiepeiWMS.Repository.Base;
|
using System.Threading.Tasks;
|
|
namespace JiepeiWMS.Repository
|
{
|
/// <summary>
|
/// WMInInventoryRepository
|
/// </summary>
|
public class WMInInventoryRepository : BaseRepository<WMInInventory>, IWMInInventoryRepository
|
{
|
public WMInInventoryRepository(IUnitOfWork unitOfWork) : base(unitOfWork)
|
{
|
}
|
|
/// <summary>
|
/// 获取入库单最大的Id
|
/// </summary>
|
/// <returns></returns>
|
public async Task<int> GetInInventoryMaxId()
|
{
|
var db = await base.QueryTable("SELECT ISNULL(MAX(Id),0) FROM dbo.WMInInventory");
|
return db.Rows[0][0].ObjToInt();
|
}
|
}
|
}
|