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